2016-02-12 23:52:43 +08:00
|
|
|
<div class="row">
|
2017-02-10 21:27:20 +08:00
|
|
|
<div class="col-xs-6 col-sm-6 col-md-4">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-calendar-alt"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "my_modules.module_header.start_date" %></span>
|
|
|
|
<strong><%= l(@my_module.created_at, format: :full) %></strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-09-14 19:07:09 +08:00
|
|
|
<div class="col-xs-6 col-sm-6 col-md-4 help_tooltips"
|
|
|
|
data-tooltiplink="<%= I18n.t('tooltips.link.task.due_date_specific') %>"
|
|
|
|
data-tooltipcontent="<%= I18n.t('tooltips.text.task.due_date_specific') %>">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-02-07 18:49:15 +08:00
|
|
|
<% if can_manage_module?(@my_module) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= link_to due_date_my_module_path(@my_module, format: :json), remote: true, class: "due-date-link", style: "color: inherit" do %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-calendar-alt"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-calendar-alt"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "my_modules.module_header.due_date" %></span>
|
2018-02-07 18:49:15 +08:00
|
|
|
<% if can_manage_module?(@my_module) %>
|
2017-02-10 21:27:20 +08:00
|
|
|
<%= link_to due_date_my_module_path(@my_module, format: :json), remote: true, class: "due-date-link", style: "color: inherit" do %>
|
|
|
|
<span class="task-due-date">
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render partial: "module_header_due_date_label.html.erb",
|
|
|
|
locals: { my_module: @my_module } %>
|
2017-02-10 21:27:20 +08:00
|
|
|
</span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
2017-02-10 21:27:20 +08:00
|
|
|
<span class="task-due-date">
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render partial: "module_header_due_date_label.html.erb",
|
|
|
|
locals: { my_module: @my_module } %>
|
2017-02-10 21:27:20 +08:00
|
|
|
</span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-02-10 21:27:20 +08:00
|
|
|
<div class="col-xs-6 col-sm-6 col-md-4">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-check"></span>
|
2017-02-10 21:27:20 +08:00
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="task-state-label">
|
|
|
|
<%= render partial: "module_state_label.html.erb",
|
|
|
|
locals: { my_module: @my_module } %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12" id="module-tags" data-module-tags-url="<%= my_module_my_module_tags_url(@my_module, format: :json) %>">
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-02-09 23:14:40 +08:00
|
|
|
<% if can_manage_module?(@my_module) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<a class="edit-tags-link" data-remote="true" href="<%= my_module_tags_edit_url(@my_module, format: :json) %>" style="color: inherit">
|
2018-05-22 22:55:58 +08:00
|
|
|
<span class="fas fa-tags"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
</a>
|
2018-02-03 03:04:19 +08:00
|
|
|
<% else %>
|
2018-05-22 22:55:58 +08:00
|
|
|
<span class="fas fa-tags"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm"><%=t "my_modules.module_header.tags" %></span>
|
2018-02-07 18:49:15 +08:00
|
|
|
<% if can_manage_module?(@my_module) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= link_to my_module_tags_edit_url(@my_module, format: :json), remote: true, class: "edit-tags-link tags-refresh", style: "color: inherit" do %>
|
|
|
|
<%= render partial: "my_modules/tags", locals: { my_module: @my_module } %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: "my_modules/tags", locals: { my_module: @my_module } %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="badge-icon">
|
2018-02-07 18:49:15 +08:00
|
|
|
<% if can_manage_module?(@my_module) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= link_to description_my_module_path(@my_module, format: :json), remote: true, class: "description-link", style: "color: inherit" do %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-info-circle"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-info-circle"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
2018-02-07 18:49:15 +08:00
|
|
|
<% if can_manage_module?(@my_module) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= link_to description_my_module_path(@my_module, format: :json), remote: true, class: "description-label description-link description-refresh", style: "color: inherit" do %>
|
|
|
|
<% if @my_module.description.present? and not @my_module.description.empty? %>
|
|
|
|
<%= @my_module.description %>
|
|
|
|
<% else %>
|
|
|
|
<em><%=t "my_modules.module_header.no_description" %></em>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<% if @my_module.description.present? and not @my_module.description.empty? %>
|
|
|
|
<%= @my_module.description %>
|
|
|
|
<% else %>
|
|
|
|
<em><%=t "my_modules.module_header.no_description" %></em>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Edit description modal -->
|
|
|
|
<%= render partial: "my_modules/modals/manage_description_modal" %>
|
|
|
|
|
|
|
|
<!-- Edit due date modal -->
|
|
|
|
<%= render partial: "my_modules/modals/manage_due_date_modal" %>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Manage tags modal -->
|
|
|
|
<%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: @my_module } %>
|