aboutsummaryrefslogtreecommitdiff
path: root/app/templates/threads
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-22 20:13:43 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-22 20:25:22 +0000
commitc551201f792aa288a49c986aab264f4692e3b478 (patch)
treed894bc68c7a0b06b642e7eceb7032fc5a1115420 /app/templates/threads
parenta21a5c24d8baa2f14000ca64c10ea315fab708bd (diff)
downloadcheatdb-c551201f792aa288a49c986aab264f4692e3b478.tar.xz
Improve thread styling
Diffstat (limited to 'app/templates/threads')
-rw-r--r--app/templates/threads/view.html29
1 files changed, 15 insertions, 14 deletions
diff --git a/app/templates/threads/view.html b/app/templates/threads/view.html
index 71580de..13097fe 100644
--- a/app/templates/threads/view.html
+++ b/app/templates/threads/view.html
@@ -5,25 +5,26 @@ Threads
{% endblock %}
{% block content %}
+ {% if current_user.is_authenticated %}
+ {% if current_user in thread.watchers %}
+ <form method="post" action="{{ thread.getUnsubscribeURL() }}" class="float-right">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
+ <input type="submit" class="btn btn-primary" value="Unsubscribe" />
+ </form>
+ {% else %}
+ <form method="post" action="{{ thread.getSubscribeURL() }}" class="float-right">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
+ <input type="submit" class="btn btn-primary" value="Subscribe" />
+ </form>
+ {% endif %}
+ {% endif %}
+
<h1>{% if thread.private %}&#x1f512; {% endif %}{{ thread.title }}</h1>
+
{% if thread.package or current_user.is_authenticated %}
{% if thread.package %}
<p>Package: <a href="{{ thread.package.getDetailsURL() }}">{{ thread.package.title }}</a></p>
{% endif %}
-
- {% if current_user.is_authenticated %}
- {% if current_user in thread.watchers %}
- <form method="post" action="{{ thread.getUnsubscribeURL() }}">
- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
- <input type="submit" value="Unsubscribe" />
- </form>
- {% else %}
- <form method="post" action="{{ thread.getSubscribeURL() }}">
- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
- <input type="submit" value="Subscribe" />
- </form>
- {% endif %}
- {% endif %}
{% endif %}
{% if thread.private %}