% if entries.any? %>
| <%= l(:label_activity) %> | <%= l(:label_project) %> | <%= l(:field_comments) %> | <%= l(:field_hours) %> | |
|---|---|---|---|---|
| <%= entry.activity %> | <%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, truncate: 50) if entry.issue %> | <%= entry.comments %> | <%= html_hours(format_hours(entry.hours)) %> | <% if running %> <%= link_to sprite_icon(:time, t(:label_stopwatch_stop)), stop_stopwatch_timer_path(entry), remote: true, class: "icon-only", method: :put %> <% else %> <%= link_to sprite_icon(:time, t(:label_stopwatch_start)), start_stopwatch_timer_path(entry), remote: true, class: "icon-only", method: :put %> <% end %> <%= link_to sprite_icon(:edit, l(:button_edit)), edit_stopwatch_timer_path(entry), remote: true, class: "icon-only" if entry.editable_by? User.current %> |