SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 70626e95 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Explicitly relate funders to organizations on pub detail

parent bccdb121
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,15 @@
<div class="card-content">
<ul class="m-2">
{% for funder in publication.get_all_funders %}
{% if funder.organization %}
{% if funder.name != funder.organization.name and funder.name != funder.organization.name_original %}
<li>{{ funder }} (through Organization: <a href="{{ funder.organization.get_absolute_url }}">{{ funder.organization.name_and_acronym }}</a>)</li>
{% else %}
<li><a href="{{ funder.organization.get_absolute_url }}">{{ funder.organization.name_and_acronym }}</a></li>
{% endif %}
{% else %}
<li><a href="{{ funder.get_absolute_url }}">{{ funder }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment