Add language links to footer

This commit is contained in:
Nyymix 2025-05-04 23:24:07 +03:00
parent 53ca72a9ce
commit 04f9a606ca
2 changed files with 30 additions and 0 deletions

View file

@ -38,3 +38,22 @@ body {
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;
}

View file

@ -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">
&copy; {% now "Y" %} Powered by <a href="https://git.hakkeri.net/nyymix/muistox">muistox</a>. &copy; {% 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>