mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
24 lines
926 B
Text
24 lines
926 B
Text
<% task_date = current_task_date(task) %>
|
|
<a class="current-task-item" href="<%= protocols_my_module_path(task.id) %>">
|
|
<div class="current-task-breadcrumbs"><%= task.project_name %>
|
|
<span class="slash">/</span>
|
|
<%= task.experiment_name %>
|
|
<span class="slash">/</span>
|
|
<%= task.code %>
|
|
</div>
|
|
<div class="task-name row-border">
|
|
<%= task.name %>
|
|
</div>
|
|
<div class="task-due-date row-border <%= task_date[:span_class]%>">
|
|
<% if task_date[:date] %>
|
|
<i class="sn-icon sn-icon-calendar-small"></i>
|
|
<%= t("dashboard.current_tasks.#{task_date[:translation_key]}", date: l(task_date[:date], format: :full_date)) %>
|
|
<% end %>
|
|
</div>
|
|
<div class="task-status-container row-border">
|
|
<span class="task-status <%= 'btn-not-started' if task.status_name == 'Not started' %>"
|
|
style="background:<%= task.status_color %>">
|
|
<%= task.status_name %>
|
|
</span>
|
|
</div>
|
|
</a>
|