mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-16 02:13:02 -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 %}
|
{% block content %}
|
||||||
<div class="profile-title">
|
<div class="profile-title">
|
||||||
<span class="profile-username">{{ user.name }}</span>
|
<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() %}
|
{% with seen_text = user.get_last_seen() %}
|
||||||
{% if seen_text == 'Online now!' %}
|
{% if seen_text == 'Online now!' %}
|
||||||
<span class="profile-timestamp online">{{ seen_text }}</span>
|
<span class="profile-timestamp online">{{ seen_text }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user