diff --git a/__pycache__/app.cpython-313.pyc b/__pycache__/app.cpython-313.pyc index 1f036d5..c3c2318 100644 Binary files a/__pycache__/app.cpython-313.pyc and b/__pycache__/app.cpython-313.pyc differ diff --git a/templates/base.html b/templates/base.html index 46e6551..4f6df29 100644 --- a/templates/base.html +++ b/templates/base.html @@ -459,7 +459,17 @@ {% if current_user.avatar %} {{ current_user.username }} {% else %} - {{ current_user.username }} + + + + + + + + + + + {% endif %} diff --git a/templates/community/post.html b/templates/community/post.html index 695b4db..0f65c66 100644 --- a/templates/community/post.html +++ b/templates/community/post.html @@ -163,7 +163,17 @@ {% if post.author.avatar %} {{ post.author.username }} {% else %} - {{ post.author.username[0].upper() }} + + + + + + + + + + + {% endif %} @@ -259,7 +269,17 @@ {% if reply.author.avatar %} {{ reply.author.username }} {% else %} - {{ reply.author.username[0].upper() }} + + + + + + + + + + + {% endif %} diff --git a/templates/profile.html b/templates/profile.html index 6c8db10..3a14cab 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -583,7 +583,23 @@
- Profilbild + {% if user.avatar %} + Profilbild + {% else %} +
+ + + + + + + + + + + +
+ {% endif %}