Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/org_admin/templates/_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<% if template.published? %>
<%= _('Published') %>
<% elsif template.draft? %>
<% tooltip = _('This template is published changes but has unpublished changes!') %>
<% tooltip = _('This template is published, but now contains unpublished changes!') %>
<%= _('Published') %> <em class="sr-only"><%= tooltip %></em>
&nbsp;&nbsp;<i class="fas fa-pencil-square" aria-hidden="true" data-toggle="tooltip" title="<%= tooltip %>"></i>
<% else %>
Expand Down
12 changes: 12 additions & 0 deletions app/views/org_admin/templates/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@
<%= _('If you wish to add an organisational template for a Data Management Plan, use the \'create template\' button. You can create more than one template if desired e.g. one for researchers and one for PhD students. Your template will be presented to users within your organisation when no funder templates apply. If you want to add questions to funder templates use the \'customise template\' options below.') %>
</p>
</div>

<% if @unpublished_count > 0 %>
<div class="col-md-12">
<div class="alert alert-info" role="alert">
<%= (_('A template marked with %{icon} means it has unpublished changes.') % {
icon: '<i class="fas fa-pencil-square" aria-hidden="true"></i>'
}
).html_safe %>
</div>
</div>
<% end %>

</div>

<div class="row">
Expand Down