italy-indy-py/templates/search_results.html
2020-08-27 16:14:47 +02:00

32 line
1,007 B
HTML

{% extends "base.html" %}
{% block title_extra%} | Ricerca | Pagina {{pagination.page}} {% endblock %}
{% block content %}
<style>
.post-hidden { font-size: 70%; }
.post-hidden a { color: gray; }
.result .author { font-style: italic; font-size: 85%;}
</style>
<table class="table table-striped">
<thead>
<th>ID</th>
<th>Data</th>
<th>Titolo</th>
<th>Autore</th>
</thead>
<tbody>
{% for r in results %}
<tr class="result post-display--{{r.display}} {% if r.display == 'f' %}post-hidden{%endif%}"
>
<td>
<a href="{{url_for('news_by_nid', nid=r.nid)}}">{{r.nid}}</a>
</td>
<td> <time>{{r.published_datetime.strftime('%d/%m/%Y')}}</time> </td>
<td> {{r.title}} </td>
<td class="author">{{r.author}}</td>
</tr>
{% endfor %}
</tbody>
</table>
{{pagination.links}}
{% endblock content %}