Comments:
* Check if entries/title.comments exists and switch from 'no comments' to 'comments (count) * Changed font of commentlink to Helvetica 10
This commit is contained in:
parent
b964989fce
commit
e96ea7f073
13
blogthon.cgi
13
blogthon.cgi
@ -140,10 +140,15 @@ else: # Show regular entry
|
|||||||
for line in content:
|
for line in content:
|
||||||
print ' ' + line.strip() + '<br />'
|
print ' ' + line.strip() + '<br />'
|
||||||
if comments == "True":
|
if comments == "True":
|
||||||
print ' <div class="comment">'
|
if not glob.glob(entries_dir + title + '.comments'):
|
||||||
print ' <ul><li><a href=? class="comment">comments</a></li></ul>'
|
print ' <div class="comment">'
|
||||||
print ' </div><br />'
|
print ' <ul><li><a href=? class="comment">no comments</a></li></ul>'
|
||||||
|
print ' </div><br />'
|
||||||
|
else:
|
||||||
|
print ' <div class="comment">'
|
||||||
|
print ' <ul><li><a href=? class="comment">comments (count)</a></li></ul>'
|
||||||
|
print ' </div><br />'
|
||||||
|
|
||||||
print ' </p></div>'
|
print ' </p></div>'
|
||||||
print ' <br /><br />'
|
print ' <br /><br />'
|
||||||
content.close()
|
content.close()
|
||||||
|
@ -73,8 +73,8 @@ a.entrytitle:link, a.entrytitle:hover, a.entrytitle:visited, a.entrytitle:active
|
|||||||
}
|
}
|
||||||
|
|
||||||
a.comment:link, a.comment:hover, a.comment:active, a.comment:visited {
|
a.comment:link, a.comment:hover, a.comment:active, a.comment:visited {
|
||||||
font-family: Arial;
|
font-family: Helvetica;
|
||||||
font-size: 8px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: set tw=0 ts=4:
|
# vim: set tw=0 ts=4:
|
||||||
|
Loading…
Reference in New Issue
Block a user