snapshot: preserve shared base shell foundation
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{% load static i18n %}
|
||||
{% get_current_language as CURRENT_LANGUAGE %}
|
||||
<div class="app-header{% if header_inside_shell %} app-header-in-shell{% endif %}">
|
||||
<a class="app-brand" href="/" aria-label="{% trans 'Zur Startseite' %}">
|
||||
<img class="app-brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
</a>
|
||||
<div class="app-header-actions">
|
||||
{% if header_show_lang %}
|
||||
<form method="post" action="{% url 'set_language' %}" class="app-lang-switch">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ request.get_full_path }}" />
|
||||
<button class="app-lang-btn {% if CURRENT_LANGUAGE == 'de' %}active{% endif %}" type="submit" name="language" value="de">DE</button>
|
||||
<button class="app-lang-btn {% if CURRENT_LANGUAGE == 'en' %}active{% endif %}" type="submit" name="language" value="en">EN</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if header_show_dashboard %}
|
||||
<a class="btn btn-secondary" href="/requests/">{% trans "Zum Dashboard" %}</a>
|
||||
{% endif %}
|
||||
{% if header_show_home %}
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user