summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 19:21:00 -0700
committerAndrew Godwin2022-11-17 17:33:09 -0700
commit291d7e404e12e1d017403242f8ed199046f0904c (patch)
tree89a60ff7f321537b6a58835aaa726f7e22ed09ba /templates/base.html
parent0851fbd1ec09b142608667bf90ee806e59cafb28 (diff)
downloadtakahe-291d7e404e12e1d017403242f8ed199046f0904c.tar.gz
takahe-291d7e404e12e1d017403242f8ed199046f0904c.tar.bz2
takahe-291d7e404e12e1d017403242f8ed199046f0904c.zip
Logged out experience, config, and profiles
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html45
1 files changed, 23 insertions, 22 deletions
diff --git a/templates/base.html b/templates/base.html
index edcb11a..b64f4f5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -23,56 +23,57 @@
<main>
<header>
<a class="logo" href="/">
- <img src="{% static "img/icon-128.png" %}" width="32">
+ <img src="{{ config.site_icon }}" width="32">
{{ config.site_name }}
</a>
<menu>
{% if user.is_authenticated %}
<a href="{% url "compose" %}" title="Compose" {% if top_section == "compose" %}class="selected"{% endif %}>
- <i class="fa-solid fa-feather"></i> Compose
+ <i class="fa-solid fa-feather"></i>
</a>
<a href="{% url "search" %}" title="Search" {% if top_section == "search" %}class="selected"{% endif %}>
- <i class="fa-solid fa-search"></i> Search
+ <i class="fa-solid fa-search"></i>
</a>
<a href="{% url "settings" %}" title="Settings" {% if top_section == "settings" %}class="selected"{% endif %}>
- <i class="fa-solid fa-gear"></i> Settings
+ <i class="fa-solid fa-gear"></i>
</a>
<div class="gap"></div>
<a href="/identity/select/" class="identity">
{% if not request.identity %}
No Identity
<img src="{% static "img/unknown-icon-128.png" %}" title="No identity selected">
- {% elif request.identity.icon %}
- {{ request.identity.username }}
- <img src="{{ request.identity.icon.url }}" title="{{ request.identity.handle }}">
- {% elif request.identity.icon_uri %}
- {{ request.identity.username }}
- <img src="{{ request.identity.icon_uri }}" title="{{ request.identity.handle }}">
{% else %}
{{ request.identity.username }}
- <img src="{% static "img/unknown-icon-128.png" %}" title="{{ request.identity.handle }}">
+ <img src="{{ request.identity.local_icon_url }}" title="{{ request.identity.handle }}">
{% endif %}
</a>
{% else %}
- <a href="/auth/login/"><i class="fa-solid fa-right-to-bracket"></i> Login</a>
+ <div class="gap"></div>
+ <a href="/auth/login/" class="identity"><i class="fa-solid fa-right-to-bracket"></i> Login</a>
{% endif %}
</menu>
</header>
{% block full_content %}
- <div class="columns">
- <div class="left-column">
- {% block content %}
- {% endblock %}
+ {% block pre_content %}
+ {% endblock %}
+ <div class="columns">
+ <div class="left-column">
+ {% block content %}
+ {% endblock %}
+ </div>
+ <div class="right-column">
+ {% block right_content %}
+ {% include "activities/_menu.html" %}
+ {% endblock %}
+ </div>
</div>
- <div class="right-column">
- {% block right_content %}
- {% include "activities/_menu.html" %}
- {% endblock %}
- </div>
- </div>
{% endblock %}
</main>
+ <footer>
+ <span>Powered by <a href="https://jointakahe.com">Takahē {{ config.version }}</a></span>
+ </footer>
+
</body>
</html>