working FileIndex and user Profile pages/settings
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user