@@ -46,10 +45,8 @@
| <%= plan.template.title %> |
<%= (plan.owner.nil? || plan.owner.org.nil? ? _('Not Applicable') : plan.owner.org.name) %> |
<%= (plan.owner.nil? ? _('Unknown') : plan.owner.name(false)) %> |
-
- <%= link_to _('PDF'),
- plan_export_path(plan, format: :pdf),
- class: "dmp_table_link" %>
+ |
+ <%= link_to _('PDF'), plan_export_path(plan, format: :pdf), class: "dmp_table_link" %>
|
<% end %>
diff --git a/app/views/public_pages/template_index.html.erb b/app/views/public_pages/template_index.html.erb
index e49f7a1..b081e20 100644
--- a/app/views/public_pages/template_index.html.erb
+++ b/app/views/public_pages/template_index.html.erb
@@ -1,41 +1,41 @@
<%= raw _('DMP Templates') %>
+
+ <% if @templates.count > 0 %>
+
<%= _('Templates are provided by a funder, an institution, or a trusted party.') %>
+ <% else %>
+
<%= _('There are currently no public Templates.')%>
+ <% end %>
<% if @templates.count > 0 %>
-
<%= _('Templates are provided by a funder, an institution, or a trusted party.') %>
- <% else %>
-
<%= _('There are currently no public Templates.')%>
- <% end %>
-
- <% if @templates.count > 0 %>
-
-
+
+
<% if @templates.count > TABLE_FILTER_MIN_ROWS %>
- |
+ |
<%= render(partial: "shared/table_filter",
- locals: {path: public_templates_path, placeholder: _('Filter templates')}) %>
-
+ locals: {path: public_templates_path, placeholder: _('Filter templates')}) %>
+ |
<% end %>
- | <%= _('Template Name') %> |
- <%= _('Organisation Name') %> |
- <%= _('Download') %> |
+ <%= _('Template Name') %> |
+ <%= _('Organisation Name') %> |
+ <%= _('Download') %> |
<% @templates.each do |template| %>
-
+
| <%= template.title %> |
<%= template.org.name %> |
-
+ |
<%= link_to _('DOCX'), template_export_path(template.dmptemplate_id, format: :docx) %>
<%= link_to _('PDF'), template_export_path(template.dmptemplate_id, format: :pdf) %>
|