mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-15 12:13:10 -06:00
Add quick-edit font-awesome button on user profile
- Available to admins and the user themselves
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user