diff options
Diffstat (limited to '')
-rwxr-xr-x | blogthon.cgi | 13 |
1 files changed, 9 insertions, 4 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() |