From bcfd9f67aa2d2239638e447749ab44ddcc535ccb Mon Sep 17 00:00:00 2001 From: Timo Tomasini Date: Sat, 19 Mar 2016 14:38:31 +0100 Subject: [PATCH 1/3] fixed FollowSymLinks bug --- apache2/httpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/httpd.conf b/apache2/httpd.conf index 9f9348a..18bb87b 100644 --- a/apache2/httpd.conf +++ b/apache2/httpd.conf @@ -11,7 +11,7 @@ Alias /static/ /var/www/tkupek_elearning/elearning/static/ - Options +FollowSymLinks + Options FollowSymLinks Order allow,deny From 0c6d28b0ff86ef59d9868b3ef910e290bb5fce2e Mon Sep 17 00:00:00 2001 From: Timo Tomasini Date: Sat, 19 Mar 2016 17:56:32 +0100 Subject: [PATCH 2/3] fixed some minor html interpretation and tinymce issues --- tkupek_elearning/elearning/models.py | 1 + tkupek_elearning/elearning/templates/access_denied.html | 5 +++-- tkupek_elearning/elearning/templates/elearning.html | 7 ++++--- tkupek_elearning/elearning/templates/setting_null.html | 3 ++- tkupek_elearning/elearning/templates/statistic.html | 3 ++- tkupek_elearning/settings.py | 7 +++++++ 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/tkupek_elearning/elearning/models.py b/tkupek_elearning/elearning/models.py index fe455a2..0d2c40e 100644 --- a/tkupek_elearning/elearning/models.py +++ b/tkupek_elearning/elearning/models.py @@ -93,3 +93,4 @@ class UserAnswerOptions(models.Model): def __unicode__(self): return str(self.user_answer) + " - " + str(self.option) + diff --git a/tkupek_elearning/elearning/templates/access_denied.html b/tkupek_elearning/elearning/templates/access_denied.html index a498d12..c51200c 100644 --- a/tkupek_elearning/elearning/templates/access_denied.html +++ b/tkupek_elearning/elearning/templates/access_denied.html @@ -24,9 +24,10 @@

{{ settings.title }}


-

{{ settings.message_access_denied }}

+

{{ settings.message_access_denied|safe }}

- \ No newline at end of file + + diff --git a/tkupek_elearning/elearning/templates/elearning.html b/tkupek_elearning/elearning/templates/elearning.html index 4b2d4b4..339c8e4 100644 --- a/tkupek_elearning/elearning/templates/elearning.html +++ b/tkupek_elearning/elearning/templates/elearning.html @@ -77,7 +77,7 @@

- {{ settings.message_already_answered }} + {{ settings.message_already_answered|safe }}

@@ -95,10 +95,11 @@

- {{ settings.footer }} + {{ settings.footer|safe }}
- \ No newline at end of file + + diff --git a/tkupek_elearning/elearning/templates/setting_null.html b/tkupek_elearning/elearning/templates/setting_null.html index f6305f1..0301ed0 100644 --- a/tkupek_elearning/elearning/templates/setting_null.html +++ b/tkupek_elearning/elearning/templates/setting_null.html @@ -34,4 +34,5 @@ - \ No newline at end of file + + diff --git a/tkupek_elearning/elearning/templates/statistic.html b/tkupek_elearning/elearning/templates/statistic.html index d96ef05..1b83ff8 100644 --- a/tkupek_elearning/elearning/templates/statistic.html +++ b/tkupek_elearning/elearning/templates/statistic.html @@ -93,4 +93,5 @@ - \ No newline at end of file + + diff --git a/tkupek_elearning/settings.py b/tkupek_elearning/settings.py index 3f03bb9..41bb34d 100644 --- a/tkupek_elearning/settings.py +++ b/tkupek_elearning/settings.py @@ -118,3 +118,10 @@ USE_TZ = True STATIC_URL = '/static/' STATIC_ROOT = '/var/www/tkupek_elearning/elearning/static/' +# TinyMCE settings +TINYMCE_DEFAULT_CONFIG = { + 'theme': "simple", + 'custom_undo_redo_levels': 20, + 'width': 500, +} + From 5870dcc2a6e79cff1a01f30472d444a8354e85d7 Mon Sep 17 00:00:00 2001 From: Timo Tomasini Date: Sat, 19 Mar 2016 18:09:51 +0100 Subject: [PATCH 3/3] fixed style.css and added color to question_already_answered message --- .../elearning/static/css/style.css | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/tkupek_elearning/elearning/static/css/style.css b/tkupek_elearning/elearning/static/css/style.css index 305a619..4122273 100644 --- a/tkupek_elearning/elearning/static/css/style.css +++ b/tkupek_elearning/elearning/static/css/style.css @@ -1,13 +1,11 @@ -body { - -} +body {} p { -text-align: justify; + text-align: justify; } #showSolution { - display: block; + display: block; } p[id^="explanation_"] { @@ -15,48 +13,50 @@ p[id^="explanation_"] { } .show { - display: block; + display: block; } .hide { - display: none; + display: none; } .margin10 { - margin-top: 10px; + margin-top: 10px; } .margin25 { - margin-top: 25px; + margin-top: 25px; } .margin50 { - margin-top: 50px; + margin-top: 50px; } .margin75 { - margin-top: 75px; + margin-top: 75px; } .mainLogo { - width: 300px; - height: auto; - float: right; + width: 300px; + height: auto; + float: right; } .message_already_answered { - font-style: italic; + font-style: italic; + color: darkgreen; } .table_headline { - font-weight: bold; + font-weight: bold; } .footer { - color: #b3b3b3 + color: #b3b3b3 } .container { - margin-right: auto; - margin-left: auto; - max-width: 800px; /* or 950px */ -} \ No newline at end of file + margin-right: auto; + margin-left: auto; + max-width: 800px; /* or 950px */ +} +