diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-07-14 19:15:25 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-07-14 19:15:25 -0400 |
commit | 19c7da184290e2f20c20a310d1cd8dd2c57bf5c4 (patch) | |
tree | f69648d9f79289abae77872aaa2d1cfb3c5f3d80 | |
parent | fc7588b9ce4a09230175324860d1a754577f4892 (diff) | |
download | askbot-19c7da184290e2f20c20a310d1cd8dd2c57bf5c4.tar.gz askbot-19c7da184290e2f20c20a310d1cd8dd2c57bf5c4.tar.bz2 askbot-19c7da184290e2f20c20a310d1cd8dd2c57bf5c4.zip |
fixed editor styling and allowed empty contents in question body
-rw-r--r-- | askbot/conf/forum_data_rules.py | 4 | ||||
-rw-r--r-- | askbot/media/style/style.css | 3 | ||||
-rw-r--r-- | askbot/media/style/style.less | 3 | ||||
-rw-r--r-- | askbot/models/post.py | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/askbot/conf/forum_data_rules.py b/askbot/conf/forum_data_rules.py index 8f2cf175..f32f34bf 100644 --- a/askbot/conf/forum_data_rules.py +++ b/askbot/conf/forum_data_rules.py @@ -132,9 +132,9 @@ settings.register( default='open', description=_('Question details/body editor should be'), help_text =_( - 'To use folded mode, please first set minimum ' + '<b style="color:red;">To use folded mode, please first set minimum ' 'question body length to 0. Also - please make tags ' - 'optional.' + 'optional.</b>' ) ) ) diff --git a/askbot/media/style/style.css b/askbot/media/style/style.css index fb23aee6..09568712 100644 --- a/askbot/media/style/style.css +++ b/askbot/media/style/style.css @@ -1854,6 +1854,7 @@ ul#related-tags li { } .ask-page .folded-editor { border: none; + padding: 0; height: 0; } .folded-editor.unfolded { @@ -1876,6 +1877,8 @@ ul#related-tags li { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; + height: auto; + padding: 0; width: 723px; width: 100%; } diff --git a/askbot/media/style/style.less b/askbot/media/style/style.less index b73da0b2..d54885c1 100644 --- a/askbot/media/style/style.less +++ b/askbot/media/style/style.less @@ -1953,6 +1953,7 @@ ul#related-tags li { } .ask-page .folded-editor { border: none; + padding: 0; height: 0; } .folded-editor.unfolded { @@ -1979,6 +1980,8 @@ ul#related-tags li { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; + height: auto; + padding: 0; width: 723px; width: 100%; } diff --git a/askbot/models/post.py b/askbot/models/post.py index 9b9e5322..32c53fa1 100644 --- a/askbot/models/post.py +++ b/askbot/models/post.py @@ -2067,7 +2067,7 @@ class PostRevision(models.Model): author = models.ForeignKey('auth.User', related_name='%(class)ss') revised_at = models.DateTimeField() summary = models.CharField(max_length=300, blank=True) - text = models.TextField() + text = models.TextField(blank=True) approved = models.BooleanField(default=False, db_index=True) approved_by = models.ForeignKey(User, null = True, blank = True) |