From da00b76805350a126eb95a268c5e6e18134a587b Mon Sep 17 00:00:00 2001 From: Zambom Date: Tue, 24 Jan 2017 00:25:18 -0200 Subject: [PATCH] Adjusts subjects/webpages --- amadeus/static/css/themes/green.css | 6 +++--- subjects/templates/subjects/view.html | 18 ------------------ webpage/templates/webpages/view.html | 20 +++----------------- 3 files changed, 6 insertions(+), 38 deletions(-) diff --git a/amadeus/static/css/themes/green.css b/amadeus/static/css/themes/green.css index d639294..bbd057b 100644 --- a/amadeus/static/css/themes/green.css +++ b/amadeus/static/css/themes/green.css @@ -52,11 +52,11 @@ a, a:focus, a:hover { } .category-panel > .panel-heading { - background-color: #0277BD !important; + background-color: #015E96 !important; } .subject-panel > .panel-heading { - background-color: #039BE5 !important; + background-color: #0277BD !important; } .group-panel > .panel-heading { @@ -73,7 +73,7 @@ a, a:focus, a:hover { } .topic-panel > .panel-heading { - background-color: #7BA5B9 !important; + background-color: #1d8fe0 !important; } .topic-panel > .category-panel-content, .topic-panel-invisible > .category-panel-content { diff --git a/subjects/templates/subjects/view.html b/subjects/templates/subjects/view.html index bb50d47..5faa3a1 100644 --- a/subjects/templates/subjects/view.html +++ b/subjects/templates/subjects/view.html @@ -64,24 +64,6 @@
-
-
- {% if subject.professor.all|length > 0 %} -

{% trans "Professor(s) " %}: - {{ subject.professor.all|join:', ' }} -

- {% else %} -

{% trans "It doesn't possess professors" %}

- {% endif %} -
-
-

{% trans "Beginning" %}: {{subject.init_date}}

-
-
-

{% trans "End" %}: {{subject.end_date}}

-
-
-

{{subject.description|safe}}

{% if has_subject_permissions %} diff --git a/webpage/templates/webpages/view.html b/webpage/templates/webpages/view.html index 4b70ce7..3f888ca 100644 --- a/webpage/templates/webpages/view.html +++ b/webpage/templates/webpages/view.html @@ -28,34 +28,20 @@ {% subject_permissions request.user subject as has_subject_permissions %} {% if subject.visible %} -
+
{% elif has_subject_permissions %} -
+
{% endif %}

- {{subject.name}} + {{ webpage }}

- {% if request.user in subject.professor.all or request.user in subject.category.coordinators.all or request.user.is_staff %} - - - {% endif %} - - -
-- libgit2 0.21.2