Added language switch links
This commit is contained in:
parent
29fc48f4fe
commit
b0881d7bc6
3 changed files with 38 additions and 1 deletions
|
@ -127,7 +127,7 @@ SITE_ROOT = os.path.dirname(os.path.realpath(__name__))
|
|||
LOCALE_PATHS = ( os.path.join(SITE_ROOT, 'locale'), )
|
||||
|
||||
LANGUAGES = (
|
||||
('it', 'Italiano'),
|
||||
('it', 'Italian'),
|
||||
('en', 'English')
|
||||
)
|
||||
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
/* vim: set ts=2 sw=2 et tw=80: */
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
#main-menu {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
|
|
@ -58,4 +58,29 @@
|
|||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
|
||||
<footer class="page-footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<h5 class="white-text">{% trans "Arrow counter" %}</h5>
|
||||
<p class="grey-text text-lighten-4">
|
||||
{% trans "A simple online arrow counter" %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-copyright">
|
||||
<div class="container">
|
||||
© 2019 Claudio Maggioni
|
||||
{% get_available_languages as languages %}
|
||||
{% for lang_code, lang_name in languages %}
|
||||
{% language lang_code %}
|
||||
<a class="grey-text text-lighten-4 right"
|
||||
href="{% url "index" %}"> {{ lang_name }}</a>
|
||||
{% endlanguage %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue