From 218e2606b67415019b4ec109ab050602876930bd Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Thu, 26 Jul 2012 15:43:35 +0200 Subject: [PATCH] show my queries --- app/helpers/issues_helper.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 17fc4f6a30..a60846dbbe 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -119,19 +119,19 @@ module IssuesHelper # links to #index on issues/show url_params = controller_name == 'issues' ? {:controller => 'issues', :action => 'index', :project_id => @project} : params - content_tag('h3', h(title)) + + content_tag('h3', title) + queries.collect {|query| - link_to(h(query.name), url_params.merge(:query_id => query)) - }.join('
') + link_to(query.name, url_params.merge(:query_id => query)) + }.join('
').html_safe end def render_sidebar_queries out = '' - queries = sidebar_queries.select {|q| !q.is_public?} + queries = sidebar_queries.reject(&:is_public?) out << query_links(l(:label_my_queries), queries) if queries.any? - queries = sidebar_queries.select {|q| q.is_public?} + queries = sidebar_queries.select(&:is_public?) out << query_links(l(:label_query_plural), queries) if queries.any? - out + out.html_safe end # Find the name of an associated record stored in the field attribute