Skip to content
Permalink
Browse files

Use images with proper alt tags #405

  • Loading branch information...
lukasjuhrich committed Aug 22, 2019
1 parent f173681 commit 2fe45ade72f0b1bc955bf104ef7bd103ae2bfccf
Showing with 9 additions and 8 deletions.
  1. +0 −2 sipa/static/css/style.css
  2. +9 −6 sipa/templates/base.html
@@ -52,9 +52,7 @@ body {

#logo {
margin-top: -5px;
background-image: url(../img/logo_hover.png);
opacity: 0.5;
background-size: 32px;
width: 32px;
height: 32px;
}
@@ -74,7 +74,7 @@
</button>

<a class="navbar-brand" href="{{ url_for('generic.index') }}">
<div id="logo"></div>
<img id="logo" src="{{ url_for('static', filename='img/logo_hover.png') }}" alt="AG DSN" />
</a>
<a class="navbar-brand visible-xs" href="{{ url_for('generic.index') }}">
AG DSN
@@ -158,8 +158,9 @@
class="active"
{%- endif %}>
<a href="{{ url_self(locale=locale.language) }}">
<img src="{{ url_for('static', filename='img/{}.png'.format(locale.language)) }}" />
{{locale.display_name}}
<img src="{{ url_for('static', filename='img/{}.png'.format(locale.language)) }}"
alt="{{ locale.display_name }}" />
{{ locale.display_name }}
</a>
</li>
{% endfor %}
@@ -176,15 +177,17 @@

<li>
<a href="#" data-toggle="dropdown" class="dropdown-toggle">
<img src="{{ url_for('static', filename='img/{}.png'.format(get_locale().language)) }}" />
<img src="{{ url_for('static', filename='img/{}.png'.format(get_locale().language)) }}"
alt="{{ get_locale().display_name }}" />
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
{% for locale in possible_locales() %}
<li>
<a href="{{ url_self(locale=locale.language) }}">
<img src="{{ url_for('static', filename='img/{}.png'.format(locale.language)) }}" />
{{locale.display_name}}
<img src="{{ url_for('static', filename='img/{}.png'.format(locale.language)) }}"
alt="{{ locale.display_name }}" />
{{ locale.display_name }}
</a>
</li>
{% endfor %}

0 comments on commit 2fe45ad

Please sign in to comment.
You can’t perform that action at this time.