Skip to content

Commit

Permalink
Only show iThenticate report link if user is logged in
Browse files Browse the repository at this point in the history
This is a requirement from Turnitin
  • Loading branch information
MusikAnimal committed Feb 13, 2024
1 parent 34d3873 commit b857bd9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/feed.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,12 @@
</div>
{% endfor %}
{% endif %}
<a class="btn btn-xs btn-primary" href='{{ path('ithenticate', {submissionId: row.submissionId}) }}' rel='nofollow noreferrer noopener' target="_blank">
<span class="glyphicon glyphicon-new-window"></span>
{{ msg('record-ithenticate') }}
</a>
{% if logged_in_user() %}
<a class="btn btn-xs btn-primary" href='{{ path('ithenticate', {submissionId: row.submissionId}) }}' rel='nofollow noreferrer noopener' target="_blank">
<span class="glyphicon glyphicon-new-window"></span>
{{ msg('record-ithenticate') }}
</a>
{% endif %}
</div>
</article>
{% endfor %}
Expand Down

0 comments on commit b857bd9

Please sign in to comment.