<%= l(@my_module.created_at, format: :full) %>
<% 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 %> <% end %> <% else %> <% end %>
<% 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 %>
<% if can_edit_tags_for_module(@my_module) %> <% end %> <% if can_edit_tags_for_module(@my_module) %> <% end %>
<% 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 %>
<% 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 %> <% end %> <% else %> <% end %>
<% 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 %> <%=t "my_modules.module_header.no_description" %> <% end %> <% end %> <% else %> <% if @my_module.description.present? and not @my_module.description.empty? %> <%= @my_module.description %> <% else %> <%=t "my_modules.module_header.no_description" %> <% end %> <% end %>
<%= render partial: "my_modules/modals/manage_description_modal" %> <%= render partial: "my_modules/modals/manage_due_date_modal" %> <%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: @my_module } %> <%= javascript_include_tag("my_modules") %>