diff options
Diffstat (limited to 'app/views/search/index.html.erb')
-rw-r--r-- | app/views/search/index.html.erb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index caaa3f35c..5902051ba 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -46,6 +46,11 @@ <%= render_results_by_type(@result_count_by_type) unless @scope.size == 1 %> </div> <h3><%= l(:label_result_plural) %> (<%= @result_count %>)</h3> + <% if @result_count_by_type['issues'].to_i > 0 && @search_attachments == '0' %> + <p class="buttons"> + <%= link_to l(:button_apply_issues_filter), issues_filter_path(@question, projects_scope: params[:scope], all_words: @all_words, titles_only: @titles_only, open_issues: @open_issues), :class => 'icon icon-list' %> + </p> + <% end %> <dl id="search-results"> <% @results.each do |e| %> <dt class="<%= e.event_type %> icon icon-<%= e.event_type %>"> |