Commit ebcc9ec4 authored by Katrina Bernice Tan's avatar Katrina Bernice Tan

Edited assignments html

parent 6d9dd3ea
......@@ -13,12 +13,16 @@
<div id = "courses">
<ul>
<div class = "wrapper">
{% for a in assignments %}
{% for c in course%}
<div class = "block">
<h2> {{a.course}} </h2>
<h2> {{ c }}</h2>
{% for a in assignments %}
{% if c == a.course%}
<li>
<a href="/assignment/{{ a.pk }}/details"> {{a.name}} </a>
</li>
{%endif%}
{%endfor%}
</div>
{%endfor%}
</div>
......
......@@ -16,6 +16,6 @@
<div id = "courses">
<h1> List of courses: </h1>
</div>
{% include "Assignments/assignment_list.html" with assignments=assignment %}
{% include "Assignments/assignment_list.html" with assignments=assignment course=course %}
{%endblock content%}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment