##// END OF EJS Templates
Fixed custom query sidebar links broken by r1797 (#1899)....
Jean-Philippe Lang -
r1871:713ce06e40cd
parent child
Show More
@@ -1,24 +1,24
1 <h3><%= l(:label_issue_plural) %></h3>
1 <h3><%= l(:label_issue_plural) %></h3>
2 <%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %><br />
2 <%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %><br />
3 <% if @project %>
3 <% if @project %>
4 <%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %><br />
4 <%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %><br />
5 <%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %>
5 <%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %>
6
6
7 <% planning_links = []
7 <% planning_links = []
8 planning_links << link_to_if_authorized(l(:label_calendar), :action => 'calendar', :project_id => @project)
8 planning_links << link_to_if_authorized(l(:label_calendar), :action => 'calendar', :project_id => @project)
9 planning_links << link_to_if_authorized(l(:label_gantt), :action => 'gantt', :project_id => @project)
9 planning_links << link_to_if_authorized(l(:label_gantt), :action => 'gantt', :project_id => @project)
10 planning_links.compact!
10 planning_links.compact!
11 unless planning_links.empty? %>
11 unless planning_links.empty? %>
12 <h3><%= l(:label_planning) %></h3>
12 <h3><%= l(:label_planning) %></h3>
13 <p><%= planning_links.join(' | ') %></p>
13 <p><%= planning_links.join(' | ') %></p>
14 <% end %>
14 <% end %>
15
15
16 <% end %>
16 <% end %>
17
17
18 <% unless sidebar_queries.empty? -%>
18 <% unless sidebar_queries.empty? -%>
19 <h3><%= l(:label_query_plural) %></h3>
19 <h3><%= l(:label_query_plural) %></h3>
20
20
21 <% sidebar_queries.each do |query| -%>
21 <% sidebar_queries.each do |query| -%>
22 <%= link_to query.name, :query_id => query %><br />
22 <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %><br />
23 <% end -%>
23 <% end -%>
24 <% end -%>
24 <% end -%>
General Comments 0
You need to be logged in to leave comments. Login now