Mercurial > hg > soundsoftware-site
comparison app/views/timelog/_list.html.erb @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
1 <%= form_tag({}) do -%> | 1 <%= form_tag({}) do -%> |
2 <%= hidden_field_tag 'back_url', url_for(params) %> | 2 <%= hidden_field_tag 'back_url', url_for(params) %> |
3 <div class="autoscroll"> | 3 <div class="autoscroll"> |
4 <table class="list time-entries"> | 4 <table class="list time-entries"> |
5 <thead> | 5 <thead> |
6 <tr> | 6 <tr> |
7 <th class="checkbox hide-when-print"> | 7 <th class="checkbox hide-when-print"> |
8 <%= link_to image_tag('toggle_check.png'), | 8 <%= link_to image_tag('toggle_check.png'), |
9 {}, | 9 {}, |
10 :onclick => 'toggleIssuesSelection(this); return false;', | 10 :onclick => 'toggleIssuesSelection(this); return false;', |
11 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> | 11 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> |
12 </th> | 12 </th> |
13 <%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> | 13 <% @query.inline_columns.each do |column| %> |
14 <%= sort_header_tag('user', :caption => l(:label_member)) %> | 14 <%= column_header(column) %> |
15 <%= sort_header_tag('activity', :caption => l(:label_activity)) %> | 15 <% end %> |
16 <%= sort_header_tag('project', :caption => l(:label_project)) %> | 16 <th></th> |
17 <%= sort_header_tag('issue', :caption => l(:label_issue), :default_order => 'desc') %> | 17 </tr> |
18 <th><%= l(:field_comments) %></th> | |
19 <%= sort_header_tag('hours', :caption => l(:field_hours)) %> | |
20 <th></th> | |
21 </tr> | |
22 </thead> | 18 </thead> |
23 <tbody> | 19 <tbody> |
24 <% entries.each do |entry| -%> | 20 <% entries.each do |entry| -%> |
25 <tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu"> | 21 <tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu"> |
26 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> | 22 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> |
27 <td class="spent_on"><%= format_date(entry.spent_on) %></td> | 23 <%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %> |
28 <td class="user"><%= link_to_user(entry.user) %></td> | 24 <td align="center"> |
29 <td class="activity"><%=h entry.activity %></td> | 25 <% if entry.editable_by?(User.current) -%> |
30 <td class="project"><%= link_to_project(entry.project) %></td> | 26 <%= link_to image_tag('edit.png'), edit_time_entry_path(entry), |
31 <td class="subject"> | 27 :title => l(:button_edit) %> |
32 <% if entry.issue -%> | 28 <%= link_to image_tag('delete.png'), time_entry_path(entry), |
33 <%= entry.issue.visible? ? link_to_issue(entry.issue, :truncate => 50) : "##{entry.issue.id}" -%> | 29 :data => {:confirm => l(:text_are_you_sure)}, |
34 <% end -%> | 30 :method => :delete, |
35 </td> | 31 :title => l(:button_delete) %> |
36 <td class="comments"><%=h entry.comments %></td> | 32 <% end -%> |
37 <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td> | 33 </td> |
38 <td align="center"> | 34 </tr> |
39 <% if entry.editable_by?(User.current) -%> | |
40 <%= link_to image_tag('edit.png'), edit_time_entry_path(entry), | |
41 :title => l(:button_edit) %> | |
42 <%= link_to image_tag('delete.png'), time_entry_path(entry), | |
43 :data => {:confirm => l(:text_are_you_sure)}, | |
44 :method => :delete, | |
45 :title => l(:button_delete) %> | |
46 <% end -%> | |
47 </td> | |
48 </tr> | |
49 <% end -%> | 35 <% end -%> |
50 </tbody> | 36 </tbody> |
51 </table> | 37 </table> |
52 </div> | 38 </div> |
53 <% end -%> | 39 <% end -%> |