mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
98 lines
No EOL
4.1 KiB
Text
98 lines
No EOL
4.1 KiB
Text
<div class="row">
|
|
<div class="col-xs-6 col-sm-6 col-md-3">
|
|
<div class="badge-icon bg-primary">
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
</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>
|
|
|
|
<div class="col-xs-6 col-sm-6 col-md-3">
|
|
<div class="badge-icon bg-primary">
|
|
<% if can_edit_module(@my_module) then %>
|
|
<%= link_to due_date_my_module_path(@my_module, format: :json), remote: true, class: "due-date-link", style: "color: inherit" do %>
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
<% end %>
|
|
<% else %>
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
<% end %>
|
|
</div>
|
|
<div class="well well-sm">
|
|
<span class="hidden-xs hidden-sm hidden-md"><%=t "my_modules.module_header.due_date" %></span>
|
|
<% if can_edit_module(@my_module) then %>
|
|
<%= link_to due_date_my_module_path(@my_module, format: :json), remote: true, class: "due-date-link due-date-refresh", style: "color: inherit" do %>
|
|
<%= render partial: "module_header_due_date_label.html.erb",
|
|
locals: { my_module: @my_module } %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= render partial: "module_header_due_date_label.html.erb",
|
|
locals: { my_module: @my_module } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6" id="module-tags" data-module-tags-url="<%= my_module_my_module_tags_url(@my_module, format: :json) %>">
|
|
<div class="badge-icon bg-primary">
|
|
<% if can_edit_tags_for_module(@my_module) %>
|
|
<a class="edit-tags-link" data-remote="true" href="<%= my_module_tags_edit_url(@my_module, format: :json) %>" style="color: inherit">
|
|
<% end %>
|
|
<span class="glyphicon glyphicon-tags"></span>
|
|
<% if can_edit_tags_for_module(@my_module) %>
|
|
</a>
|
|
<% end %>
|
|
</div>
|
|
<div class="well well-sm">
|
|
<span class="hidden-xs hidden-sm"><%=t "my_modules.module_header.tags" %></span>
|
|
<% if can_edit_module(@my_module) then %>
|
|
<%= 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>
|
|
<div class="badge-icon bg-primary">
|
|
<% if can_edit_module(@my_module) %>
|
|
<%= link_to description_my_module_path(@my_module, format: :json), remote: true, class: "description-link", style: "color: inherit" do %>
|
|
<span class="glyphicon glyphicon-info-sign"></span>
|
|
<% end %>
|
|
<% else %>
|
|
<span class="glyphicon glyphicon-info-sign"></span>
|
|
<% end %>
|
|
</div>
|
|
<div class="well well-sm">
|
|
<% if can_edit_module(@my_module) %>
|
|
<%= 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 } %>
|
|
|
|
<%= javascript_include_tag("my_modules") %> |