diff --git a/app/views/templates/admin_index.html.erb b/app/views/templates/admin_index.html.erb index 520cafb..2eec2dd 100644 --- a/app/views/templates/admin_index.html.erb +++ b/app/views/templates/admin_index.html.erb @@ -18,14 +18,14 @@ <% if @org_templates.length > 0 then %>
- +
- + @@ -53,19 +53,26 @@ <%= l last_temp_updated.to_date, formats: :short %> + <% end %> @@ -73,7 +80,7 @@ <% end %> - + <%= _('Create a template') %> @@ -84,14 +91,14 @@ <% if @funder_templates.length > 0 then %>
-
<%= _('Title') %> <%= _('Description') %> <%= _('Status') %> <%= _('Last updated') %><%= _('Actions') %>
-
    -
  • <%= link_to _('Edit'), admin_template_template_path(id: hash[:current].id) %>
  • -
  • <%= link_to _('History'), admin_template_history_template_path(id: hash[:current].id) %>
  • - <% if hash[:live].nil? %> -
  • <%= link_to _('Publish'), admin_publish_template_path(hash[:current]), method: :put %>
  • - <% elsif hash[:current].dirty? %> -
  • <%= link_to _('Publish changes'), admin_publish_template_path(hash[:current]), method: :put %>
  • - <% else %> -
  • <%= link_to _('Unpublish'), admin_unpublish_template_path(hash[:current]), method: :put %>
  • - <% end %> -
  • <%= link_to _('Copy'), admin_copy_template_path(id: hash[:current].id), method: :put %>
  • -
-
+
- @@ -123,35 +130,42 @@ <%= l last_updated.to_date, formats: :short %> <% end %>
<%= _('Title') %> <%= _('Description') %> <%= _('Status') %> <%= _('Last updated') %><%= _('Actions') %> +
-
    - <% if hash[:current].customization_of.nil? %> -
  • - <%= link_to _('Customise'), admin_customize_template_path(hash[:current]), method: :get %> -
  • - <% else %> - <% if hash[:stale] %> -
  • - <%= link_to _('Transfer customisation'), admin_transfer_customization_template_path(hash[:funder_live]) %> -
  • - <% else %> -
  • - <%= link_to _('Edit customisation'), admin_template_template_path(hash[:current]) %> -
  • - <% end %> - <% end %> - <% if !hash[:current].customization_of.nil? && !hash[:stale] %> - <% if hash[:live].nil? || hash[:current].dirty? %> -
  • - <%= link_to _('Publish'), admin_publish_template_path(hash[:current]), method: :put %> -
  • - <% end %> - <% if hash[:live].present? %> -
  • - <%= link_to _('Unpublish'), admin_unpublish_template_path(hash[:current]), method: :put %> -
  • - <% end %> - <% end %> -
+