diff --git a/courses/templates/course/index.html b/courses/templates/course/index.html index 783ea37..c06fa8e 100644 --- a/courses/templates/course/index.html +++ b/courses/templates/course/index.html @@ -54,17 +54,16 @@ {% endif %}
-
-
- - - -
+
+
+ + +
+
{% if user|has_role:'professor, system_admin' %} -
{% if courses|length > 0 %} {% for course in courses_teacher %} @@ -140,10 +139,7 @@
-{% endif %} - -{% if user|has_role:'students' %} - +{% else %} {% if courses|length > 0 %} {% for course in courses_student %}
diff --git a/courses/templates/course/view.html b/courses/templates/course/view.html index aa30faf..9571d0e 100644 --- a/courses/templates/course/view.html +++ b/courses/templates/course/view.html @@ -52,16 +52,10 @@
-
+

{{course}}

-
-
- - -
+
-
+
+
+
diff --git a/courses/templates/subject/index.html b/courses/templates/subject/index.html index 91f9a38..6379bd4 100644 --- a/courses/templates/subject/index.html +++ b/courses/templates/subject/index.html @@ -36,19 +36,28 @@
-
+

{{subject}}

-
- {% if user|has_role:'system_admin' or user in subject.professors %} - {% trans "edit" %} - {% endif %} -
-
- {% if user|has_role:'system_admin' or user in subject.professors %} - {% trans "delete" %} - {% endif %} -
+
+
+ +
+ {% if user|has_role:'system_admin' or user in subject.professors %} + + {% endif %} +
diff --git a/courses/templates/topic/index.html b/courses/templates/topic/index.html index d35b5a9..b6b5240 100644 --- a/courses/templates/topic/index.html +++ b/courses/templates/topic/index.html @@ -50,19 +50,23 @@
-
+

{{subject}}

-
- {% if user|has_role:'system_admin' or user in subject.professors %} - {% trans "edit" %} - {% endif %} -
-
- {% if user|has_role:'system_admin' or user in subject.professors %} - {% trans "delete" %} - {% endif %} -
+
+ {% if user|has_role:'system_admin' or user in subject.professors %} + + {% endif %} +
@@ -108,11 +112,10 @@
{% else %}
- - +
- - {{form.pdf}} + {{ form.as_p }}
-- libgit2 0.21.2