<%= render(file: File.join(EasyExtensions::EASY_EXTENSIONS_DIR, 'app/views', 'timelog/index.html.erb')) %>
<% content_for :easy_page_layout_service_box_primary_actions, {flush: true} do %>
  <!--override by easy_project_com-->
<% end %>
<% content_for :easy_page_layout_service_box, {flush: true} do %>
  <!--override by easy_project_com-->
  <div class="easy-entity-details-sidebar-attributes">
    <table class="highlight">
      <tr class="total-hours">
        <td class="big color-important"><%= format_hours(TimeEntry.sum_total_spent_hours(@project), format: 'simple') %></td>
        <th><label><%= l(:label_overall_spent_time) %></label><th>
      </tr>
      <tr>
        <td class="big color-positive"><%= format_hours(TimeEntry.sum_previous_month_hours(@project), format: 'simple') %></td>
        <th><label><%= l(:label_last_month).capitalize %></label></th>
      </tr>
      <tr>
        <td class="big color-positive"><%= format_hours(TimeEntry.sum_previous_week_hours(@project), format: 'simple') %></td>
        <th><label><%= l(:label_last_week).capitalize %></label><th>
      </tr>

    </table>
  </div>
  <%#= link_to(l(:label_project_all), time_entries_path, class: 'button') if @project %>
<% end %>
