Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

records/macros/detail.html: Allow funding entry with award number only #2912

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ <h2>{{ add_description.type.title_l10n }} <span
{% macro _show_funding_item(item, index) %}
{%- if item.award -%}
tmorrell marked this conversation as resolved.
Show resolved Hide resolved
{%- if item.award.title_l10n -%}
<dt class="ui tiny header">

<dt class="ui tiny header">
<span class="mr-5">
{% if item.award.acronym %}
{{ item.award.acronym }} –
Expand All @@ -122,6 +123,29 @@ <h2>{{ add_description.type.title_l10n }} <span
{%- endfor -%}
{%- endif -%}
</dt>
{%- else -%}
tmorrell marked this conversation as resolved.
Show resolved Hide resolved
<dt class="ui tiny header">
<span class="">
{% if item.award.acronym %}
{{ item.award.acronym }} –
{% endif %}
</span>

{%- if item.award.number -%}
<span class="ui mini basic ml-0" id="number-label-{{ index }}">
{{ item.award.number }}
</span>
{%- endif -%}

{%- if item.award.identifiers -%}
{% for identifier in item.award.identifiers if 'url' == identifier.scheme %}
<a href="{{ identifier.identifier }}" target="_blank"
rel="noopener noreferrer" aria-label="{{ _('Open external link') }}">
<i class="external alternate icon"></i>
</a>
{%- endfor -%}
{%- endif -%}
</dt>
{%- endif -%}
<dd class="text-muted">{{ item.funder.name if item.funder }}</dd>
{%- else -%}
Expand Down