To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / my / blocks / _issuesreportedbyme.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.37 KB)
| 1 | 0:513646585e45 | Chris | <h3><%=l(:label_reported_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)</h3> |
|---|---|---|---|
| 2 | |||
| 3 | 909:cbb26bc654de | Chris | <% reported_issues = Issue.visible.find(:all,
|
| 4 | 0:513646585e45 | Chris | :conditions => { :author_id => User.current.id },
|
| 5 | 909:cbb26bc654de | Chris | :limit => 10,
|
| 6 | :include => [ :status, :project, :tracker ],
|
||
| 7 | 0:513646585e45 | Chris | :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 | 909:cbb26bc654de | Chris | :action => 'index',
|
| 12 | :set_filter => 1,
|
||
| 13 | :status_id => '*',
|
||
| 14 | :author_id => 'me',
|
||
| 15 | :sort => 'updated_on:desc' %></p> |
||
| 16 | 0:513646585e45 | Chris | <% end %>
|
| 17 | |||
| 18 | <% content_for :header_tags do %>
|
||
| 19 | 909:cbb26bc654de | Chris | <%= auto_discovery_link_tag(:atom,
|
| 20 | 0:513646585e45 | Chris | {: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 %> |