{% extends "base.html" %}
{% block content %}
  <section class="section"><div class="container">
    <h1 class="title is-4">Epic: {{ epic.name }}</h1>
    <div class="buttons"><a class="button is-small is-light" href="{% url 'tasks_project' project_id=epic.project_id %}">Back to project</a></div>
    <article class="box">
      <ul class="is-size-7">
        {% for row in tasks %}
          <li>
            <a href="{% url 'tasks_task' task_id=row.id %}">#{{ row.reference_code }} {{ row.title }}</a>
            <span class="has-text-grey">· by {{ row.creator_label|default:"Unknown" }}</span>
            {% if row.creator_identifier %}
              <code>{{ row.creator_identifier }}</code>
            {% endif %}
          </li>
        {% empty %}
          <li>No tasks.</li>
        {% endfor %}
      </ul>
    </article>
  </div></section>
{% endblock %}
