aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-03-03 17:56:22 +0100
committerStefan Ritter <xeno@thehappy.de>2009-03-03 17:56:22 +0100
commite96ea7f073c9843f7aa6b842ee373aafb698ebeb (patch)
tree1012f70096320606de74cc5a51cff525e2247f07
parentb964989fcef583532980956bb119782d3f95b64b (diff)
Comments:
* Check if entries/title.comments exists and switch from 'no comments' to 'comments (count) * Changed font of commentlink to Helvetica 10
-rwxr-xr-xblogthon.cgi13
-rw-r--r--styles/blogthon.css4
2 files changed, 11 insertions, 6 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index dc34572..1962d77 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -140,10 +140,15 @@ else: # Show regular entry
for line in content:
print ' ' + line.strip() + '<br />'
if comments == "True":
- print ' <div class="comment">'
- print ' <ul><li><a href=? class="comment">comments</a></li></ul>'
- print ' </div><br />'
-
+ if not glob.glob(entries_dir + title + '.comments'):
+ print ' <div class="comment">'
+ 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 ' <br /><br />'
content.close()
diff --git a/styles/blogthon.css b/styles/blogthon.css
index 3808f1a..280536a 100644
--- a/styles/blogthon.css
+++ b/styles/blogthon.css
@@ -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 {
- font-family: Arial;
- font-size: 8px;
+ font-family: Helvetica;
+ font-size: 10px;
}
# vim: set tw=0 ts=4: