aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <xeno@goliath.thehappy.de>2009-07-10 00:50:26 +0200
committerStefan Ritter <xeno@goliath.thehappy.de>2009-07-10 00:50:26 +0200
commitca145a3d23cd0c0141f66c22e6cfbba64063317b (patch)
treef922f56612607ac4063b5659d1047c41cbd05cbd /blogthon.cgi
parent9553b56291679c5b4aee1d1ea12d4ef83a530694 (diff)
box.css and bugfixes:
* Added comments in box.css * Fixed a div bug in blogthon.cgi * Added containers for form inputs
Diffstat (limited to '')
-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":