From 0c6d28b0ff86ef59d9868b3ef910e290bb5fce2e Mon Sep 17 00:00:00 2001 From: Timo Tomasini Date: Sat, 19 Mar 2016 17:56:32 +0100 Subject: [PATCH] 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, +} +