From dbe57075d386d7474bafc208b654507d9a2d769e Mon Sep 17 00:00:00 2001
From: Andrew Godwin
Date: Sun, 6 Nov 2022 13:48:04 -0700
Subject: Rework to a domains model for better vhosting
---
templates/base.html | 8 +++++---
templates/identity/select.html | 2 +-
templates/identity/view.html | 2 +-
templates/statuses/_status.html | 2 +-
4 files changed, 8 insertions(+), 6 deletions(-)
(limited to 'templates')
diff --git a/templates/base.html b/templates/base.html
index af2887f..2ff0f15 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -26,10 +26,12 @@
{% if user.is_authenticated %}
- {% if user.icon_uri %}
-
+ {% if not request.identity %}
+
+ {% elif request.identity.icon_uri %}
+
{% else %}
-
+
{% endif %}
{% else %}
diff --git a/templates/identity/select.html b/templates/identity/select.html
index dae1ca1..ea4065c 100644
--- a/templates/identity/select.html
+++ b/templates/identity/select.html
@@ -14,7 +14,7 @@
{% endif %}
{{ identity }}
- @{{ identity.short_handle }}
+ @{{ identity.handle }}
{% empty %}
You have no identities.
diff --git a/templates/identity/view.html b/templates/identity/view.html
index 2a82478..ffb76db 100644
--- a/templates/identity/view.html
+++ b/templates/identity/view.html
@@ -10,7 +10,7 @@
{% else %}
{% endif %}
- {{ identity }} {{ identity.handle }}
+ {{ identity }} @{{ identity.handle }}
{% if not identity.local %}
diff --git a/templates/statuses/_status.html b/templates/statuses/_status.html
index b89909a..b501abc 100644
--- a/templates/statuses/_status.html
+++ b/templates/statuses/_status.html
@@ -2,7 +2,7 @@