mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-15 06:13:07 -06:00
Add PostLike and CommentLike models
- Also adjusted some User methods and added ones I believe may be wanted or needed in time. - Adjusted online time delta back to 3 minutes. - Started looking into how to sum 'likes' efficiently on a user's posts.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<span class="user-box-username">
|
||||
<a href="{{ url_for('main.view_user', username=user.username) }}">{{ user.name }}</a>
|
||||
</span>
|
||||
{% with seen_text = user.get_last_seen() %}
|
||||
{% with seen_text = user.get_last_seen_text() %}
|
||||
{% if seen_text == 'Online now!' %}
|
||||
<span class="user-box-timestamp online">{{ seen_text }}</span>
|
||||
{% else %}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{% if current_user.is_admin or current_user == user %}
|
||||
<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_text() %}
|
||||
{% if seen_text == 'Online now!' %}
|
||||
<span class="profile-timestamp online">{{ seen_text }}</span>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user