This repository has been archived on 2023-10-10. You can view files and clone it, but cannot push or open issues/pull-requests.
cutedb/webapp/templates/list.html

35 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block content %}
<h3 style="margin-bottom: 10px;">{{ title }}:</h3>
{% if quotes|length == 0 %}
<p>
<i>No quotes~!</i>
</p>
{% endif %}
{% 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 }}
{% if admin %}
<a class="ajaxhide" href="/quotes/approve/{{ quote.id }}">approve</a>
<a class="ajaxhide" href="/quotes/delete/{{ quote.id }}">delete</a>
{% endif %}
</div>
<p class="quotetext">{{ quote.text|safe }}</p>
</div>
{% endfor %}
{% endblock %}