-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make display of funding metadata clearer #4461
- Loading branch information
Showing
4 changed files
with
35 additions
and
70 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/templates/common/elements/funder_info_for_readers.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% if article.funders.all %} | ||
<div class="callout primary"> | ||
<h2>{% trans "Funding" %}</h2> | ||
{% trans "Name" as name_label %} | ||
{% trans "FundRef ID" as fundref_id_label %} | ||
{% trans "Funding ID" as funding_id_label %} | ||
{% trans "Funding Statement" as statement_label %} | ||
{% for funder in article.funders.all %} | ||
<dl> | ||
{% include "elements/layout/key_value_above.html" with key=name_label value=funder.name %} | ||
{% if funder.fundref_id %} | ||
{% include "elements/layout/key_value_above.html" with key=fundref_id_label value=funder.fundref_id %} | ||
{% endif %} | ||
{% if funder.funding_id %} | ||
{% include "elements/layout/key_value_above.html" with key=funding_id_label value=funder.funding_id %} | ||
{% endif %} | ||
{% if funder.funding_statement %} | ||
{% include "elements/layout/key_value_above.html" with key=statement_label value=funder.funding_statement|safe render_line_breaks=True %} | ||
{% endif %} | ||
</dl> | ||
{% if funder.fundref_id %} | ||
<p> | ||
<a href="{% url "funder_articles" funder.fundref_id %}"> | ||
{% trans "Browse all articles funded by" %} {{ funder.name }} | ||
</a> | ||
</p> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters