summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/templates/index.html b/templates/index.html
index 78d5685..44dfe87 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -50,19 +50,22 @@
<ul class="collection">
{% for joke in jokes %}
<li class="collection-item row valign-wrapper">
- <div class="col s3 m2 valign">
+ <div class="col s2 m1 valign">
+ <div class="center-align">
+ <i class="material-icons left">whatshot</i><span class="right">{{ joke.score }}</span>
+ </div>
<form action="/upvote" method="post">
<input type="hidden" name="id" value="{{ joke.id }}">
<input type="hidden" name="redirpage" value="{{ currentpage }}">
- <button class="col s12 btn{% if joke.reports>0 %}-flat{% endif %}{% if joke.upvoted %} disabled{% endif %}" type="submit">
- <i class="material-icons">thumb_up</i> <span class="btnval" data-original="{% if joke.upvoted %}{{ joke.upvotes-1 }}{% else %}{{ joke.upvotes }}{% endif %}">{{ joke.upvotes }}</span>
+ <button class="btn{% if joke.reports>0 %}-flat{% endif %}{% if joke.upvoted %} disabled{% endif %}" type="submit">
+ <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="col s12 btn{% if joke.reports>0 %}-flat{% endif %}{% if joke.downvoted %} disabled{% endif %}" type="submit">
- <i class="material-icons">thumb_down</i> <span class="btnval" data-original="{% if joke.downvoted %}{{ joke.downvotes-1 }}{% else %}{{ joke.downvotes }}{% endif %}">{{ joke.downvotes }}</span>
+ <button class="btn{% if joke.reports>0 %}-flat{% endif %}{% if joke.downvoted %} disabled{% endif %}" type="submit">
+ <i class="material-icons">thumb_down</i>
</button>
</form>
<form action="/report" method="post">
@@ -70,7 +73,7 @@
<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="btnval red-text" data-original="{% if joke.reported %}{{ joke.reports-1 }}{% else %}{{ joke.reports }}{% endif %}">{{ joke.reports }}</span>
+ <span class="red-text">{{ joke.reports }}</span>
</button>
</form>
{% if joke.mine %}
@@ -81,7 +84,7 @@
</form>
{% endif %}
</div>
- <div class="flow-text col s9 m10 {% if joke.reports>0 %}grey-text{% endif %}" style="line-height: 1.5">
+ <div class="flow-text col s10 m11 {% if joke.reports>0 %}grey-text{% endif %}" style="line-height: 1.5">
{{ joke.text|safe }}
</div>
</li>