summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-05-28 21:13:35 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-05-28 21:13:35 +0200
commit03a7b1b58cc95849b88b00af0d4ab5a4b825cdae (patch)
treecfe12d71bcd4befb23ab92712e7f6fbddfc545f8 /templates
parentb0a286bd89525eb1a15cddc7934f1da54485ecf5 (diff)
downloadjokevote-03a7b1b58cc95849b88b00af0d4ab5a4b825cdae.tar.gz
jokevote-03a7b1b58cc95849b88b00af0d4ab5a4b825cdae.zip
stay on same page after submitting
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index f8bfa2c..c4e17b8 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -18,11 +18,13 @@
<div class="row">
<form action="/vote" 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 %} col s12" type="submit" name="vote" value="upvote"><i class="material-icons">thumb_up</i> {{ joke.upvotes }}</button>
<button class="btn{% if joke.reports>0 %}-flat{% endif %} col s12" type="submit" name="vote" value="downvote"><i class="material-icons">thumb_down</i> {{ joke.downvotes }}</button>
</form>
<form action="/report" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
+ <input type="hidden" name="redirpage" value="{{ currentpage }}">
<button class="btn-flat col s12" type="submit">
{% if joke.reports>0 %}
<div class="row">
@@ -54,6 +56,7 @@
<div class="divider hide-on-small-only"></div>
<div class="section hide-on-small-only">
<form action="/submit" method="post">
+ <input type="hidden" name="redirpage" value="{{ currentpage }}">
<div class="row valign-wrapper">
<div class="col s10 input-field">
<label for="text">Neuen Spruch hinzufügen</label>