diff --git a/app/templates/home.html b/app/templates/home.html index b1416af..d5100ec 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -1 +1,88 @@ -{% load static i18n %} \ No newline at end of file +{% extends 'base.html' %} + +{% load static i18n django_bootstrap_breadcrumbs permission_tags %} + +{% block breadcrumbs %} + + {% clear_breadcrumbs %} + {% breadcrumb 'Home' 'app:index' %} + +{% endblock %} + +{% block render_breadcrumbs %} + {% render_breadcrumbs %} +{% endblock %} + +{% block sidebar %} +
+
+ +

+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+{% endblock %} + +{% block content %} +

{% trans 'Courses' %}

+ {% if courses|length > 0 %} + {% for course in courses %} + +
+
+

{{ course }}

+
+ +
+
+ {% endfor %} + {% else %} +

{% trans "You didn't create any course yet." %}

+ {% endif %} +{% endblock %} + +{% block rightbar %} +
+
+

Pending Stuffs

+
+
+

{% trans 'No pending tasks at the moment.' %}

+
+
+{% endblock rightbar %} \ No newline at end of file diff --git a/app/views.py b/app/views.py index a752d98..b82f801 100644 --- a/app/views.py +++ b/app/views.py @@ -12,7 +12,7 @@ class AppIndex(LoginRequiredMixin, LogMixin, TemplateView, NotificationMixin): log_resource = "Home" login_url = reverse_lazy("core:home") redirect_field_name = 'next' - template_name = "home_professor.html" + template_name = "home.html" not_action = "Acessar" not_resource = "home" -- libgit2 0.21.2