{# ## This file is part of Zenodo. ## Copyright (C) 2015, 2016 CERN. ## ## Zenodo is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## Zenodo is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Zenodo. If not, see . ## ## In applying this licence, CERN does not waive the privileges and immunities ## granted to it by virtue of its status as an Intergovernmental Organization ## or submit itself to any jurisdiction. #} {%- extends config.ACCESSREQUESTS_SETTINGS_TEMPLATE %} {%- from "zenodo_accessrequests/_pagination.html" import render_pagination with context %} {%- block settings_content %} {%- set pending_num = requests.count() %}
{{ _('Pending access requests') }} {%- if pending_num > 0 %} {{pending_num}} {%- endif %}
    {%- for r in requests %} {%- set record = get_record(r.recid)[1] %} {%- set url = url_for('zenodo_accessrequests_settings.accessrequest', request_id=r.id) %}
  • {{ record.get('title') }}
    {{_('Full name')}}: {{r.sender_full_name}}, {{_('Email')}}: {{r.sender_email}}, {{_('Justification')}}: {{r.justification|truncate(150)}}
  • {%- else %}
  • {{ _('You have no pending access requests to accept/reject.') }}

    {{_('What\'s this?')}} {%- trans sitename=config.THEME_SITENAME %} There can be several reasons why a dataset cannot be shared openly (e.g. some clinical trial data). With {{sitename}}, you can now during upload set the access right to Restricted access. This allows other users to request access to your dataset via {{sitename}}. Naturally, you are in full control of who gets granted/denied access. {%- endtrans %}

  • {%- endfor %}
{{ _('Shared links') }}
{%- if links_pagination.total > 0 or query %}
Shared links gives anyone with the link access to restricted files in embargoed/restricted/closed access uploads.
{% for t, f in [('Link','title'), ('Created','created'), ('Expires','expires_at'),] %} {% endfor %} {%- for l in links_pagination.items %} {%- set url = l.get_absolute_url('invenio_records_ui.recid') %} {% else %} {%- endfor %}
{{t}} {% if order.is_selected(f) %} {% endif %}
{{l.title}}
{{l.description|truncate(150)}}
{{l.created|tousertimezone|datetimeformat}} {% if l.expires_at %}{{l.expires_at|dateformat}}{% endif %}
{{form.csrf_token}} {{form.link(value=l.id)}} {{form.delete(class_="btn btn-danger btn-xs")}}
Empty search result
{%- if links_pagination.pages > 1 %}
{{ render_pagination(links_pagination, '.index') }}
{%- endif %}
{%- else %} {%- endif %}
{%- endblock %}