Newer
Older
dmpopidor / app / views / org_admin / templates / history.html.erb
@Gavin Morrice Gavin Morrice on 28 Aug 2018 965 bytes Issue 532 (#1847)
<div class="row">
  <div class="col-md-12">
    <h1>
      <%= templates.first.customization_of.present? ? _('Template Customisation History') : _('Template History') %>
      <div class="pull-right">
        <%= link_to _('View all templates'), referrer, class: "btn btn-primary" %>
      </div>
    </h1>
    <p>
      <%= sanitize _('Here you can view previously published versions of your template.  These can no longer be modified.')%>
    </p>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <!-- List of own templates -->
    <% if templates.length > 0 %>
      <%= paginable_renderise(
        partial: '/paginable/templates/history',
        controller: 'paginable/templates',
        action: 'history',
        query_params: query_params,
        scope: templates,
        locals: local_assigns ) %>
    <% else %>
      <p><%= _('This template is new and does not yet have any publication history.') %></p>
    <% end %>
  </div>
</div>