Add likes/comment counts + like button to individual post viewer

- Only render in jQuery and likes script when a user is logged in
- Possibly we should show the like button but redirect to login page?
This commit is contained in:
Xevion
2022-03-30 16:49:59 -05:00
parent 531c60d163
commit f8e8d0fbaf
2 changed files with 18 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
{% extends 'layouts/index.html' %}
{% from 'macros.html' import render_field %}
{% set use_jquery = true %}
{% set use_likes = true %}
{% if current_user.is_authenticated %}
{% set use_jquery = true %}
{% set use_likes = true %}
{% endif %}
{% block content %}
{% if current_user.is_authenticated %}