From 4bf6bfcb3bd1649968aeb3dd45f171288def9cb6 Mon Sep 17 00:00:00 2001 From: Felipe Henrique de Almeida Bormann Date: Tue, 3 Jan 2017 16:55:41 -0300 Subject: [PATCH] fixed accordeon and added subscribe and access buttons, still has to add it's functionality --- subjects/templates/subjects/list.html | 4 +++- subjects/templates/subjects/subject_card.html | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/subjects/templates/subjects/list.html b/subjects/templates/subjects/list.html index 5ca51a5..7670a15 100644 --- a/subjects/templates/subjects/list.html +++ b/subjects/templates/subjects/list.html @@ -92,7 +92,7 @@ {% if user in category.coordinators.all %} {% endif %} -
+
{% for subject in category.subjects %} {% include "subjects/subject_card.html" %} {% endfor %} @@ -100,6 +100,8 @@
+ + {% comment %} diff --git a/subjects/templates/subjects/subject_card.html b/subjects/templates/subjects/subject_card.html index 31bf404..44597ec 100644 --- a/subjects/templates/subjects/subject_card.html +++ b/subjects/templates/subjects/subject_card.html @@ -49,8 +49,12 @@

{{subject.description_brief|safe}}

- - + {% if request.user in subject.students.all %} + + {% else %} + + {% endif %} +
\ No newline at end of file -- libgit2 0.21.2