Skip to content

Commit

Permalink
Fixed not being able to display review pending hashtags in the admin …
Browse files Browse the repository at this point in the history
  • Loading branch information
mayaeh authored and hiyuki2578 committed Oct 2, 2019
1 parent 7c1722b commit af80d6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/dashboard/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/tags/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

= paginate @tags

- if params[:review] == 'pending_review'
- if params[:pending_review] == '1'
%hr.spacer/

%div{ style: 'overflow: hidden' }
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin_mailer/new_trending_tag.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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') %>

0 comments on commit af80d6d

Please sign in to comment.