2018-03-22 22:52:14 +01:00
|
|
|
{% extends "base.html" %}
|
2018-03-26 21:56:25 +02:00
|
|
|
{% from 'macros.html' import pagination, siteheader %}
|
2018-03-22 22:52:14 +01:00
|
|
|
{% block body %}
|
2018-03-26 21:56:25 +02:00
|
|
|
{{ siteheader(site) }}
|
|
|
|
|
2018-03-27 20:41:57 +02:00
|
|
|
<label class="label-inline" for="siteselector">Seite</label>
|
|
|
|
<input id="siteselector" class="awesomplete" value="{{ site.url if not site.fallback }}" data-mode="filter"/>
|
2018-03-26 21:56:25 +02:00
|
|
|
{% if not site.fallback %}
|
|
|
|
|
|
|
|
<a href="{{ url_for("index") }}">Clear filter</a>
|
|
|
|
{% endif %}
|
2018-03-28 16:58:05 +02:00
|
|
|
{{ pagination(pagearray, num_pages, page, site.url if not site.fallback else None, True) }}
|
2018-03-22 22:52:14 +01:00
|
|
|
{% for question in questions %}
|
2018-03-27 20:41:57 +02:00
|
|
|
{% set vote=voted[("question", question.id)] %}
|
2018-03-26 21:56:25 +02:00
|
|
|
<div class="content question"
|
2018-03-22 22:52:14 +01:00
|
|
|
style="border-right-color:{{ question.site.tag_foreground_color }};background-color:{{ question.site.tag_background_color }}">
|
2018-03-26 21:56:25 +02:00
|
|
|
<div class="vote" data-id="{{ question.id }}" data-type="question">
|
2018-03-27 20:41:57 +02:00
|
|
|
<a class="up {{ "active" if vote == True }}"></a>
|
2018-03-22 22:52:14 +01:00
|
|
|
<div>{{ question.upvotes - question.downvotes }}</div>
|
2018-03-27 20:41:57 +02:00
|
|
|
<a class="down {{ "active" if vote == False }}"></a>
|
2018-03-22 22:52:14 +01:00
|
|
|
</div>
|
2018-03-26 21:56:25 +02:00
|
|
|
<div class="contentbox">
|
2018-03-22 22:52:14 +01:00
|
|
|
<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-28 16:58:05 +02:00
|
|
|
{{ pagination(pagearray, num_pages, page, site.url if not site.fallback else None, False) }}
|
2018-03-22 22:52:14 +01:00
|
|
|
{% endblock %}
|