summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-06-10 09:30:00 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-06-10 09:30:00 +0200
commit8a82571c481ce09a64fb229e91ab7958b7c18f60 (patch)
treef52a14448e7372bc980c8105b369d32793fad0e9 /templates
parent434882709a269b3c4ebbb895cb22212327216fa6 (diff)
downloadjokevote-8a82571c481ce09a64fb229e91ab7958b7c18f60.tar.gz
jokevote-8a82571c481ce09a64fb229e91ab7958b7c18f60.zip
replace hand-crafted redirects by referrers
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html9
1 files changed, 0 insertions, 9 deletions
diff --git a/templates/index.html b/templates/index.html
index b1ca470..b249aef 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -18,12 +18,10 @@
<a class="btn-floating btn-large right" href="/export"><i class="material-icons">file_download</i></a>
{% if user.loggedin %}
<form action="/logout" method="post">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button class="btn" type="submit">Logout ({{ user.name }})</button>
</form>
{% else %}
<form action="/login" method="post">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<div class="col s6 m4 l3 input-field">
<label for="user">Benutzer</label>
<input type="text" name="user">
@@ -59,21 +57,18 @@
</div>
<form action="/upvote" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button class="btn{% if joke.reports>0 %}-flat{% endif %}{% if joke.upvoted %} disabled{% endif %}" type="submit" style="width: 100%;">
<i class="material-icons">thumb_up</i>
</button>
</form>
<form action="/downvote" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button class="btn{% if joke.reports>0 %}-flat{% endif %}{% if joke.downvoted %} disabled{% endif %}" type="submit" style="width: 100%;">
<i class="material-icons">thumb_down</i>
</button>
</form>
<form action="/report" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button class="col s12 btn-flat{% if joke.reported %} disabled{% endif %}" type="submit">
<i class="material-icons left">report_problem</i>
<span class="right red-text">{{ joke.reports }}</span>
@@ -82,7 +77,6 @@
{% else %}
<form action="/undelete" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button class="btn-flat" type="submit" style="width: 100%;">
<i class="material-icons">delete undo</i>
</button>
@@ -93,7 +87,6 @@
{% if joke.mine %}
<form action="/edit" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button type="button" class="btn-floating right blue noteditor" onclick="openEditor(this)"><i class="material-icons">edit</i></button>
<div class="input-field hide editor">
<label for="text">Spruch bearbeiten</label>
@@ -108,7 +101,6 @@
{% if joke.mine and not joke.deleted %}
<form action="/delete" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button class="btn-floating right red noteditor" type="submit"><i class="material-icons">delete</i></button>
</form>
{% endif %}
@@ -128,7 +120,6 @@
<div class="divider"></div>
<div class="section">
<form action="/submit" method="post">
- <input type="hidden" name="redirpage" value="{{ currentpage }}">
<div class="row">
<div class="col s12 m9 input-field">
<label for="text">Neuen Spruch hinzufügen</label>