From 51d2bec83447cf09ea33e9cfd7ee48b43a881266 Mon Sep 17 00:00:00 2001 From: rutvikrj26 Date: Mon, 19 Aug 2024 22:01:31 -0400 Subject: [PATCH] addressing comments - updated access policy import and the styling issue --- physionet-django/project/views.py | 3 +-- physionet-django/templates/about/access_policies.html | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/physionet-django/project/views.py b/physionet-django/project/views.py index 0e6b1fea0..8dd0b2db7 100644 --- a/physionet-django/project/views.py +++ b/physionet-django/project/views.py @@ -59,7 +59,6 @@ has_s3_credentials, files_sent_to_S3, ) -from physionet.settings.base import ALLOWED_ACCESS_POLICIES from django.db.models import F, DateTimeField, ExpressionWrapper LOGGER = logging.getLogger(__name__) @@ -829,7 +828,7 @@ def project_access(request, project_slug, **kwargs): return render(request, 'project/project_access.html', { 'project': project, 'access_form': access_form, 'is_submitting': kwargs['is_submitting'], - 'access_policy_choices': ALLOWED_ACCESS_POLICIES, + 'access_policy_choices': settings.ALLOWED_ACCESS_POLICIES, }) diff --git a/physionet-django/templates/about/access_policies.html b/physionet-django/templates/about/access_policies.html index c8ab6b0e3..fd7713d4a 100644 --- a/physionet-django/templates/about/access_policies.html +++ b/physionet-django/templates/about/access_policies.html @@ -13,9 +13,9 @@
  • Credentialed: Only {{ SITE_NAME }} credentialed users who sign a DUA for the project can access the files. This tier is only for sensitive databases. Please contact us beforehand if you would like to contribute such a resource.
  • {% endif %} {% if "CONTRIBUTOR_REVIEW" in access_policy_choices %} -
  • Contributor Review: Only {{ SITE_NAME }} credentials who sign a DUA and submit a project plan approved by the data holder may access the files.
  • +
  • Contributor Review: Only {{ SITE_NAME }} credentialed users who sign a DUA and submit a project plan approved by the data contributor may access the files.
  • {% endif %} {% if "OPEN" in access_policy_choices %}

    We strongly encourage selecting the open access policy.

    -{% endif %} \ No newline at end of file +{% endif %}