Patch #3220 ยป _custom_queries.html.erb
1 |
<h3><%= l(:label_query_plural) %></h3> |
---|---|
2 |
|
3 |
<table class="list queries"> |
4 |
<thead>
|
5 |
<tr>
|
6 |
<th><%=l(:label_query)%></th> |
7 |
<th><%=l(:label_issue_plural)%></th> |
8 |
</tr>
|
9 |
</thead>
|
10 |
<tbody>
|
11 |
<% sidebar_queries.each do |query| |
12 |
query = Query.find(query.id) # Necessary as sidebar_queries doesn't correctly initialize filters |
13 |
issue_count = Issue.count(:include => [:status, :project], :conditions => query.statement) |
14 |
%>
|
15 |
<tr class="<%= cycle('odd', 'even') %> <%= 'empty' if issue_count == 0 %>"> |
16 |
<td class="query"><%= link_to(h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query) %></td> |
17 |
<td class="count"><%= issue_count %></td> |
18 |
</tr>
|
19 |
<% end %> |
20 |
</tbody>
|
21 |
</table>
|
22 |
|
23 |
<% content_for :header_tags do %> |
24 |
<%= stylesheet_link_tag 'my_widgets', :plugin => 'redmine_my_widgets' %> |
25 |
<% end %> |