{% extends "base.html" %}

{% block bodyclass %}tag{% endblock %}
{% block title %}{{ tag }}{% endblock %}
{% block body %}
  <div class="row">
    <h2 class="title">{{ tag }}</h2>
  </div>
  <div class="row">
    <div class="col-md-6">
      {% for question in questions %}
        <p class="question"><span class="score {{ question["Score"] | scale }}">{{ question["Score"] }}</span> <a href="{{ rooturl }}/question/{{ question["filepath"] }}.html">{{ question["Title"] }}</a> <span class="date" title="{{ question["CreationDate"] }}">{{ question["CreationDate"] }}</span></p>
      {% endfor %}
      {% if hasnext %}
        <div class="pagination">
          <p><a href="{{next}}.html">Next</a></p>
        </div>
      {% endif %}
    </div>
  </div>
  <script src="{{ rooturl }}/static/main.js"></script>
  <div id="footer">This website was generated by <a href="https://github.com/openzim/sotoki/">sotoki</a> using <a href="https://archive.org/details/stackexchange">stackexchange network</a> database dump.</div>
{% endblock %}
