details.rhtml.patch

David Petersen, 2008-02-07 21:34

Download (1.16 KB)

View differences:

details.rhtml (working copy)
18 18
<%= sort_header_tag('issue_id', :caption => l(:label_issue)) %>
19 19
<th><%= l(:field_comments) %></th>
20 20
<%= sort_header_tag('hours', :caption => l(:field_hours)) %>
21
<th></th>
21
<th>&nbsp;</th>
22
<th>&nbsp;</th>
22 23
</thead>
23 24
<tbody>
24 25
<% @entries.each do |entry| %>
......
39 40
<td><%=h entry.comments %></td>
40 41
<td align="center"><strong><%= entry.hours %></strong></td>
41 42
<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>
43
<td align="center"><%= link_to_if_authorized(l(:button_delete), {:controller => 'timelog', :action => 'destroy', :id => entry}, :class => "icon icon-del") if entry.user_id == @owner_id %></td>
42 44
</tr>
43 45
<% end %>
44 46
</tbdoy>
......
48 50
<%= l(:label_export_to) %>
49 51
<%= link_to 'CSV', params.update(:export => 'csv'), :class => 'icon icon-csv' %>
50 52
</div>
51
<% end %>
53
<% end %>