<%= "#{@project.get_project_name} - " if @project%><%= t("ruling_timer.task") %>

<% if params[:id].present? %> <% task_group = @tasks.group_by(&:ruling_timer_section_id) %> <% task_group_count = task_group.count %> <% task_group.each_with_index do |(ruling_timer_section_id, tasks), i| %>

<%= tasks[0].ruling_timer_section.section_name rescue I18n.t("ruling_timer.none") %>

<%= render :partial => "task_table", :locals =>{:tasks => tasks} %> <%= '
'.html_safe if i < task_group_count - 1 %> <% end %> <% else %> <%= render :partial => "task_table", :locals =>{:tasks => @tasks} %> <% end %> <%= content_tag :div, class: "bottomnav clearfix" do content_tag(:div, paginate(@tasks), class: "pagination pagination-centered") + content_tag(:div, link_to(t("ruling_timer.add_task"), add_task_admin_ruling_timers_path + (@project ? "?project_id=#{@project.id}" : ""), :class=>"btn btn-primary"), class: "pull-right") end %>