Skip to content

Commit

Permalink
deposit: add a call to action
Browse files Browse the repository at this point in the history
* Adds a button in the navbar to quickly deposit a publication, only for submitters.
* Closes #366.

Co-Authored-by: Sébastien Délèze <[email protected]>
  • Loading branch information
Sébastien Délèze committed Aug 30, 2021
1 parent 114e233 commit 33bce7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sonar/theme/templates/sonar/partial/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
</li>
{% endif %}
{% else %}
{% if current_user.roles and current_user.roles[0].name == 'submitter' %}
<li class="nav-item">
<a class="btn btn-outline-light" href="{{ url_for('sonar.manage', path='deposit/0/create')}}">
{{ _('Deposit a publication') }}
</a>
</li>
{% endif %}
<li class="nav-item dropdown pl-3">
{% with dropdownId='userLinkDropdown' %}
<a class="nav-link dropdown-toggle" href="#" id="{{ dropdownId }}" role="button" data-toggle="dropdown"
Expand Down

0 comments on commit 33bce7e

Please sign in to comment.