##// END OF EJS Templates
User #where instead of :conditions....
Jean-Philippe Lang -
r11631:5b29964512f7
parent child
Show More
@@ -1,15 +1,15
1 1 <h3>
2 2 <%= link_to l(:label_assigned_to_me_issues),
3 3 issues_path(:set_filter => 1, :assigned_to_id => 'me', :sort => 'priority:desc,updated_on:desc') %>
4 (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => ([User.current.id] + User.current.group_ids)})%>)
4 (<%= Issue.visible.open.where(:assigned_to_id => ([User.current.id] + User.current.group_ids)).count %>)
5 5 </h3>
6 6
7 7 <% assigned_issues = issuesassignedtome_items %>
8 8 <%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %>
9 9
10 10 <% content_for :header_tags do %>
11 11 <%= auto_discovery_link_tag(:atom,
12 12 {:controller => 'issues', :action => 'index', :set_filter => 1,
13 13 :assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key},
14 14 {:title => l(:label_assigned_to_me_issues)}) %>
15 15 <% end %>
@@ -1,15 +1,15
1 1 <h3>
2 2 <%= link_to l(:label_reported_issues),
3 3 issues_path(:set_filter => 1, :status_id => '*', :author_id => 'me', :sort => 'updated_on:desc') %>
4 (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)
4 (<%= Issue.visible.where(:author_id => User.current.id).count %>)
5 5 </h3>
6 6
7 7 <% reported_issues = issuesreportedbyme_items %>
8 8 <%= render :partial => 'issues/list_simple', :locals => { :issues => reported_issues } %>
9 9
10 10 <% content_for :header_tags do %>
11 11 <%= auto_discovery_link_tag(:atom,
12 12 {:controller => 'issues', :action => 'index', :set_filter => 1,
13 13 :author_id => 'me', :format => 'atom', :key => User.current.rss_key},
14 14 {:title => l(:label_reported_issues)}) %>
15 15 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now