|
|
|
@ -56,14 +56,18 @@ See doc/COPYRIGHT.md for more details. |
|
|
|
|
<td class="hours"><%= html_hours("%.2f" % entry.hours) %></td> |
|
|
|
|
<td align="center"> |
|
|
|
|
<% if entry.editable_by?(@user) -%> |
|
|
|
|
<%= link_to image_tag('webalys/edit.png'), {:controller => '/timelog', :action => 'edit', :id => entry}, |
|
|
|
|
:alt => l(:button_edit), |
|
|
|
|
:title => l(:button_edit) %> |
|
|
|
|
<%= link_to image_tag('webalys/delete.png'), {:controller => '/timelog', :action => 'destroy', :id => entry}, |
|
|
|
|
:confirm => l(:text_are_you_sure), |
|
|
|
|
:method => :delete, |
|
|
|
|
:alt => l(:button_delete), |
|
|
|
|
:title => l(:button_delete) %> |
|
|
|
|
<%= link_to icon_wrapper('icon-context icon-edit', t(:button_edit)), |
|
|
|
|
{:controller => '/timelog', :action => 'edit', :id => entry}, |
|
|
|
|
:alt => l(:button_edit), |
|
|
|
|
:class => 'no-decoration-on-hover', |
|
|
|
|
:title => l(:button_edit) %> |
|
|
|
|
<%= link_to icon_wrapper('icon-context icon-delete', t(:button_delete)), |
|
|
|
|
{:controller => '/timelog', :action => 'destroy', :id => entry}, |
|
|
|
|
:confirm => l(:text_are_you_sure), |
|
|
|
|
:method => :delete, |
|
|
|
|
:class => 'no-decoration-on-hover', |
|
|
|
|
:alt => l(:button_delete), |
|
|
|
|
:title => l(:button_delete) %> |
|
|
|
|
<% end -%> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|