diff --git a/app/views/plans/index.html.erb b/app/views/plans/index.html.erb index fd7fef5..9506630 100644 --- a/app/views/plans/index.html.erb +++ b/app/views/plans/index.html.erb @@ -1,104 +1,105 @@ -<% javascript "views/plans/index.js" %> -
-<% if @plans.count > 0 %>
-
- <%= _('The table below lists the plans that you have created, and any that have been shared with you by others.') %>
- <%= _('These can be edited, shared, exported or deleted at anytime.')%>
-<% else %>
- <%= _("Welcome.") %>
- <%= _("You are now ready to create your first DMP.") %>
- <%= _("Click the 'Create plan' button below to begin.")%>
-<% end %>
-
+ <% if @plans.count > 0 %>
+ <%= _('The table below lists the plans that you have created, and any that have been shared with you by others.') %>
+ <%= _('These can be edited, shared, exported or deleted at anytime.')%>
+ <% else %>
+ <%= _("Welcome.") %>
+ <%= _("You are now ready to create your first DMP.") %>
+ <%= _("Click the 'Create plan' button below to begin.")%>
+ <% end %>
+
| + <%= render(partial: "shared/table_filter", + locals: {path: plans_path, placeholder: _('Filter plans')}) %> + | +|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - <%= render(partial: "shared/table_filter", - locals: {path: plans_path, placeholder: _('Filter plans')}) %> - | +<%= _('Project Title') %> | +<%= _('Template') %> | +<%= _('Edited') %> | +<%= _('Role') %> | +<%= _('Test') %> | +<%= _('Visibility') %> | ++ <%= _('Actions') %> + | ||||||
| <%= _('Project Title') %> | -<%= _('Template') %> | -<%= _('Edited') %> | -<%= _('Role') %> | -<%= _('Test') %> | -<%= _('Visibility') %> | -- <%= _('Actions') %> - | -|||||||
| - <%= link_to "#{plan.title.length > 60 ? "#{plan.title[0..59]} ..." : plan.title}", - plan_path(plan) %> - | -<%= plan.template.title %> | -<%= l(plan.latest_update.to_date, formats: :short) %> | -<%= display_role(plan.roles.find_by(user: current_user)) %> | -- <% if plan.administerable_by?(current_user.id) then %> - <%= plan.administerable_by?(current_user.id) ? '' : 'disabled="true"' %> /> - <% else %> - <%= plan.visibility === 'is_test' ? _('Yes') : _('No') %> - <% end %> - | -<%= raw display_visibility(plan.visibility) %> | -
-
- <%= _('Actions') %>
-
-
+ <%= link_to "#{plan.title.length > 60 ? "#{plan.title[0..59]} ..." : plan.title}",
+ plan_path(plan) %>
+ |
+ <%= plan.template.title %> |
+ <%= l(plan.latest_update.to_date, formats: :short) %> |
+ <%= display_role(plan.roles.find_by(user: current_user)) %> |
+
+ <% if plan.administerable_by?(current_user.id) then %>
+ <%= plan.administerable_by?(current_user.id) ? '' : 'disabled="true"' %> />
<% else %>
- |
- | ||