<%= link_to_function l(:label_options), "$('#timelog-settings').toggle();", :class => 'icon-only icon-settings', :title => l(:label_options) %>

<%= link_to l(:label_spent_time), time_entries_path(:user_id => 'me') %> (<%= l(:label_last_n_days, days) %>: <%= l_hours_short entries.sum(&:hours) %>) <%= link_to l(:button_log_time), new_time_entry_path, :class => "icon-only icon-add", :title => l(:button_log_time) if User.current.allowed_to?(:log_time, nil, :global => true) %>

<% if entries.any? %> <%= form_tag({}, :data => {:cm_url => time_entries_context_menu_path}) do %> <% entries_by_day.keys.sort.reverse_each do |day| %> <% entries_by_day[day].each do |entry| -%> <% end -%> <% end -%>
<%= l(:field_activity) %> <%= l(:label_project) %> <%= l(:field_comments) %> <%= l(:field_hours) %>
<%= day == User.current.today ? l(:label_today).titleize : format_date(day) %> <%= html_hours(format_hours(entries_by_day[day].sum(&:hours))) %>
<%= check_box_tag("ids[]", entry.id, false, :style => 'display:none;', :id => nil) %> <%= entry.activity %> <%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %> <%= entry.comments %> <%= html_hours(format_hours(entry.hours)) %> <%= link_to_context_menu %>
<% end %> <% else %>

<%= l(:label_no_data) %>

<% end %>