Skip to content
Snippets Groups Projects
Commit 449a18d1 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Readded sign language and simple language btns

parent 171938cb
No related branches found
No related tags found
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
......@@ -49,11 +49,11 @@
} */
.language-switch {
float: right;
float: right !important;
background-color: #f2f2f2;
padding: 6px 10px;
margin-left: 20px;
height: 44px;
margin-left: 20px !important;
height: 55px;
/* dirty fix to make it the same height as schleswig-holstein.de */
}
......@@ -82,17 +82,31 @@
}
.language-switch .navLeichteSprache {
background: url(/base/images/sprite.png) no-repeat 6px -5557px;
background: url(/base/images/sprite.png) no-repeat 11px -5555px !important;
font: 0/0 serif;
display: block;
height: 20px;
width: 20px;
width: 40px;
overflow: hidden;
margin: 2px;
}
.language-switch:hover .navLeichteSprache {
background: url(/base/images/sprite.png) no-repeat 11px -5332px !important;
}
.language-switch .navLeichteSprache:hover {
background: #011e5a url(/base/images/sprite.png) no-repeat 6px -5334px;
.language-switch .navGebaerdensprache {
background: url(/base/images/sprite.png) no-repeat 11px -3385px !important;
font: 0/0 serif;
display: block;
height: 20px;
width: 40px;
overflow: hidden;
margin: 2px;
}
.language-switch:hover .navGebaerdensprache {
background: url(/base/images/sprite.png) no-repeat 11px -3161px !important;
}
.masthead .top-search-form {
......
......@@ -52,10 +52,11 @@
)
}}
{% endblock %}
<li><a href="/infos">{{ _('Infos') }}</a></li>
{% set clazz='active' if c.action=='login' else ''%}
{% if h.check_access('package_create') %}
<li class='{{clazz}}'>
<a href="/harvest">Harvester</a>
<a href="/harvest">{{ _('Harvester') }}</a>
</li>
<li class='{{clazz}}'>
{% link_for _('Upload'), controller='dataset', action='new', class_='text' %}
......@@ -80,7 +81,7 @@
</svg>
<a href="{{ h.url_for('/user/') }}" title="logout" role="menuitem">
<span class="text">
Mein Profil einsehen
{{ _('Mein Profil einsehen') }}
</span>
</a>
</li>
......@@ -88,14 +89,14 @@
<a href="{{ h.url_for('/user/edit') }}" title="logout" role="menuitem">
<i class='fa fa-edit'></i>
<span class="text">
Mein Profil bearbeiten
{{ _('Mein Profil bearbeiten') }}
</span>
</a>
</li>
<li>
<a href="{{ h.url_for('/user/_logout') }}" title="logout" role="menuitem">
<i class='fa fa-sign-out'></i>
<span class="text">Logout</span>
<span class="text">{{ _('Logout') }}</span>
</a>
</li>
</ul>
......@@ -104,10 +105,16 @@
{% else %}
<li class='{{clazz}}'>
<a href="{{ h.url_for('/user/login') }}" title="login">
<span class="text">Login</span>
<span class="text">{{ _('Login') }}</span>
</a>
</li>
{% endif %}
<li class="language-switch">
<a href="#" title="{{ _('Sign language') }}" class="navGebaerdensprache">{{ _('Sign language') }}</a>
</li>
<li class="language-switch">
<a href="#" title="{{ _('Simple language') }}" class="navLeichteSprache">{{ _('Simple language') }}</a>
</li>
</ul>
</nav>
<nav class="section navigation">
......
......@@ -2,9 +2,6 @@
<div class="language-switch">
<ul>
<li>
<a href="#" title="Leichte Sprache" class="navLeichteSprache">{{ _('Simple language') }}</a>
</li>
<li>
{% for locale in h.get_available_locales() %}
{% if (locale.identifier!=current_lang) and ((locale.short_name=='de') or (locale.short_name=='en')) %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment