Skip to content

Commit

Permalink
WIP 7 - tidy up email link in context
Browse files Browse the repository at this point in the history
  • Loading branch information
StephDriver committed Dec 16, 2024
1 parent 2009159 commit b005bd7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/themes/OLH/templates/journal/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h3>{{ article.title|safe }}</h3>
<a itemprop="email" href="mailto:{{ author.email }}">
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-envelope email-link" ></i>
<span class="sr-only">{% trans 'Email ' %} {{ author.full_name }}.</span>
<span class="sr-only">{% trans 'Email' %} {{ author.full_name }}.</span>
</a>
{% endif %}</span></span>
{% endfor %}
Expand Down Expand Up @@ -163,8 +163,8 @@ <h3>{{ article.title|safe }}</h3>
<li>
<a href="mailto:{{ article.correspondence_author.email }}" >
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-envelope"></i>
<span class="sr-only">{% trans 'Email ' %} {{ author.full_name }}.</span>
<i aria-hidden="true" class="fa fa-envelope email-link"></i>
<span class="sr-only">{% trans 'Email' %} {{ author.full_name }}.</span>
</a>
</li>
{% endif %}
Expand Down Expand Up @@ -216,7 +216,7 @@ <h1>{{ article.title|safe }}</h1>
href="mailto:{{ author.email }}"
>
<i aria-hidden="true" class="fa fa-envelope email-link"></i>
<span class="sr-only">{% trans 'Email ' %} {{ author.full_name }}.</span>
<span class="sr-only">{% trans 'Email' %} {{ author.full_name }}.</span>
</a>
{% endif %}
</li>
Expand Down Expand Up @@ -378,7 +378,7 @@ <h4>{% trans "Authors" %}</h4>
href="mailto:{{ author.email }}"
>
<i aria-hidden="true" class="fa fa-envelope email-link" ></i>
<span class="sr-only">{% trans 'Email ' %} {{ author.full_name }}.</span>
<span class="sr-only">{% trans 'Email' %} {{ author.full_name }}.</span>
</a>
{% endif %}
{% if author.institution and author.institution != " " %}({{ author.affiliation }}) {% endif %}
Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/journal/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3>{{ article.title|safe }}</h3>
{# IconA11y Semantic #}
<a itemprop="email" href="mailto:{{ author.email }}">
<i aria-hidden="true" class="fa fa-envelope email-link" ></i>
<span class="sr-only">{% trans 'Email author' %}</span>
<span class="sr-only">{% trans 'Email' %} {{author.full_name}}.</span>
</a></span></span>
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion src/themes/clean/templates/journal/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1 class="card-title align-text-bottom article-title">{{ article.title|safe }}<
{% endif %}
{% if author.display_email and not journal_settings.article.hide_author_email_links %}
<a itemprop="email" href="mailto:{{ author.email }}">
{% trans 'Contact by email' %}
{% trans 'Email' %} {{author.full_name}}.
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-envelope email-link"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/themes/clean/templates/journal/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h3>{{ article.title|safe }}</h3>
{# IconA11y Semantic - untested #}
<a itemprop="email" href="mailto:{{ author.email }}">
<i aria-hidden="true" class="fa fa-envelope email-link"></i>
<span class="sr-only">Email {{ author.full_name }} </span>
<span class="sr-only">{% trans 'Email' %} {{ author.full_name }}. </span>
</a>
</span>
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/themes/material/templates/journal/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h4>
{# IconA11y Semantic #}
<a itemprop="email" href="mailto:{{ author.email }}">
<i aria-hidden="true" class="fa fa-envelope email-link"></i>
<span class="sr-only">{% trans "Email author" %}.</span>
<span class="sr-only">{% trans "Email" %} {{ author.full_name }}.</span>
</a>{% endif %}
{% endfor %}
{% endif %}
Expand Down

0 comments on commit b005bd7

Please sign in to comment.