annotate app/views/timelog/_list.html.erb @ 1296:038ba2d95de8 redmine-2.2

Fix redmine-2.2 branch update (add missing svn files)
author Chris Cannam
date Fri, 14 Jun 2013 09:05:06 +0100
parents 433d4f72a19b
children 622f24f53b42 261b3d9a4903
rev   line source
Chris@1115 1 <%= form_tag({}) do -%>
Chris@441 2 <%= hidden_field_tag 'back_url', url_for(params) %>
Chris@909 3 <div class="autoscroll">
Chris@0 4 <table class="list time-entries">
Chris@0 5 <thead>
Chris@0 6 <tr>
Chris@441 7 <th class="checkbox hide-when-print">
Chris@909 8 <%= link_to image_tag('toggle_check.png'),
Chris@909 9 {},
Chris@1115 10 :onclick => 'toggleIssuesSelection(this); return false;',
Chris@441 11 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
Chris@441 12 </th>
Chris@0 13 <%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %>
Chris@0 14 <%= sort_header_tag('user', :caption => l(:label_member)) %>
Chris@0 15 <%= sort_header_tag('activity', :caption => l(:label_activity)) %>
Chris@0 16 <%= sort_header_tag('project', :caption => l(:label_project)) %>
Chris@0 17 <%= sort_header_tag('issue', :caption => l(:label_issue), :default_order => 'desc') %>
Chris@0 18 <th><%= l(:field_comments) %></th>
Chris@0 19 <%= sort_header_tag('hours', :caption => l(:field_hours)) %>
Chris@0 20 <th></th>
Chris@0 21 </tr>
Chris@0 22 </thead>
Chris@0 23 <tbody>
Chris@0 24 <% entries.each do |entry| -%>
Chris@441 25 <tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu">
Chris@441 26 <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
Chris@0 27 <td class="spent_on"><%= format_date(entry.spent_on) %></td>
Chris@909 28 <td class="user"><%= link_to_user(entry.user) %></td>
Chris@0 29 <td class="activity"><%=h entry.activity %></td>
Chris@909 30 <td class="project"><%= link_to_project(entry.project) %></td>
Chris@0 31 <td class="subject">
Chris@0 32 <% if entry.issue -%>
Chris@0 33 <%= entry.issue.visible? ? link_to_issue(entry.issue, :truncate => 50) : "##{entry.issue.id}" -%>
Chris@0 34 <% end -%>
Chris@0 35 </td>
Chris@0 36 <td class="comments"><%=h entry.comments %></td>
Chris@0 37 <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
Chris@0 38 <td align="center">
Chris@0 39 <% if entry.editable_by?(User.current) -%>
Chris@1115 40 <%= link_to image_tag('edit.png'), edit_time_entry_path(entry),
Chris@0 41 :title => l(:button_edit) %>
Chris@1115 42 <%= link_to image_tag('delete.png'), time_entry_path(entry),
Chris@1115 43 :data => {:confirm => l(:text_are_you_sure)},
chris@37 44 :method => :delete,
Chris@0 45 :title => l(:button_delete) %>
Chris@0 46 <% end -%>
Chris@0 47 </td>
Chris@0 48 </tr>
Chris@0 49 <% end -%>
Chris@0 50 </tbody>
Chris@0 51 </table>
Chris@909 52 </div>
Chris@441 53 <% end -%>
Chris@441 54
Chris@441 55 <%= context_menu time_entries_context_menu_path %>