Skip to content

Commit

Permalink
Make language display more elegant
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Jan 22, 2024
1 parent 0077bd2 commit 07c6b0e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions mafiasi/base/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,13 @@ <h2>{% block ptitle %}{% endblock %}</h2>
<a href="{% url 'base_technical_info' %}">{% trans "Technical info" %}</a>
&middot;
<a href="{% url 'base_problems' %}">{% trans "Problems?" %}</a>
&middot;
<button name="language" value="de" class="btn-link" style="padding: 0;" type="submit">Deutsch</button>
&middot;
<button name="language" value="en" class="btn-link" style="padding: 0;" type="submit">English</button>
&middot;
<button name="language" value="fr" class="btn-link" style="padding: 0;" type="submit">Français</button>
&middot;
<button name="language" value="en-uwu" class="btn-link" style="padding: 0;" type="submit">UWU</button>
{% get_available_languages as languages %}
{% for lang in languages %}
{% if lang.0 != "en-uwu" %}
&middot;
<button name="language" value="{{ lang.0 }}" class="btn-link" style="padding: 0;" type="submit">{{ lang.1 }}</button>
{% endif %}
{% endfor %}
</p>
</form>
</div>
Expand Down

0 comments on commit 07c6b0e

Please sign in to comment.