working FileIndex and user Profile pages/settings

This commit is contained in:
JakeBreath
2026-08-03 14:13:40 -05:00
parent 85e6241ad4
commit 39e31d3980
17 changed files with 999 additions and 25 deletions
+6 -5
View File
@@ -48,20 +48,21 @@
<div class="user-bar">
<div class="user-avatar" onclick="toggleUserMenu()">
{% if user.userprofile.avatar %}
<img src="{{ user.userprofile.avatar.url }}" alt="Avatar">
<img src="{{ user.userprofile.avatar_url }}" alt="Avatar">
{% else %}
<div class="default-avatar">{{ user.username|first|upper }}</div>
{% endif %}
</div>
<div class="user-menu" id="user-menu">
{# TODO: wire edit profile page when it exists #}
<a href="{% url 'profiles:settings' %}" class="user-edit">
<a href="{% url 'profiles:user_profile' request.user.username %}" class="user-edit">
<i class="fas fa-user-circle"></i> {{ user.username }}
</a>
<div class="user-info"></div>
{# TODO: wire upload / library pages when they exist #}
<a href="{% url 'profiles:account' %}">
<i class="fas fa-user-cog"></i> Account Settings
</a>
<a href="{% url 'profiles:settings' %}">
<i class="fas fa-cog"></i> Settings
<i class="fas fa-key"></i> API Tokens
</a>
<form method="post" action="{% url 'profiles:logout' %}" style="display: inline;">
{% csrf_token %}