Skip to content

Commit

Permalink
icons categorised #4215
Browse files Browse the repository at this point in the history
  • Loading branch information
StephDriver committed Nov 28, 2024
1 parent 68b5e12 commit f8df9fb
Show file tree
Hide file tree
Showing 47 changed files with 115 additions and 115 deletions.
2 changes: 1 addition & 1 deletion src/templates/common/elements/orcid_registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if orcid %}
<p>
ORCiD
{# IconA11y Semantic - alt text provided #}
{# IconA11y Semantic Image #}
<a href="{{ orcid }}"><img alt="ORCID logo" src="{% static 'common/img/icons/orcid.gif' %}"> {{ orcid }}</a>&nbsp;
[<a href="{% url 'core_register' %}">remove</a>]
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/common/elements/profile_image.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load static %}
{# IconA11y Semantic - has text alternative#}
{# IconA11y Semantic Image #}
<img
class="{{ classes }}"
src="{% if user.profile_image %}{{ user.profile_image.url }}{% elif request.journal.default_profile_image %}{{ request.journal.default_profile_image.url }}{% else %}{% static "common/img/icons/users.png" %}{% endif %}"
Expand Down
4 changes: 2 additions & 2 deletions src/themes/OLH/templates/core/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1 class="menu-text">{{ request.journal.name }}</h1>
</div>
<div data-responsive-toggle="search-menu" data-hide-for="medium">
<a href="#" class="search-toggle" data-toggle aria-label="Search">
{# IconA11y Semantic - updated with aria-label in a tag #}
{# IconA11y Semantic Link #}
<i aria-hidden="true" class="fa fa-search"></i>
</a>
</div>
Expand Down Expand Up @@ -151,7 +151,7 @@ <h1 class="menu-text">{{ request.journal.name }}</h1>
<form method="POST" action="{% url 'search' %}">
{% csrf_token %}
<div class="input-group">
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<span class="input-group-label"><i aria-hidden="true" class="fa fa-search"></i></span>
<input class="input-group-field" type="search" name="article_search" placeholder="{% trans 'Search' %}">
<input type="hidden" name="sort" value="title">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<input id="title" name="title" type="hidden" value="on">
<input id="abstract" name="abstract" type="hidden" value="on">
<span class="input-group-label">
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-search"></i>
<span class="sr-only">Search</span>
</span>
Expand Down
4 changes: 2 additions & 2 deletions src/themes/OLH/templates/core/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
{% if request.journal.nav_start and not journal_settings.general.disable_journal_submission %}
<li>
<a href="{% url 'submission_start' %}" class="button">
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-cloud-upload"></i> {% trans 'Start Submission' %}
</a>
</li>
{% endif %}
{% if request.journal.nav_review %}
<li>
<a href="{% url 'become_reviewer' %}" class="button">
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-trophy"></i>
{% trans 'Become a Reviewer' %}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/core/news/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h6>{{ news_item.byline }} on {{ news_item.posted|date:"Y-m-d" }}</h6>
{{ news_item.body|safe }}
</div>
<div class="large-3 columns">
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<h7>{% trans 'Tags ' %}<i aria-hidden="true" class="fa fa-tags">&nbsp;</i></h7>
<p>{% for tag in news_item.tags.all %}<a href="{% url 'core_news_list_tag' tag.text %}" class="button success tiny">{{ tag.text }}</a>{% if not forloop.last %}&nbsp;{% endif %}{% endfor %}</p>
</div>
Expand Down
12 changes: 6 additions & 6 deletions src/themes/OLH/templates/elements/journal/box_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
{% endif %}
<div class="{% if not journal_settings.article.disable_article_thumbnails %}large-10{% endif %} columns end">
{% if article.pinned %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="float-right fa fa-thumb-tack"></i>
<span class="sr-only">Pinned</span>
{% endif %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<h2>{{ article.title|safe }}
{% if article.is_remote %}
&nbsp;<i aria-hidden="true" class="fa fa-external-link small-icon-text"></i>
Expand All @@ -33,19 +33,19 @@ <h2>{{ article.title|safe }}
{% include "elements/journal/authors_block.html" %}
<p>
<span class="date">
{# IconA11y Decorative - updated from Semantic via time tag #}
{# IconA11y Date #}
<i aria-hidden="true" class="fa fa-calendar"></i>
<time datetime='{{ article.date_published|date:"Y-m-d" }}'>{{ article.date_published|date:"Y-m-d" }}</time>
</span>
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-book"></i> {% if article.issue.issue_type.code == 'issue' %}{{ article.issue_title }}{% else %}{{ article.issue.issue_title }}{% endif %}</p>
{% if article.issues.count > 1 %}
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<p><strong><i aria-hidden="true" class="fa fa-info-circle"></i> {% trans 'Also a part of:'%}</strong></p>
{% for other in article.issues.all %}
{% if other != article.issue %}
<p>
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-book"></i>
<a class="issue-link" href="{{ other.url }}">
{{other.issue_type.pretty_name}}: {{ other.display_title }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<a href="{{ user.website }}"
aria-label="{{ member.user.full_name }}'s website"
>
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-globe"></i>
{% trans 'Website' %}
</a>
Expand All @@ -14,7 +14,7 @@
<a href="https://www.twitter.com/{{ user.twitter }}"
aria-label="{{ member.user.full_name }}'s twitter profile"
>
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-twitter-square"></i>
{% trans 'Twitter' %}
</a>
Expand All @@ -24,7 +24,7 @@
<a href="https://www.facebook.com/{{ user.facebook }}"
aria-label="{{ member.user.full_name }}'s facebook profile"
>
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-facebook-square"></i>
{% trans 'Facebook' %}
</a>
Expand All @@ -34,7 +34,7 @@
<a href="https://www.github.com/{{ user.github}}"
aria-label="{{ member.user.full_name }}'s github profile"
>
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-github-square"></i>
{% trans 'Github' %}
</a>
Expand All @@ -44,7 +44,7 @@
<a href="https://www.linkedin.com/in/{{ user.linkedin }}"
aria-label="{{ member.user.full_name }}'s linkedin profile"
>
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-linkedin-square"></i>
{% trans 'Linkedin' %}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h3>{% trans 'Downloads' %}</h3>
<p>
<a href="{% url 'journal_issue_download_galley' issue.pk issue.galley.pk %}">
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<i aria-hidden="true" class="fa fa-download">&nbsp</i>
{% trans "Download Issue" %} (PDF)
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
data-equalizer-watch>
<p><small><a href="{% url 'repository_preprint' preprint.pk %}">{{ preprint.title|safe }}</a></small></p>
<p><small><i>{% for author in preprint.authors.all %}{{ author.full_name }}{% if not forloop.last %}, {% endif %}{% endfor %}</i></small></p>
{# IconA11y Decorative - updated from Semantic via time tag #}
{# IconA11y Date #}
<p><small>
<i aria-hidden="true" class="fa fa-calendar">&nbsp;</i>
<time datetime='{{ preprint.date_published|date:"Y-m-d" }}'>{{ preprint.date_published|date:"Y-m-d" }}</time>
Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/elements/public_reviews.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
data-animation-out="slide-out-down">
<div class="card">
<div class="card-divider">
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<h4><i aria-hidden="true" class="fa fa-pencil">&nbsp;</i>Open peer review from {{ review.reviewer.full_name }}
</h4>
</div>
Expand Down
12 changes: 6 additions & 6 deletions src/themes/OLH/templates/elements/section_block.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ <h3>{% trans 'Sections' %}</h3>
<td>
<strong>
{% if section.public_submissions %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-check" title="{% trans 'yes' %}"></i>
<span class="sr-only">{% trans 'yes' %}</span>
{% else %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-times" title="{% trans 'no' %}"></i>
<span class="sr-only">{% trans 'no' %}</span>
{% endif %}
Expand All @@ -37,11 +37,11 @@ <h3>{% trans 'Sections' %}</h3>
<td>
<strong>
{% if section.number_of_reviewers > 0 %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-check" title="{% trans 'yes' %}"></i>
<span class="sr-only">{% trans 'yes' %}</span>
{% else %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-times" title="{% trans 'no' %}"></i>
<span class="sr-only">{% trans 'no' %}</span>
{% endif %}
Expand All @@ -50,11 +50,11 @@ <h3>{% trans 'Sections' %}</h3>
<td>
<strong>
{% if section.indexing %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-check" title="{% trans 'yes' %}"></i>
<span class="sr-only">{% trans 'yes' %}</span>
{% else %}
{# IconA11y Semantic - syntax updated #}
{# IconA11y Semantic #}
<i aria-hidden="true" class="fa fa-times" title="{% trans 'no' %}"></i>
<span class="sr-only">{% trans 'no' %}</span>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions src/themes/OLH/templates/elements/submit/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
data-animation-out="slide-out-down">
<div class="card">
<div class="card-divider">
{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<h4><i aria-hidden="true" class="fa fa-user">&nbsp;</i>{% trans "Add New Author" %}</h4>
</div>
<div class="card-section">
Expand Down Expand Up @@ -61,7 +61,7 @@ <h4><i aria-hidden="true" class="fa fa-user">&nbsp;</i>{% trans "Add New Author
</div>
</div>

{# IconA11y Decorative - syntax updated #}
{# IconA11y Decorative #}
<button class="success button pull-right" type="submit" name="add_author"><i aria-hidden="true" class="fa fa-user">
&nbsp;</i>{% trans "Add Author" %}
</button>
Expand Down
Loading

0 comments on commit f8df9fb

Please sign in to comment.