To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / my / blocks / _issuesreportedbyme.rhtml @ 443:350acce374a2

History | View | Annotate | Download (1.24 KB)

1
<h3><%=l(:label_reported_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)</h3>
2

    
3
<% reported_issues = Issue.visible.find(:all, 
4
                                :conditions => { :author_id => User.current.id },
5
                                :limit => 10, 
6
                                :include => [ :status, :project, :tracker ], 
7
                                :order => "#{Issue.table_name}.updated_on DESC") %>
8
<%= render :partial => 'issues/list_simple', :locals => { :issues => reported_issues } %>
9
<% if reported_issues.length > 0 %>
10
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues',
11
                                                                                                                                                                                                                         :action => 'index',
12
                                                                                                                                                                                                                         :set_filter => 1,
13
                                                                                                                                                                                                                         :status_id => '*',
14
                                                                                                                                                                                                                         :author_id => 'me',
15
                                                                                                                                                                                                                         :sort => 'updated_on:desc' %></p>
16
<% end %>
17

    
18
<% content_for :header_tags do %>
19
<%= auto_discovery_link_tag(:atom, 
20
                            {:controller => 'issues', :action => 'index', :set_filter => 1,
21
                             :author_id => 'me', :format => 'atom', :key => User.current.rss_key},
22
                            {:title => l(:label_reported_issues)}) %>
23
<% end %>