From 3b03041a26b5a1c939b00f82bd2b4463f97ae23e Mon Sep 17 00:00:00 2001 From: Gustavo Date: Wed, 19 Apr 2017 22:59:52 -0300 Subject: [PATCH] New home subject template --- subjects/templates/subjects/home.html | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+), 0 deletions(-) create mode 100644 subjects/templates/subjects/home.html diff --git a/subjects/templates/subjects/home.html b/subjects/templates/subjects/home.html new file mode 100644 index 0000000..f1d811f --- /dev/null +++ b/subjects/templates/subjects/home.html @@ -0,0 +1,84 @@ +{% extends "categories/home.html" %} + +{% load static pagination i18n %} + +{% block content %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} + + + + + + + + + + + + +
+

{% trans "My Subjects" %} ({{ total_subs }})

+ + {% if subjects|length > 0 %} +
+ {% for subject in subjects %} + {% include "subjects/subject_card.html" with accordion_id="subject-accordion" %} + {% endfor %} + + {% pagination request paginator page_obj %} +
+ {% else %} +
+ +

{% trans 'You still do not posses any subject in our platform' %}

+
+ {% endif %} +
+ + + + + +{% endblock content %} -- libgit2 0.21.2