about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authormayaeh <mayaeh@marimo-net.org>2019-09-17 23:59:16 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-09-17 16:59:16 +0200
commit75c6ad500d7038b96f4942d0297a15b85152f3a0 (patch)
treea4e07dd0b878ad5394b80ef56ebe143f6a1c1f9d /app/views
parentb671b912113b8705729a44424946bb31ae445df5 (diff)
Fixed not being able to display review pending hashtags in the admin UI. (#11875)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/dashboard/index.html.haml2
-rw-r--r--app/views/admin/tags/index.html.haml2
-rw-r--r--app/views/admin_mailer/new_trending_tag.text.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml
index be1052ae4..514637c4f 100644
--- a/app/views/admin/dashboard/index.html.haml
+++ b/app/views/admin/dashboard/index.html.haml
@@ -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
diff --git a/app/views/admin/tags/index.html.haml b/app/views/admin/tags/index.html.haml
index cea1b71b5..c767c9d18 100644
--- a/app/views/admin/tags/index.html.haml
+++ b/app/views/admin/tags/index.html.haml
@@ -66,7 +66,7 @@
 
 = paginate @tags
 
-- if params[:review] == 'pending_review'
+- if params[:pending_review] == '1'
   %hr.spacer/
 
   %div{ style: 'overflow: hidden' }
diff --git a/app/views/admin_mailer/new_trending_tag.text.erb b/app/views/admin_mailer/new_trending_tag.text.erb
index f3087df37..e4bfdc591 100644
--- a/app/views/admin_mailer/new_trending_tag.text.erb
+++ b/app/views/admin_mailer/new_trending_tag.text.erb
@@ -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') %>