From 50f6f862f68aa8ac661327745c0291b162824f64 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Sat, 31 Oct 2009 00:33:19 +0100 Subject: Don't show comment form when comments are disabled --- blogthon.cgi | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/blogthon.cgi b/blogthon.cgi index 9eb2ab6..f34b889 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -485,21 +485,23 @@ else: print '
' # Form for adding comments - random_int_a = random.randint(1,9) - random_int_b = random.randint(1,9) - cquizv = random_int_a + random_int_b - print '
' - print '
' - print ' ' - print ' ' - print ' ' - print '
' - print '
' - print '
' - print '
' - print '
' - print '
' - print '' + if comments == "True": + random_int_a = random.randint(1,9) + random_int_b = random.randint(1,9) + cquizv = random_int_a + random_int_b + print '
' + print '
' + print ' ' + print ' ' + print ' ' + print '
' + print '
' + print '
' + print '
' + print '
' + else: + print '
' + print '' if comments == "True": comments_file = glob.glob(entries_dir + title + '.comments') -- cgit v1.2.3