diff --git a/app/views/templates/admin_template_history.html.erb b/app/views/templates/admin_template_history.html.erb index 1b699c0..e700743 100644 --- a/app/views/templates/admin_template_history.html.erb +++ b/app/views/templates/admin_template_history.html.erb @@ -1,67 +1,63 @@
- <%= _('Here you can view previously published versions of your template. These can no longer be modified.')%> -
+<%= _('Here you can view previously published versions of your template. These can no longer be modified.')%>
| <%= _('Title') %> | -<%= _('Version') %> | -<%= _('Published') %> | -<%= _('Last updated') %> | -<%= _('Actions') %> | -||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - <%= org_template.title%> - <% if org_template == @current && !org_template.published%> - <%=_('Draft')%> - <% end %> - | -- <%= org_template.version %> - | -- <%= (org_template.published? ? _('Yes') : _('No')) %> - | -- <% last_temp_updated = org_template.updated_at %> - <% org_template.phases.each do |phase|%> - <% if org_template.updated_at.to_date < phase.updated_at.to_date %> - <% last_temp_updated = phase.updated_at %> - <% end %> - <% end %> - <%= l last_temp_updated.to_date, formats: :short %> - | -- <%= link_to (org_template == @current ? _('Edit') : _('View')), admin_template_template_path(id: org_template), class: "dmp_table_link"%> - | +
| <%= _('Title') %> | +<%= _('Version') %> | +<%= _('Published') %> | +<%= _('Last updated') %> | +<%= _('Actions') %> |
|---|
<%= _('This template is new and does not yet have any publication history.') %>
<% end %> -