From e0d5e2f8d3e208c76f67074d23d72363852bd1a0 Mon Sep 17 00:00:00 2001 From: juliotoscano Date: Thu, 20 Oct 2016 10:33:03 -0300 Subject: [PATCH] modifying menu student #205 --- app/templates/home.html | 98 ++++++++++++++++++++++++++++++++++++++------------------------------------------------------------ app/templates/home_student.html | 2 +- core/templates/base.html | 4 ++-- courses/templates/course/index.html | 22 +++++++++++----------- 4 files changed, 52 insertions(+), 74 deletions(-) diff --git a/app/templates/home.html b/app/templates/home.html index 1bc176e..bebde44 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -31,11 +31,11 @@ // Configure the url we're about to hit setTimeout(function (){ $.ajax({ - url: baseUrl, + url: baseUrl, data: {'page': pageNum}, success: function(data) { $("#loading").hide(); - + $("#timeline").append(data); }, complete: function(data, textStatus){ @@ -46,7 +46,7 @@ }, 1000) }; - $(document).ready(function(){ + $(document).ready(function(){ $(window).bind('scroll', loadOnScroll); }); @@ -62,70 +62,48 @@ {% endblock %} {% block sidebar %} -
+ +

Menu

+
+
+ +
+ {% endblock %} {% block content %} {% if user|has_role:'system_admin' %} -

{% trans 'Courses' %}

- -
- {% include page_template %} -
- +

{% trans 'Courses' %}

+
+ {% include page_template %} +
{% else %} - -
- {% include page_template %} -
- +
+ {% include page_template %} +
{% endif %} - @@ -117,7 +117,7 @@ {% block script_file %} - + {% endblock script_file %} diff --git a/courses/templates/course/index.html b/courses/templates/course/index.html index 3850a78..de69751 100644 --- a/courses/templates/course/index.html +++ b/courses/templates/course/index.html @@ -11,18 +11,18 @@ {% endblock %} {% block sidebar %} -