Re-add red border to form errors, limit like button to logged in users

This commit is contained in:
Xevion
2022-03-30 01:36:32 -05:00
parent d16df75bf5
commit 11394bfb7e
4 changed files with 9 additions and 15 deletions

View File

@@ -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 %}