Mercurial > hg > soundsoftware-site
comparison app/views/timelog/_list.html.erb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | c6c2cbd0afee |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
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 <table class="list time-entries"> | 4 <table class="list time-entries"> |
4 <thead> | 5 <thead> |
5 <tr> | 6 <tr> |
6 <th class="checkbox hide-when-print"> | 7 <th class="checkbox hide-when-print"> |
7 <%= link_to image_tag('toggle_check.png'), | 8 <%= link_to image_tag('toggle_check.png'), |
8 {}, | 9 {}, |
9 :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', | 10 :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', |
10 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> | 11 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> |
11 </th> | 12 </th> |
12 <%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> | 13 <%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> |
13 <%= sort_header_tag('user', :caption => l(:label_member)) %> | 14 <%= sort_header_tag('user', :caption => l(:label_member)) %> |
14 <%= sort_header_tag('activity', :caption => l(:label_activity)) %> | 15 <%= sort_header_tag('activity', :caption => l(:label_activity)) %> |
22 <tbody> | 23 <tbody> |
23 <% entries.each do |entry| -%> | 24 <% entries.each do |entry| -%> |
24 <tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu"> | 25 <tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu"> |
25 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> | 26 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> |
26 <td class="spent_on"><%= format_date(entry.spent_on) %></td> | 27 <td class="spent_on"><%= format_date(entry.spent_on) %></td> |
27 <td class="user"><%=h entry.user %></td> | 28 <td class="user"><%= link_to_user(entry.user) %></td> |
28 <td class="activity"><%=h entry.activity %></td> | 29 <td class="activity"><%=h entry.activity %></td> |
29 <td class="project"><%=h entry.project %></td> | 30 <td class="project"><%= link_to_project(entry.project) %></td> |
30 <td class="subject"> | 31 <td class="subject"> |
31 <% if entry.issue -%> | 32 <% if entry.issue -%> |
32 <%= entry.issue.visible? ? link_to_issue(entry.issue, :truncate => 50) : "##{entry.issue.id}" -%> | 33 <%= entry.issue.visible? ? link_to_issue(entry.issue, :truncate => 50) : "##{entry.issue.id}" -%> |
33 <% end -%> | 34 <% end -%> |
34 </td> | 35 </td> |
46 </td> | 47 </td> |
47 </tr> | 48 </tr> |
48 <% end -%> | 49 <% end -%> |
49 </tbody> | 50 </tbody> |
50 </table> | 51 </table> |
52 </div> | |
51 <% end -%> | 53 <% end -%> |
52 | 54 |
53 <%= context_menu time_entries_context_menu_path %> | 55 <%= context_menu time_entries_context_menu_path %> |