@@ -1,51 +1,51 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time' %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%= l(:label_spent_time) %></h2> |
|
6 | 6 | |
|
7 | 7 | <h3><%= link_to(@project.name, {:action => 'details', :project_id => @project}) if @project %> |
|
8 | 8 | <%= "/ " + link_to("#{@issue.tracker.name} ##{@issue.id}", {:action => 'details', :issue_id => @issue }) + ": #{h(@issue.subject)}" if @issue %></h3> |
|
9 | 9 | |
|
10 | 10 | <h3 class="textright"><%= l(:label_total) %>: <%= lwr(:label_f_hour, @total_hours) %></h3> |
|
11 | 11 | |
|
12 | 12 | <% unless @entries.empty? %> |
|
13 | 13 | <table class="list"> |
|
14 | 14 | <thead> |
|
15 | 15 | <%= sort_header_tag('spent_on', :caption => l(:label_date)) %> |
|
16 | 16 | <%= sort_header_tag('user_id', :caption => l(:label_member)) %> |
|
17 | 17 | <%= sort_header_tag('activity_id', :caption => l(:label_activity)) %> |
|
18 | 18 | <%= sort_header_tag('issue_id', :caption => l(:label_issue)) %> |
|
19 |
<th><%= l(: |
|
|
19 | <th><%= l(:field_comments) %></th> | |
|
20 | 20 | <%= sort_header_tag('hours', :caption => l(:field_hours)) %> |
|
21 | 21 | <th></th> |
|
22 | 22 | </thead> |
|
23 | 23 | <tbody> |
|
24 | 24 | <% @entries.each do |entry| %> |
|
25 | 25 | <tr class="<%= cycle("odd", "even") %>"> |
|
26 | 26 | <td align="center"><%= format_date(entry.spent_on) %></td> |
|
27 | 27 | <td align="center"><%= entry.user.name %></td> |
|
28 | 28 | <td align="center"><%= entry.activity.name %></td> |
|
29 | 29 | <td align="center"> |
|
30 | 30 | <% if entry.issue %> |
|
31 | 31 | <div class="tooltip"> |
|
32 | 32 | <%= link_to "#{entry.issue.tracker.name} ##{entry.issue.id}", {:action => 'details', :issue_id => entry.issue } %> |
|
33 | 33 | <span class="tip"> |
|
34 | 34 | <%= render :partial => "issues/tooltip", :locals => { :issue => entry.issue }%> |
|
35 | 35 | </span> |
|
36 | 36 | </div> |
|
37 | 37 | <% end %> |
|
38 | 38 | </td> |
|
39 | 39 | <td><%=h entry.comments %></td> |
|
40 | 40 | <td align="center"><strong><%= entry.hours %></strong></td> |
|
41 | 41 | <td align="center"><%= link_to_if_authorized(l(:button_edit), {:controller => 'timelog', :action => 'edit', :id => entry}, :class => "icon icon-edit") if entry.user_id == @owner_id %></td> |
|
42 | 42 | </tr> |
|
43 | 43 | <% end %> |
|
44 | 44 | </tbdoy> |
|
45 | 45 | </table> |
|
46 | 46 | |
|
47 | 47 | <div class="contextual"> |
|
48 | 48 | <%= l(:label_export_to) %> |
|
49 | 49 | <%= link_to 'CSV', params.update(:export => 'csv'), :class => 'icon icon-csv' %> |
|
50 | 50 | </div> |
|
51 | 51 | <% end %> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now