|
|
|
@ -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('<br />') |
|
|
|
|
link_to(query.name, url_params.merge(:query_id => query)) |
|
|
|
|
}.join('<br />').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 |
|
|
|
|