<% if my_module.blank? and @my_module.present? then my_module = @my_module end %> <% timestamp = my_module.created_at %> <% name = my_module.name %>
" data-name="<%= name %>" data-icon-class="fas fa-credit-card">
<%=t "projects.reports.elements.module.user_time", timestamp: l(timestamp, format: :full) %>
<%= render partial: "reports/elements/element_controls.html.erb", locals: { show_sort: true } %>

<%= name %>

<% if my_module.due_date.present? %> <%=t "projects.reports.elements.module.due_date", due_date: l(my_module.due_date, format: :full) %> <% else %> <%=t "projects.reports.elements.module.no_due_date" %> <% end %> <% if my_module.completed? %> <%= t("my_modules.states.completed") %> <%= l(my_module.completed_on, format: :full) %> <% end %>
<% if my_module.description.present? %> <%= custom_auto_link(my_module.description) %> <% else %> <%=t "projects.reports.elements.module.no_description" %> <% end %>
<%=t "projects.reports.elements.module.tags_header" %>
<% if my_module.tags.count > 0 %> <% my_module.tags.each do |tag| %>
<%= tag.name %>
<% end %> <% else %>
<%=t "projects.reports.elements.module.no_tags" %>
<% end %>
<%= children if (defined? children and children.present?) %>