<%if @is_manager
all_types = ["all_tasks","my_tasks","my_assisted_tasks","my_observed_tasks"]
else
all_types = ["my_tasks","my_assisted_tasks","my_observed_tasks"]
end
%>
<% all_types.each_with_index do |type,i| %>
<% active = false %>
<% if i == 0 && !(all_types.include?(params[:type]))
active = true
else
active = (type == params[:type])
end
%>
<%=t("ruling_timer.#{type}")%>
<% end %>
<% 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| %>