_timelog.rhtml

David Petersen, 2008-02-07 19:30

Download (411 Bytes)

 
1
<h3><%=l(:label_timelog_today)%></h3>
2
<% 
3
@today = Date.today.to_s
4
entries = TimeEntry.find(:all,
5
                                :conditions => ['spent_on >= (?) AND spent_on <= (?) AND user_id IN (?)',
6
                                        @today, @today, @user.id],
7
                                :include => [:activity, {:issue => [:tracker, :assigned_to, :priority]}],
8
                                :order => "spent_on ASC")
9
%>
10
<%= render :partial => 'timelog/list_simple', :locals => { :entries => entries } %>