Newer
Older
dmpopidor / app / views / public_pages / template_index.html.erb
<% title _('DMP Templates') %>
<div class="row">
  <div class="col-md-12">
    <h1><%= _('DMP Templates') %></h1>
    <% if @templates.count > 0 %>
      <p class="left-indent"><%= _('Templates are provided by a funder, an organisation, or a trusted party.') %></p>
    <% else %>
      <p class="left-indent"><%= _('There are currently no public Templates.')%></p>
    <% end %>
  </div>
</div>
<div class="row">
  <div class="col-md-12">
    <% if @templates.count > 0 %>
      <%= paginable_renderise(
        partial: '/paginable/templates/publicly_visible',
        controller: 'paginable/templates',
        action: 'publicly_visible',
        scope: @templates,
        query_params: { sort_field: 'orgs.name', sort_direction: 'asc' }) %>
    <% end %>
  </div>
</div>