<% if work_item.completed? %>
<% elsif work_item.started? %>
<% else %>
<%# Symbol to show work has not started yet %>
<% end %>
<% if work_item.started? %>
Time spent: <%= humanise_duration(work_item.total_overall_time) %>
<% end %>
<% if work_item.workable? %>
<% start_label = if work_item.started? then
"Continue"
else
"Start"
end %>
<%= button_to start_label,
work_item_start_time_entry_path(work_item),
class: 'action-button'
%>
<% end %>
<% if work_item.started? && !work_item.completed? %>
<%= button_to "Complete",
work_item_complete_path(work_item),
class: 'action-button'
%>
<% end %>