mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-18 00:13:11 -06:00
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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user