<commit_before><% if @current_sheet -%>
<% info = []
   task = Task.find(@current_sheet.task_id, :conditions => ["tasks.company_id = ?", current_user.company_id], :include => [:project, :work_logs] )
   info << "#{worked_nice(task.worked_minutes + @current_sheet.duration / 60)}" if task.worked_minutes > 0 || task.duration > 0
   info << "#{worked_nice(task.duration)}" if task.duration.to_i > 0

   info_string = " (#{info.join("/")})" if info.size > 0
   info_string = "&nbsp;#{worked_nice(@current_sheet.duration/60)}#{info_string}"
   info_string = "[#{_'Paused'}]#{info_string} " if @current_sheet.paused?
%>

  <%= link_to_remote image_tag("time_delete.png", :border => 0, :title => _("Cancel working on <b>%s</b>.", task.name), :class => "tooltip"),
      :url => { :controller => 'tasks', :action => 'cancel_work_ajax', :id => task, :depth => 0 },
      :loading => "Element.show('loading');",
      :complete => "Element.hide('loading');" -%>
  <% if @current_sheet.paused? %>
    <%= link_to_remote image_tag("time_resume.png", :border => 0, :title => _("Resume working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => 0 },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%>
  <% else %>
    <%= link_to_remote image_tag("time_pause.png", :border => 0, :title => _("Pause working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => 0 },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%>
  <% end %>
<%= info_string %>
<% else %>
[<%= worked_nice(total_today) %> <%=_ 'today'%>]
<% end %>
<script type="text/javascript" language="javascript" charset="utf-8">
document.title = "<%= (@current_sheet ? ((@current_sheet.paused? ? "[#{_('Paused').upcase}] " : "") + worked_nice(@current_sheet.duration/60) + task.issue_name + " / ClockingIT") : "ClockingIT") %>";
</script><commit_msg>Include stop work icon in shortlist header<commit_after><% if @current_sheet -%>
<% info = []
   task = Task.find(@current_sheet.task_id, :conditions => ["tasks.company_id = ?", current_user.company_id], :include => [:project, :work_logs] )
   info << "#{worked_nice(task.worked_minutes + @current_sheet.duration / 60)}" if task.worked_minutes > 0 || task.duration > 0
   info << "#{worked_nice(task.duration)}" if task.duration.to_i > 0

   info_string = " (#{info.join("/")})" if info.size > 0
   info_string = "&nbsp;#{worked_nice(@current_sheet.duration/60)}#{info_string}"
   info_string = "[#{_'Paused'}]#{info_string} " if @current_sheet.paused?
%>

  <%= link_to_remote image_tag("time_delete.png", :border => 0, :title => _("Cancel working on <b>%s</b>.", task.name), :class => "tooltip"),
      :url => { :controller => 'tasks', :action => 'cancel_work_ajax', :id => task, :depth => 0 },
      :loading => "Element.show('loading');",
      :complete => "Element.hide('loading');" -%>
  <% if @current_sheet.paused? %>
    <%= link_to_remote image_tag("time_resume.png", :border => 0, :title => _("Resume working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => 0 },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%>
  <% else %>
    <%= link_to_remote image_tag("time_pause.png", :border => 0, :title => _("Pause working on <b>%s</b>.", task.name), :class => "tooltip"),
        :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => 0 },
        :loading => "Element.show('loading');",
        :complete => "Element.hide('loading');" -%>
  <% end %>
  <%= link_to(image_tag("time_add.png", :border => 0, :class => "tooltip work_icon", :title => _("Stop working on <b>%s</b>.", task.name)), {:controller => 'tasks', :action => 'stop_work'}, { :class => "stop-work-link" } )  -%>
<%= info_string %>
<% else %>
[<%= worked_nice(total_today) %> <%=_ 'today'%>]
<% end %>
<script type="text/javascript" language="javascript" charset="utf-8">
document.title = "<%= (@current_sheet ? ((@current_sheet.paused? ? "[#{_('Paused').upcase}] " : "") + worked_nice(@current_sheet.duration/60) + task.issue_name + " / ClockingIT") : "ClockingIT") %>";
</script>
{'fraction_non_alphanumeric': 0.24019941083163382, 'fraction_numerical': 0.007931112621799229, 'mean_word_length': 4.449382716049382, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 128, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7372677', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1513, 'n_words': 291}