<% 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="glyphicon-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.description.present? %> <%= auto_link(simple_format(my_module.description), link: :urls, html: { target: '_blank' }) %> <% 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?) %>