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 %} -