diff --git a/app/helpers/plans_helper.rb b/app/helpers/plans_helper.rb
index 2377439..c4f3af4 100644
--- a/app/helpers/plans_helper.rb
+++ b/app/helpers/plans_helper.rb
@@ -39,22 +39,22 @@
def display_visibility(val)
case val
when 'organisationally_visible'
- return "#{_('Institution: anyone at my institution can view')}"
+ return "#{_('Institution')}"
when 'publicly_visible'
- return "#{_('Public: anyone can view')}"
+ return "#{_('Public')}"
else
- return "#{_('Private: restricted to me and people I invite')}" # Both Test and Private
+ return "#{_('Private')}" # Both Test and Private
end
end
def visibility_tooltip(val)
case val
when 'organisationally_visible'
- return _('Institutional: anyone logged in from your institution can view, copy, or download the plan.')
+ return _('Institution: anyone at my institution can view.')
when 'publicly_visible'
- return _('Public: anyone can view, copy, or download the plan. It will appear on the Public DMPs page of this site.')
+ return _('Public: anyone can view.')
else
- return _('Private: only owners, co-owners, and others with whom you shared your plan can directly view the plan. Administrators at your institution can view all plans for program development purposes. See the Terms of Use.')
+ return _('Private: restricted to me and people I invite.')
end
end
end
diff --git a/app/views/plans/index.html.erb b/app/views/plans/index.html.erb
index 11ca8a5..180c925 100644
--- a/app/views/plans/index.html.erb
+++ b/app/views/plans/index.html.erb
@@ -34,59 +34,62 @@
- <% if plan.owned_by?(current_user.id) then %>
- <%= link_to _('Delete'),
- plan_path(plan),
- class: "dmp_table_link",
- method: :delete,
- data: {confirm: _('Are you sure you wish to delete this plan? If the plan is being shared with other users, by deleting it from your list, the plan will be deleted from their plan list as well')} %>
+ <% if plan.owned_by?(current_user.id) then %>
+
<%= link_to _('Delete'),
+ plan_path(plan),
+ method: :delete,
+ data: {confirm: _('Are you sure you wish to delete this plan? If the plan is being shared with other users, by deleting it from your list, the plan will be deleted from their plan list as well')} %>