1
0
Fork 0
mirror of https://github.com/Findus23/se-simulator.git synced 2024-09-19 15:53:45 +02:00
se-simulator/templates/list.html

30 lines
1.3 KiB
HTML
Raw Normal View History

2018-03-22 22:52:14 +01:00
{% extends "base.html" %}
2018-03-23 21:28:37 +01:00
{% from 'macros.html' import pagination %}
2018-03-22 22:52:14 +01:00
{% block body %}
2018-03-23 21:28:37 +01:00
{{ pagination(pagearray, num_pages, page, True) }}
2018-03-22 22:52:14 +01:00
{% for question in questions %}
<div class="question"
style="border-right-color:{{ question.site.tag_foreground_color }};background-color:{{ question.site.tag_background_color }}">
2018-03-25 11:28:37 +02:00
<div class="vote" data-id="{{ question.id }}">
2018-03-22 22:52:14 +01:00
<a class="up"></a>
<div>{{ question.upvotes - question.downvotes }}</div>
<a class="down"></a>
</div>
<div class="questionbox">
<a href="https://{{ question.site.url }}" class="sitename" target="_blank" rel="noopener">
{{ question.site.name }}
</a>
<div>
<a class="title" style="color:{{ question.site.link_color }}"
href="{{ url_for("question",slug=question.title.slug) }}">{{ question.title.text }}</a>
</div>
2018-03-24 17:33:10 +01:00
{{ question.text|truncate(200, False, ' …', 10) }}
2018-03-22 22:52:14 +01:00
<div class="date">
2018-03-23 21:28:37 +01:00
asked {{ prettydate(question.datetime) }} by {{ question.user.username }}
2018-03-22 22:52:14 +01:00
</div>
</div>
</div>
{% endfor %}
2018-03-24 17:33:10 +01:00
{{ pagination(pagearray, num_pages, page, False) }}
2018-03-22 22:52:14 +01:00
{% endblock %}