<% tasks.each_with_index do |task,i| %> <% end %>
<%= t("ruling_timer.ticket_no") %> <%= t("ruling_timer.priority") %> <%= t("ruling_timer.project") %> <%= t("ruling_timer.task_name") %> <%= t(:tags) %> <%= t("ruling_timer.owner") %> <%= t("ruling_timer.progress") %> <%= t("ruling_timer.task_status") %> <%=t("action")%>
<%=task.ticket_no%> <%=task.get_priority%> <%= task.ruling_timer_project.get_project_name rescue "" %> <%=task.task_name%> <%=task.owner.name rescue "" %> <%=task.progress%>% <% if task.user_ids %> <% user_ids = task.user_ids user_bson_ids = user_ids.map{|id| BSON::ObjectId(id)} %> <% users = User.find(user_ids).index_by(&:id).slice(*user_bson_ids).values %> <% users.each do |user| %> <% sub_task = task.ruling_timer_sub_tasks.where(:user=>user).first %> <% next if sub_task.nil? %> <% klass = (sub_task.status == 'working' ? 'fa-play' : (sub_task.status == 'finish' ? 'fa-flag-checkered' : 'fa-pause') rescue 'fa-pause') %> <%=user.name%>( <%=sub_task.get_infos["work"] rescue "00:00:00" %> )
<% end %> <% end %>
<%=t("view")%> <%=t("edit")%> <%=t("ruling_timer.delete_task")%>