Patch #4972 » add_issue_view_all_link.diff
app/views/my/blocks/_issueswatched.rhtml (working copy) | ||
---|---|---|
1 |
<h3><%=l(:label_watched_issues)%> (<%= Issue.visible.count(:include => :watchers, |
|
2 |
:conditions => ["#{Watcher.table_name}.user_id = ?", user.id]) %>)</h3> |
|
1 |
<% issue_view_all_url = url_for :controller => 'issues', |
|
2 |
:action => 'index', |
|
3 |
:set_filter => 1, |
|
4 |
:watcher_id => 'me', |
|
5 |
:sort => 'updated_on:desc' %> |
|
6 |
<h3><%=l(:label_watched_issues)%> (<%= link_to Issue.visible.count(:include => :watchers, |
|
7 |
:conditions => ["#{Watcher.table_name}.user_id = ?", user.id]), issue_view_all_url %>)</h3> |
|
3 | 8 |
<% watched_issues = Issue.visible.find(:all, |
4 | 9 |
:include => [:status, :project, :tracker, :watchers], |
5 | 10 |
:limit => 10, |
... | ... | |
8 | 13 | |
9 | 14 |
<%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %> |
10 | 15 |
<% if watched_issues.length > 0 %> |
11 |
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', |
|
12 |
:action => 'index', |
|
13 |
:set_filter => 1, |
|
14 |
:watcher_id => 'me', |
|
15 |
:sort => 'updated_on:desc' %></p> |
|
16 |
<p class="small"><%= link_to l(:label_issue_view_all), issue_view_all_url %></p> |
|
16 | 17 |
<% end %> |
app/views/my/blocks/_issuesreportedbyme.rhtml (working copy) | ||
---|---|---|
1 |
<h3><%=l(:label_reported_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)</h3> |
|
1 |
<% issue_view_all_url = url_for :controller => 'issues', |
|
2 |
:action => 'index', |
|
3 |
:set_filter => 1, |
|
4 |
:status_id => '*', |
|
5 |
:author_id => 'me', |
|
6 |
:sort => 'updated_on:desc' %> |
|
7 |
<h3><%=l(:label_reported_issues)%> (<%= link_to Issue.visible.count(:conditions => { :author_id => User.current.id }), issue_view_all_url %>)</h3> |
|
2 | 8 | |
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") %> |
|
9 |
<% reported_issues = Issue.visible.find(:all, issue_view_all_url) %> |
|
8 | 10 |
<%= render :partial => 'issues/list_simple', :locals => { :issues => reported_issues } %> |
9 | 11 |
<% 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> |
|
12 |
<p class="small"><%= link_to l(:label_issue_view_all), issue_view_all_url %></p> |
|
16 | 13 |
<% end %> |
17 | 14 | |
18 | 15 |
<% content_for :header_tags do %> |
app/views/my/blocks/_issuesassignedtome.rhtml (working copy) | ||
---|---|---|
1 |
<h3><%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)</h3> |
|
1 |
<% issue_view_all_url = url_for :controller => 'issues', |
|
2 |
:action => 'index', |
|
3 |
:set_filter => 1, |
|
4 |
:assigned_to_id => 'me', |
|
5 |
:sort => 'priority:desc,updated_on:desc' %> |
|
6 |
<h3><%=l(:label_assigned_to_me_issues)%> (<%= link_to Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id}), issue_view_all_url %>)</h3> |
|
2 | 7 | |
3 | 8 |
<% assigned_issues = Issue.visible.open.find(:all, |
4 | 9 |
:conditions => {:assigned_to_id => User.current.id}, |
... | ... | |
7 | 12 |
:order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %> |
8 | 13 |
<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %> |
9 | 14 |
<% if assigned_issues.length > 0 %> |
10 |
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', |
|
11 |
:action => 'index', |
|
12 |
:set_filter => 1, |
|
13 |
:assigned_to_id => 'me', |
|
14 |
:sort => 'priority:desc,updated_on:desc' %></p> |
|
15 |
<p class="small"><%= link_to l(:label_issue_view_all), issue_view_all_url %></p> |
|
15 | 16 |
<% end %> |
16 | 17 | |
17 | 18 |
<% content_for :header_tags do %> |