From e82166f87e89f329e9fd94a26dfc8651c69deb91 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 28 Jul 2018 15:30:59 +0100 Subject: Add subscribe/unsubscribe button --- app/templates/threads/view.html | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'app/templates/threads/view.html') diff --git a/app/templates/threads/view.html b/app/templates/threads/view.html index 397fba3..71580de 100644 --- a/app/templates/threads/view.html +++ b/app/templates/threads/view.html @@ -6,11 +6,24 @@ Threads {% block content %}

{% if thread.private %}🔒 {% endif %}{{ thread.title }}

+ {% if thread.package or current_user.is_authenticated %} + {% if thread.package %} +

Package: {{ thread.package.title }}

+ {% endif %} - {% if thread.package %} -

- Package: {{ thread.package.title }} -

+ {% if current_user.is_authenticated %} + {% if current_user in thread.watchers %} +
+ + +
+ {% else %} +
+ + +
+ {% endif %} + {% endif %} {% endif %} {% if thread.private %} -- cgit v1.2.3