summaryrefslogtreecommitdiffstats
path: root/app/views/issues/index.rhtml
blob: cd7ace5617334b36b37c4d3256b96ecd25c787a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<h2><%=l(:label_issue_plural)%></h2>
    
<% form_tag({}, :id => 'query_form') do %>
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
<% end %>
<div class="contextual">
<%= link_to_remote l(:button_apply), 
                   { :url => { :set_filter => 1 },
                     :update => "content",
                     :with => "Form.serialize('query_form')"
                   }, :class => 'icon icon-edit' %>
                   
<%= link_to_remote l(:button_clear),
                   { :url => { :set_filter => 1 }, 
                     :update => "content",
                   }, :class => 'icon icon-reload'  %>
</div>
<br />&nbsp;

<%= error_messages_for 'query' %>
<% if @query.valid? %>
<% if @issues.empty? %>
<p><i><%= l(:label_no_data) %></i></p>
<% else %>
&nbsp;
<table class="list">
    <thead><tr>
		<%= sort_header_tag("#{Issue.table_name}.id", :caption => '#') %>
		<%= sort_header_tag("#{Project.table_name}.name", :caption => l(:field_project)) %>
		<%= sort_header_tag("#{Issue.table_name}.tracker_id", :caption => l(:field_tracker)) %>
		<%= sort_header_tag("#{IssueStatus.table_name}.name", :caption => l(:field_status)) %>
		<%= sort_header_tag("#{Issue.table_name}.priority_id", :caption => l(:field_priority)) %>
		<th><%=l(:field_subject)%></th>
		<%= sort_header_tag("#{User.table_name}.lastname", :caption => l(:field_assigned_to)) %>
		<%= sort_header_tag("#{Issue.table_name}.updated_on", :caption => l(:field_updated_on)) %>
	</tr></thead>
	<tbody>
	<% for issue in @issues %>
	<tr class="<%= cycle("odd", "even") %>">
		<td align="center" valign="top"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
		<td align="center" valign="top" nowrap><%=h issue.project.name %></td>
		<td align="center" valign="top" nowrap><%= issue.tracker.name %></td>
		<td  valign="top"nowrap><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td>
		<td align="center" valign="top"><%= issue.priority.name %></td>
		<td><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></td>
		<td align="center" valign="top" nowrap><%= issue.assigned_to.name if issue.assigned_to %></td>
		<td align="center" valign="top" nowrap><%= format_time(issue.updated_on) %></td>
	</tr>
	<% end %>
	</tbody>
</table>
<p><%= pagination_links_full @issue_pages %>
[ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]</p>
<% end %>
<% end %>

<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
<% end %>