summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/management/commands/askbot_add_test_content.py12
-rw-r--r--askbot/skins/default/media/style/style.less14
2 files changed, 17 insertions, 9 deletions
diff --git a/askbot/management/commands/askbot_add_test_content.py b/askbot/management/commands/askbot_add_test_content.py
index ace629d0..ca250339 100644
--- a/askbot/management/commands/askbot_add_test_content.py
+++ b/askbot/management/commands/askbot_add_test_content.py
@@ -20,7 +20,8 @@ BAD_STUFF = "<script>alert('hohoho')</script>"
USERNAME_TEMPLATE = BAD_STUFF + "test_user_%s"
PASSWORD_TEMPLATE = "test_password_%s"
EMAIL_TEMPLATE = "test_user_%s@askbot.org"
-TITLE_TEMPLATE = "Test question title No.%s" + BAD_STUFF
+TITLE_TEMPLATE = "Question No.%s" + BAD_STUFF
+LONG_TITLE_TEMPLATE = TITLE_TEMPLATE + 'a lot more text a lot more text a lot more text '*5
TAGS_TEMPLATE = [BAD_STUFF + "tag-%s-0", BAD_STUFF + "tag-%s-1"] # len(TAGS_TEMPLATE) tags per question
CONTENT_TEMPLATE = BAD_STUFF + """Lorem lean startup ipsum product market fit customer
@@ -99,11 +100,18 @@ class Command(NoArgsCommand):
tags = " ".join([t%user.id for t in TAGS_TEMPLATE])
if i < NUM_QUESTIONS/2:
tags += ' one-tag'
+
+ if i % 2 == 0:
+ question_template = TITLE_TEMPLATE
+ else:
+ question_template = LONG_TITLE_TEMPLATE
+
active_question = user.post_question(
- title = TITLE_TEMPLATE % user.id,
+ title = question_template % user.id,
body_text = CONTENT_TEMPLATE,
tags = tags,
)
+
self.print_if_verbose("Created Question '%s' with tags: '%s'" % (
active_question.thread.title, tags,)
)
diff --git a/askbot/skins/default/media/style/style.less b/askbot/skins/default/media/style/style.less
index f6c976fc..f09df0e4 100644
--- a/askbot/skins/default/media/style/style.less
+++ b/askbot/skins/default/media/style/style.less
@@ -1364,7 +1364,7 @@ ul#related-tags li {
div#question-list {
border-bottom:#f0f0ec 1px solid;
float: none;
- a{
+ a {
line-height:30px;
}
@@ -1373,12 +1373,12 @@ ul#related-tags li {
div#question-list h2 {
font-size: 13px;
padding-bottom: 0;
- color:@link;
- border-top:#f0f0ec 1px solid;
- border-left:#f0f0ec 1px solid;
- height:30px;
- line-height:30px;
- font-weight:normal;
+ color: @link;
+ border-top: #f0f0ec 1px solid;
+ border-left: #f0f0ec 1px solid;
+ min-height: 30px;
+ line-height: 30px;
+ font-weight: normal;
}
div#question-list span {