Add language links to footer
This commit is contained in:
parent
53ca72a9ce
commit
04f9a606ca
2 changed files with 30 additions and 0 deletions
|
@ -37,4 +37,23 @@ body {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.language-switcher-form {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.language-switcher-form button {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
color: inherit;
|
||||||
|
font: inherit;
|
||||||
|
text-decoration: underline;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.language-switcher-form button:hover {
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
|
@ -131,6 +131,17 @@
|
||||||
<footer class="uk-align-center uk-container-large">
|
<footer class="uk-align-center uk-container-large">
|
||||||
<div class="uk-background-secondary uk-padding-small uk-light uk-text-center uk-text-light">
|
<div class="uk-background-secondary uk-padding-small uk-light uk-text-center uk-text-light">
|
||||||
© {% now "Y" %} Powered by <a href="https://git.hakkeri.net/nyymix/muistox">muistox</a>.
|
© {% now "Y" %} Powered by <a href="https://git.hakkeri.net/nyymix/muistox">muistox</a>.
|
||||||
|
Language:
|
||||||
|
<form class="language-switcher-form" action="{% url 'set_language' %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button type="submit" name="language" value="en"
|
||||||
|
aria-label="Change language to English">English</button>
|
||||||
|
</form>
|
||||||
|
|
|
||||||
|
<form class="language-switcher-form" action="{% url 'set_language' %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button type="submit" name="language" value="fi" aria-label="Vaihda kieli suomeksi">Suomi</button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue