diff --git a/app/views/stopwatch_timers/_entries_list.html.erb b/app/views/stopwatch_timers/_entries_list.html.erb index 8e94269..26481bf 100644 --- a/app/views/stopwatch_timers/_entries_list.html.erb +++ b/app/views/stopwatch_timers/_entries_list.html.erb @@ -9,13 +9,14 @@ <% for entry in entries %> - "> + <% running = User.current.is_running_timer?(entry) %> + <%= ' running' if running %>"> <%= entry.activity %> <%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, truncate: 50) if entry.issue %> <%= entry.comments %> <%= html_hours(format_hours(entry.hours)) %> - <% if User.current.is_running_timer?(entry) %> + <% if running %> <%= link_to t(:label_stopwatch_stop), stop_stopwatch_timer_path(entry), remote: true, class: "icon-only icon-time", method: :put %> <% else %> <%= link_to t(:label_stopwatch_start), start_stopwatch_timer_path(entry), remote: true, class: "icon-only icon-time", method: :put %>