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 diff --git a/tkupek_elearning/elearning/models.py b/tkupek_elearning/elearning/models.py index e3978c7..fe455a2 100644 --- a/tkupek_elearning/elearning/models.py +++ b/tkupek_elearning/elearning/models.py @@ -1,4 +1,3 @@ -# coding=utf-8 from __future__ import unicode_literals import hashlib @@ -79,7 +78,7 @@ class UserAnswer(models.Model): correct = models.NullBooleanField(null=True) def __unicode__(self): - return "" + return str(self.user) + " - " + str(self.question.id) class Meta: unique_together = (('user', 'question'),) @@ -93,4 +92,4 @@ class UserAnswerOptions(models.Model): unique_together = (('user_answer', 'option'),) def __unicode__(self): - return unicode(str(self.user_answer) + " - " + str(self.option), "utf-8") + return str(self.user_answer) + " - " + str(self.option) 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 */ +} + 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, +} +