diff --git a/app/presenters/tag_set_presenter.rb b/app/presenters/tag_set_presenter.rb index 5a375da75..bd4504bb5 100644 --- a/app/presenters/tag_set_presenter.rb +++ b/app/presenters/tag_set_presenter.rb @@ -92,9 +92,9 @@ private end end - # def is_index?(template) - # template.params[:action] == "index" - # end + def is_index?(template) + template.params[:action] == "index" + end def build_list_item(tag, template, options) html = "" @@ -108,13 +108,13 @@ private html << %{? } end - # if CurrentUser.user.is_privileged? && is_index?(template) - # html << %{+ } - # - # if current_query.present? - # html << %{ } - # end - # end + if CurrentUser.user.is_privileged? && is_index?(template) + html << %{+ } + + if current_query.present? + html << %{ } + end + end end humanized_tag = tag.tr("_", " ")