Edit the commens section in blogthon.cgi
This commit is contained in:
parent
8224638f1d
commit
40349e0713
@ -384,23 +384,24 @@ else:
|
|||||||
print ' </div>'
|
print ' </div>'
|
||||||
print ''
|
print ''
|
||||||
print ' <div class="comments">'
|
print ' <div class="comments">'
|
||||||
|
print ' <div>'
|
||||||
for line in comments_content:
|
for line in comments_content:
|
||||||
if line.split(".", 1)[0] == "-":
|
if line.split(".", 1)[0] == "-":
|
||||||
|
print ' </div>'
|
||||||
print ' <div class="comment">'
|
print ' <div class="comment">'
|
||||||
print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>'
|
print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>'
|
||||||
elif line.split(".", 1)[0] == "+":
|
elif line.split(".", 1)[0] == "+":
|
||||||
print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>'
|
print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>'
|
||||||
|
#print ' <div class="comment_content">'
|
||||||
else:
|
else:
|
||||||
line = line.split(".", 1)[1]
|
line = line.split(".", 1)[1]
|
||||||
print ' <div class="comment_content">'
|
|
||||||
print ' ' + line.strip() + '<br />'
|
print ' ' + line.strip() + '<br />'
|
||||||
print ' </div>'
|
|
||||||
print ' </div>'
|
|
||||||
print ''
|
print ''
|
||||||
|
print ' </div>'
|
||||||
comments_content.close()
|
comments_content.close()
|
||||||
else:
|
else:
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
print ''
|
print ' </div>'
|
||||||
|
|
||||||
# Form for adding comments
|
# Form for adding comments
|
||||||
random_int_a = random.randint(1,9)
|
random_int_a = random.randint(1,9)
|
||||||
|
Loading…
Reference in New Issue
Block a user