search_results.html 728 B

1234567891011121314151617181920212223
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <style>
  4. .post-hidden { font-size: 70%; }
  5. .post-hidden a { color: gray; }
  6. .result {
  7. list-style: none;
  8. }
  9. .result .author { font-style: italic; font-size: 85%;}
  10. </style>
  11. <ul>
  12. {% for r in results %}
  13. <li class="result post-display--{{r.display}} {% if r.display == 'f' %}post-hidden{%endif%}"
  14. >
  15. <a href="{{url_for('news_by_nid', nid=r.nid)}}">{{r.nid}}</a>
  16. - <time>{{r.published_datetime.strftime('%d/%m/%Y')}}</time>
  17. - {{r.title}} by <span class="author">{{r.author}}</span>
  18. </li>
  19. {% endfor %}
  20. </ul>
  21. {{pagination.links}}
  22. {% endblock content %}