intent/templates/features/list.html

37 lines
1.2 KiB
HTML
Raw Permalink Normal View History

{% extends "projects/base.html" %}
{% block page_title %}All features{% endblock %}
{% block project_content %}
<h1>All features</h1>
{% if access.can_edit %}
<p><a href="{% url 'features:create' org_slug=project.org.slug project_slug=project.slug %}">New feature</a></p>
{% endif %}
{% if features %}
<table>
<thead>
<tr>
<th scope="col">Feature</th>
<th scope="col">Status</th>
<th scope="col">Parent</th>
<th scope="col">Revision</th>
<th scope="col">Updated</th>
</tr>
</thead>
<tbody>
{% for f in features %}
<tr>
<th scope="row"><a href="{% url 'features:detail' org_slug=project.org.slug project_slug=project.slug feature_key=f.key %}">{{ f.key }} {{ f.title }}</a></th>
<td>{{ f.get_status_display }}</td>
<td>{% if f.parent %}{{ f.parent.key }}{% else %}—{% endif %}</td>
<td>{{ f.current_revision }}</td>
<td><time datetime="{{ f.updated_at|date:'c' }}">{{ f.updated_at|date:"j M Y" }}</time></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No features yet.</p>
{% endif %}
{% endblock %}