diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-31 17:02:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-31 17:02:44 +0000 |
commit | 404bfce446915fe9dadcfce7b36d732813523e28 (patch) | |
tree | 3564a673930e64592c6d923f452baf905f9f750d /app/views/issues | |
parent | 1187ad96ac4922ddd61d4292453a9bec9614abdd (diff) | |
download | redmine-404bfce446915fe9dadcfce7b36d732813523e28.tar.gz redmine-404bfce446915fe9dadcfce7b36d732813523e28.zip |
Added a cross-project issue list. It displays the issues of all the projects visible by the user.
The users list available in the filters ('assigned to' / 'created by') is made of the members of all projects the current user belongs to.
For now, this view is only accessible from 'My page' ('issues assigned to me' or 'issues reported by me' blocks, to view the full lists)
On 'My page', assigned issue are now sorted by priority.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@684 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/index.rhtml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app/views/issues/index.rhtml b/app/views/issues/index.rhtml new file mode 100644 index 000000000..0f63ba96f --- /dev/null +++ b/app/views/issues/index.rhtml @@ -0,0 +1,55 @@ +<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 /> + +<%= error_messages_for 'query' %> +<% if @query.valid? %> +<% if @issues.empty? %> +<p><i><%= l(:label_no_data) %></i></p> +<% else %> + +<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 %> |