2020-10-26 18:03:43 +08:00
|
|
|
<% task_date = current_task_date(task) %>
|
2020-10-22 14:02:15 +08:00
|
|
|
<a class="current-task-item" href="<%= protocols_my_module_path(task.id) %>">
|
2023-02-16 20:57:17 +08:00
|
|
|
<div class="current-task-breadcrumbs"><%= task.project_name %>
|
2022-11-08 20:06:48 +08:00
|
|
|
<span class="slash">/</span>
|
2023-02-16 20:57:17 +08:00
|
|
|
<%= task.experiment_name %>
|
2022-11-08 20:06:48 +08:00
|
|
|
<span class="slash">/</span>
|
|
|
|
<%= task.code %>
|
|
|
|
</div>
|
2020-10-22 14:02:15 +08:00
|
|
|
<div class="task-name row-border">
|
|
|
|
<%= task.name %>
|
|
|
|
</div>
|
2020-10-26 18:03:43 +08:00
|
|
|
<div class="task-due-date row-border <%= task_date[:span_class]%>">
|
|
|
|
<% if task_date[:date] %>
|
2023-06-08 14:33:37 +08:00
|
|
|
<i class="sn-icon sn-icon-calendar-small"></i>
|
2020-10-26 18:03:43 +08:00
|
|
|
<%= t("dashboard.current_tasks.#{task_date[:translation_key]}", date: l(task_date[:date], format: :full_date)) %>
|
|
|
|
<% end %>
|
2020-10-22 14:02:15 +08:00
|
|
|
</div>
|
|
|
|
<div class="task-status-container row-border">
|
|
|
|
<span class="task-status" style="background:<%= task.status_color %>"><%= task.status_name %></span>
|
|
|
|
</div>
|
|
|
|
</a>
|