implement issues index and detail view, using templates

This commit is contained in:
Lexi / Zoe 2019-05-27 15:18:57 +02:00
parent 43c127d744
commit a14ab33927
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
4 changed files with 34 additions and 4 deletions

View file

@ -0,0 +1,6 @@
<h2>#{{ issue.id }}: {{ issue.title }}</h2>
<p>
<b>Project:</b> {{ issue.project }}<br/>
<b>Created:</b> {{ issue.create_date }}
</p>
<p>{{ issue.text }}</p>

View file

@ -0,0 +1,11 @@
{% if issue_list %}
<ul>
{% for issue in issue_list %}
<li>
<a href="{% url 'issues:detail' issue.id %}">{{ issue.title }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>No issues.</p>
{% endif %}