워크플로우 대시보드

<%= @total_stats[:active_workflows] %>
활성 워크플로우
<%= @total_stats[:issues_in_workflow] %>
진행 중인 이슈
<%= @total_stats[:completed_today] %>
오늘 완료

프로젝트별 현황

<% if @project_stats.any? %> <% @project_stats.each do |stat| %> <% end %>
프로젝트 진행 중 완료
<%= link_to stat[:project].name, project_path(stat[:project]) %> <%= stat[:in_progress] %> <%= stat[:completed] %> <%= link_to '상세', workflow_dashboard_project_path(stat[:project]), class: 'button', style: 'padding: 2px 8px; font-size: 11px;' %>
<% else %>

워크플로우가 적용된 이슈가 없습니다.

<% end %>

내 담당 이슈

<% if @my_issues.any? %> <% @my_issues.each do |state| %> <% end %>
이슈 현재 단계
<%= link_to "##{state.issue.id}", issue_path(state.issue) %> <%= truncate(state.issue.subject, length: 30) %> <%= state.current_step&.name %> <%= link_to '처리', issue_path(state.issue), class: 'button button-positive', style: 'padding: 2px 8px; font-size: 11px;' %>
<% else %>

담당 이슈가 없습니다.

<% end %>
<% if @overdue_issues.any? %>

지연된 이슈

<% @overdue_issues.each do |state| %> <% step_started_at = state.updated_at due_date = step_started_at + state.current_step.due_days.days overdue_days = ((Time.current - due_date) / 1.day).to_i %> <% end %>
이슈 현재 단계 지연일
<%= link_to "##{state.issue.id}", issue_path(state.issue) %> <%= truncate(state.issue.subject, length: 25) %> <%= state.current_step&.name %> <%= overdue_days %>일
<% end %>

<%= link_to '워크플로우 관리', '/custom_workflows', class: 'icon icon-settings' %>