26 lines
943 B
HTML
26 lines
943 B
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ title }}{% endblock %}
|
|
{% block content %}
|
|
<h3 style="margin-bottom: 10px;">{{ title }}:</h3>
|
|
{% for quote in quotes %}
|
|
<div class="quote">
|
|
<div class ="quoteheader quoteheader-{{ quote.id }}">
|
|
<a href="/quotes/view/{{ quote.id }}">#{{ quote.id }}</a>
|
|
{% if quote.user_score < 1 %}
|
|
<a class="upvote" href="/quotes/up/{{ quote.id }}">Up↑</a>
|
|
{% else %}
|
|
<a class="upvote" href="#" style="text-decoration: line-through;">Up↑</a>
|
|
{% endif %}
|
|
{{ quote.score}} / {{ quote.votes }}
|
|
{% if quote.user_score > -1 %}
|
|
<a class="downvote" href="/quotes/down/{{ quote.id }}">Down↓</a>
|
|
{% else %}
|
|
<a class="downvote" href="#" style="text-decoration: line-through;">Down↓</a>
|
|
{% endif %}
|
|
{{ quote.date }}
|
|
</div>
|
|
<p class="quotetext">{{ quote.text }}</p>
|
|
</div>
|
|
{% endfor %}
|
|
{% endblock %}
|