diff --git a/app/views/branded/org_admin/plans/index.html.erb b/app/views/branded/org_admin/plans/index.html.erb index 14f7557..00545ac 100644 --- a/app/views/branded/org_admin/plans/index.html.erb +++ b/app/views/branded/org_admin/plans/index.html.erb @@ -14,7 +14,7 @@ - + diff --git a/app/views/branded/paginable/plans/_org_admin.html.erb b/app/views/branded/paginable/plans/_org_admin.html.erb new file mode 100644 index 0000000..315e398 --- /dev/null +++ b/app/views/branded/paginable/plans/_org_admin.html.erb @@ -0,0 +1,34 @@ +
+
<%= _('Plan') %><%= _('Template') %><%= d_('dmpopidor', 'Template') %> <%= _('Requestor') %> <%= _('Type') %> <%= _('Actions') %>
+ + + + + + + + + + + + <% scope.each do |plan| %> + + + + + + + + + <% end %> + +
<%= _('Project Title') %> <%= paginable_sort_link('plans.title') %><%= d_('dmpopidor', 'Template') %> <%= paginable_sort_link('templates.title') %><%= _('Organisation') %><%= _('Owner') %><%= _('Updated') %> <%= paginable_sort_link('plans.updated_at') %><%= _('Visibility') %>
+ <% if plan.readable_by?(current_user.id) %> + <%= link_to "#{plan.title.length > 60 ? "#{plan.title[0..59]} ..." : plan.title}", plan_path(plan) %> + <% else %> + <%= plan.title.truncate(60) %> + <% end %> + <%= plan.template.title %><%= plan.users.first.org.name %><%= plan.users.first.name(false) %><%= l(plan.updated_at.to_date, formats: :short) %> + <%= plan.visibility === 'is_test' ? _('Test') : sanitize(display_visibility(plan.visibility)) %> +
+ diff --git a/config/locale/dmpopidor.pot b/config/locale/dmpopidor.pot index 110f9ad..b5996a8 100644 --- a/config/locale/dmpopidor.pot +++ b/config/locale/dmpopidor.pot @@ -231,6 +231,9 @@ msgid "News" msgstr "" +msgid "Template" +msgstr "" + # STATIC PAGES msgid "More" diff --git a/config/locale/en_GB/dmpopidor.po b/config/locale/en_GB/dmpopidor.po index be08b4f..4a8cdf2 100644 --- a/config/locale/en_GB/dmpopidor.po +++ b/config/locale/en_GB/dmpopidor.po @@ -229,6 +229,9 @@ msgid "News" msgstr "News" +msgid "Template" +msgstr "Template" + # STATIC PAGES msgid "More" diff --git a/config/locale/fr_FR/dmpopidor.po b/config/locale/fr_FR/dmpopidor.po index 2c6129a..7980c25 100644 --- a/config/locale/fr_FR/dmpopidor.po +++ b/config/locale/fr_FR/dmpopidor.po @@ -231,6 +231,9 @@ msgid "More" msgstr "Plus" +msgid "Template" +msgstr "Modèle" + # STATIC PAGES msgid "Static pages"