@@ -1,9 +1,9 | |||||
1 | <h3><%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)</h3> |
|
1 | <h3><%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)</h3> | |
2 | <% |
|
2 | <% | |
3 | entries = TimeEntry.find(:all, |
|
3 | entries = TimeEntry.find(:all, | |
4 |
|
|
4 | :conditions => ["#{TimeEntry.table_name}.user_id = ? AND #{TimeEntry.table_name}.spent_on BETWEEN ? AND ?", @user.id, Date.today - 6, Date.today], | |
5 |
|
|
5 | :include => [:activity, :project, {:issue => [:tracker, :status]}], | |
6 |
|
|
6 | :order => "#{TimeEntry.table_name}.spent_on DESC, #{Project.table_name}.name ASC, #{Tracker.table_name}.position ASC, #{Issue.table_name}.id ASC") | |
7 | entries_by_day = entries.group_by(&:spent_on) |
|
7 | entries_by_day = entries.group_by(&:spent_on) | |
8 | %> |
|
8 | %> | |
9 |
|
9 |
General Comments 0
You need to be logged in to leave comments.
Login now