Edit the commens section in blogthon.cgi

This commit is contained in:
Adrian Vondendriesch 2009-06-04 16:49:49 +02:00
parent 8224638f1d
commit 40349e0713

View File

@ -384,23 +384,24 @@ else:
print ' </div>'
print ''
print ' <div class="comments">'
print ' <div>'
for line in comments_content:
if line.split(".", 1)[0] == "-":
print ' </div>'
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:
line = line.split(".", 1)[1]
print ' <div class="comment_content">'
print ' ' + line.strip() + '<br />'
print ' </div>'
print ' </div>'
print ''
print ' </div>'
comments_content.close()
else:
print ' </div>'
print ''
print ' </div>'
# Form for adding comments
random_int_a = random.randint(1,9)