<% if my_module.blank? and @my_module.present? then my_module = @my_module end %> <% timestamp = my_module.created_at %> <% name = my_module.name %> <% for_export_all = defined?(export_all) && export_all %>
" 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.archived? %> <%=t 'search.index.archived' %> <% end %>

<% 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.prepare_for_report(:description, for_export_all), team: current_team, base64_encoded_imgs: for_export_all) %> <% else %> <%=t "projects.reports.elements.module.no_description" %> <% end %>
<%=t "projects.reports.elements.module.tags_header" %>
<% if my_module.tags.any? %> <% 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?) %>