2019-05-06 22:20:00 +08:00
|
|
|
<div class="header-container">
|
|
|
|
<div class="flex-block date-block">
|
2019-11-21 19:14:43 +08:00
|
|
|
<div class="flex-block-label">
|
|
|
|
<span class="fas block-icon fa-calendar-alt"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "my_modules.module_header.start_date" %></span>
|
|
|
|
</div>
|
2019-11-21 19:14:43 +08:00
|
|
|
<strong><%= l(@my_module.created_at, format: :full) %></strong>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2020-03-17 00:55:35 +08:00
|
|
|
|
2019-07-09 20:00:53 +08:00
|
|
|
<div class="flex-block date-block" >
|
2019-11-21 19:14:43 +08:00
|
|
|
<span class="fas block-icon fa-calendar-alt"></span>
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "my_modules.module_header.due_date" %></span>
|
|
|
|
<div class="due-date-container" data-update-url="<%= my_module_path(@my_module, format: :json) %>">
|
2020-03-17 00:55:35 +08:00
|
|
|
<%= render partial: "module_header_due_date.html.erb",
|
2019-11-21 19:14:43 +08:00
|
|
|
locals: { my_module: @my_module } %>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
|
2019-03-15 21:21:34 +08:00
|
|
|
|
2019-05-06 22:20:00 +08:00
|
|
|
|
|
|
|
<div class="flex-block">
|
2019-11-21 19:14:43 +08:00
|
|
|
<div class="flex-block-label">
|
|
|
|
<span class="fas block-icon fa-tachometer-alt"></span>
|
|
|
|
<%= t('my_modules.states.state_label') %>
|
2017-02-10 21:27:20 +08:00
|
|
|
</div>
|
2019-11-21 19:14:43 +08:00
|
|
|
<span class="task-state-label">
|
2017-02-10 21:27:20 +08:00
|
|
|
<%= render partial: "module_state_label.html.erb",
|
|
|
|
locals: { my_module: @my_module } %>
|
2019-11-21 19:14:43 +08:00
|
|
|
</span>
|
2017-02-10 21:27:20 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-06 22:20:00 +08:00
|
|
|
|
|
|
|
<div class="complete-button-container">
|
|
|
|
<%= render partial: "my_modules/state_buttons.html.erb" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="module-tags">
|
|
|
|
<div id="module-tags" data-module-tags-url="<%= my_module_my_module_tags_url(@my_module, format: :json) %>">
|
2019-11-21 19:14:43 +08:00
|
|
|
<span class="fas block-icon fa-tags"></span>
|
2019-05-11 02:39:26 +08:00
|
|
|
<span class="hidden-xs hidden-sm tags-title"><%=t "my_modules.module_header.tags" %></span>
|
|
|
|
<%= render partial: "my_modules/tags", locals: { my_module: @my_module, editable: can_manage_module?(@my_module) } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-05-06 22:20:00 +08:00
|
|
|
|
|
|
|
<div class="module-description">
|
2019-05-11 22:04:28 +08:00
|
|
|
<div class="title">
|
2019-03-14 23:08:52 +08:00
|
|
|
<%= t('my_modules.module_header.description_label') %>
|
2019-05-11 22:04:28 +08:00
|
|
|
</div>
|
2019-03-14 23:08:52 +08:00
|
|
|
<div class="my-module-description-content">
|
|
|
|
<% if can_manage_module?(@my_module) %>
|
|
|
|
<%= render partial: "description_form" %>
|
|
|
|
<% elsif @my_module.description.present? %>
|
2019-05-11 02:39:26 +08:00
|
|
|
<%= custom_auto_link(@my_module.tinymce_render(:description),
|
2019-03-20 06:32:24 +08:00
|
|
|
simple_format: false,
|
|
|
|
tags: %w(img),
|
|
|
|
team: current_team) %>
|
2019-03-14 23:08:52 +08:00
|
|
|
<% else %>
|
2019-05-11 22:04:28 +08:00
|
|
|
<span class="no-description"><%= t('my_modules.module_header.no_description') %></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
2019-03-14 23:08:52 +08:00
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Manage tags modal -->
|
|
|
|
<%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: @my_module } %>
|