Add quick-edit font-awesome button on user profile

- Available to admins and the user themselves
This commit is contained in:
Xevion
2022-03-27 13:20:36 -05:00
parent 8188ce5484
commit 678dab307f

View File

@@ -3,6 +3,9 @@
{% block content %}
<div class="profile-title">
<span class="profile-username">{{ user.name }}</span>
{% if current_user.is_admin or current_user.id == user.id %}
<a href="{{ url_for('main.edit_user', username=current_user.username) }}"><i class="fas fa-pencil-alt fa-sm" style="padding-bottom: 3px; padding-left: 0.5em;"></i></a>
{% endif %}
{% with seen_text = user.get_last_seen() %}
{% if seen_text == 'Online now!' %}
<span class="profile-timestamp online">{{ seen_text }}</span>