diff --git a/app/controllers/public_pages_controller.rb b/app/controllers/public_pages_controller.rb index 99fd1dcd1f..f8becf9066 100644 --- a/app/controllers/public_pages_controller.rb +++ b/app/controllers/public_pages_controller.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Controller for the Public DMPs and Funder Requirements pages +# Controller for the Example DMPs and Funder Requirements pages class PublicPagesController < ApplicationController # GET template_index # ----------------------------------------------------- @@ -83,17 +83,10 @@ def template_export # rubocop:enable Metrics/AbcSize, Metrics/MethodLength # GET /plans_index + # This is the example DMPs page # ------------------------------------------------------------------------------------ def plan_index - @plans = Plan.publicly_visible.includes(:template) - render 'plan_index', locals: { - query_params: { - page: paginable_params.fetch(:page, 1), - search: paginable_params.fetch(:search, ''), - sort_field: paginable_params.fetch(:sort_field, 'plans.updated_at'), - sort_direction: paginable_params.fetch(:sort_direction, 'desc') - } - } + render 'plan_index' end private diff --git a/app/views/paginable/plans/_privately_visible.html.erb b/app/views/paginable/plans/_privately_visible.html.erb index 7014960bcb..39b3504bce 100644 --- a/app/views/paginable/plans/_privately_visible.html.erb +++ b/app/views/paginable/plans/_privately_visible.html.erb @@ -74,7 +74,7 @@ <% end %> <% end %> <% role = my_plan_roles.first %> - <% conf = (role.creator? && plan.publicly_visible?) ? _("Are you sure you wish to remove this public plan? This will remove it from the Public DMPs page but any collaborators will still be able to access it.") : _("Are you sure you wish to remove this plan? Any collaborators will still be able to access it.") %> + <% conf = _("Are you sure you wish to remove this plan? Any collaborators will still be able to access it.") %>