mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-15 10:13:07 -06:00
Re-add red border to form errors, limit like button to logged in users
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
|
||||
{% for post in posts %}
|
||||
<div id="post-{{ post.id }}" class="post-box">
|
||||
<i class="fas fa-heart {% if current_user.has_liked_post(post.id) %}liked{% endif %}" onclick="like({{ post.id }})"></i>
|
||||
{% if current_user.is_authenticated %}
|
||||
<i class="fas fa-heart {% if current_user.has_liked_post(post.id) %}liked{% endif %}" onclick="like({{ post.id }})"></i>
|
||||
{% endif %}
|
||||
{{ post.text }}
|
||||
<div class="post-author no-border">
|
||||
{% with comment_count = post.comments|length %}
|
||||
|
||||
Reference in New Issue
Block a user