File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
src/templates/common/elements/a11y Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11{% load settings %}
2- {% if request.press.allow_journal_a11y_info and request.journal|setting:'a11y_public_info'|safe %}
3- < h2 > {% trans 'Journal:' %} {{ request.journal.name }}</ h2 >
4- {{ request.journal|setting:'a11y_public_info'|safe }}
2+ {% if request.press.allow_journal_a11y_info %}
3+ {% with a11y_info=request.journal|setting:'a11y_public_info' %}
4+ {% if a11y_info %}
5+ < h2 > {% trans 'Journal:' %} {{ request.journal.name }}</ h2 >
6+ {{ a11y_info|safe }}
7+ {% endif %}
8+ {% endwith %}
59{% endif %}
Original file line number Diff line number Diff line change 1- {% if press.a11y_info%}
2- < h2 > {% trans 'Press:' %} {{ press.name }}</ h2 >
3- {{ press.a11y_info|safe }}
4- {% endif %}
1+ {% with a11y_info=press.a11y_info %}
2+ {% if a11y_info %}
3+ < h2 > {% trans 'Press:' %} {{ press.name }}</ h2 >
4+ {{ a11y_info|safe }}
5+ {% endif %}
6+ {% endwith %}
You can’t perform that action at this time.
0 commit comments