aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-xblogthon.cgi19
1 files changed, 14 insertions, 5 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 8dca038..e06de01 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -410,18 +410,26 @@ else:
print ' </div>'
print ''
print ' <div class="comments">'
- print ' <div>'
+
+ notfirstline = 0 # Ugly fix for closing comment containers
+
for line in comments_content:
if line.split(".", 1)[0] == "-":
- print ' </div>'
+ if notfirstline == 1:
+ print ' </div>'
+ print ' </div>'
+ notfirstline = 0;
print ' <div class="comment">'
print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>'
elif line.split(".", 1)[0] == "+":
print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>'
+ print ' <div class="comment_content">'
else:
+ notfirstline = 1;
line = line.split(".", 1)[1]
print ' ' + line.strip() + '<br />'
print ''
+ print ' </div>'
print ' </div>'
comments_content.close()
else:
@@ -436,12 +444,13 @@ else:
print ' <form action="" method="post">'
print ' <input type="hidden" name="ctitle" value="' + title + '" />'
print ' <input type="hidden" name="cquizv" value="' + str(cquizv) + '" />'
- print ' <label class="submit_comment_name">name:</label><input type="text" id="cname" name="cname" />'
- print ' <br /><label class="submit_comment_text">text:</label><textarea class="submit_comment_textarea" rows="5" cols="80" id="ctext" name="ctext"></textarea>'
- print ' <br /><label class="submit_comment_quiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />'
+ print ' <label class="submit_comment_name">name:</label><input class="submit_comment_name_input" type="text" id="cname" name="cname" />'
+ print ' <br /><label class="submit_comment_text">text:</label><textarea class="submit_comment_textarea" id="ctext" name="ctext"></textarea>'
+ print ' <br /><label class="submit_comment_quiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input class="submit_comment_quiz_input" type="text" id="cquiz" name="cquiz" />'
print ' <br /><input class="submit_comment_button" type="submit" id="submit" value="post comment" />'
print ' </form>'
print ' </div>'
+ print ' <div class="submit_border_bottom"></div>'
print ''
if comments == "True":