create projects app; move Project model to projects app; recreate migrations because moving the model caused problems o.o

This commit is contained in:
Lexi Stelter 2019-05-27 15:22:49 +02:00
parent 880d2f8db4
commit a69e436da5
16 changed files with 108 additions and 25 deletions

View file

@ -0,0 +1,11 @@
{% if project_list %}
<ul>
{% for project in project_list %}
<li>
<a href="{% url 'projects:view' project.project_key %}">{{ project.project_key }}: {{ project.name }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>No projects.</p>
{% endif %}

View file

@ -0,0 +1,15 @@
<h2>{{ project.project_key }} - {{ project.name }}</h2>
<p>{{ project.description }}</p>
<h3>Issues</h3>
{% 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>This project has no issues yet.</p>
{% endif %}