]> cat aescling's git repositories - mastodon.git/commitdiff
Fixed not being able to display review pending hashtags in the admin UI. (#11875)
authormayaeh <mayaeh@marimo-net.org>
Tue, 17 Sep 2019 14:59:16 +0000 (23:59 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 17 Sep 2019 14:59:16 +0000 (16:59 +0200)
app/views/admin/dashboard/index.html.haml
app/views/admin/tags/index.html.haml
app/views/admin_mailer/new_trending_tag.text.erb

index be1052ae440f640fb75768726f8a5799de1a10be..514637c4f0584136383fc46bf1e11d21c8dab83c 100644 (file)
@@ -23,7 +23,7 @@
       .dashboard__counters__num= number_to_human @reports_count, strip_insignificant_zeros: true
       .dashboard__counters__label= t 'admin.dashboard.open_reports'
   %div
-    = link_to admin_tags_path(review: 'pending_review') do
+    = link_to admin_tags_path(pending_review: '1') do
       .dashboard__counters__num= number_to_human @pending_tags_count, strip_insignificant_zeros: true
       .dashboard__counters__label= t 'admin.dashboard.pending_tags'
   %div
index cea1b71b54a83302215fcebbbec22536bd5546fb..c767c9d188adad212eb3d6a0a4d67b5ed03ff7d4 100644 (file)
@@ -66,7 +66,7 @@
 
 = paginate @tags
 
-- if params[:review] == 'pending_review'
+- if params[:pending_review] == '1'
   %hr.spacer/
 
   %div{ style: 'overflow: hidden' }
index f3087df3753c2cd2319ea250398c608c4fb77c83..e4bfdc5912ebbcadeef0412000499b7ef351d80a 100644 (file)
@@ -2,4 +2,4 @@
 
 <%= raw t('admin_mailer.new_trending_tag.body', name: @tag.name) %>
 
-<%= raw t('application_mailer.view')%> <%= admin_tags_url(review: 'pending_review') %>
+<%= raw t('application_mailer.view')%> <%= admin_tags_url(pending_review: '1') %>