mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-17 13:31:29 +00:00
Clarify excuse HTML for the mindays == 0 case.
This commit is contained in:
parent
b723fec4de
commit
b78c9693bc
@ -140,7 +140,9 @@ class Excuse(object):
|
|||||||
if self.section and string.find(self.section, "/") > -1:
|
if self.section and string.find(self.section, "/") > -1:
|
||||||
res = res + "<li>Section: %s\n" % (self.section)
|
res = res + "<li>Section: %s\n" % (self.section)
|
||||||
if self.daysold != None:
|
if self.daysold != None:
|
||||||
if self.daysold < self.mindays:
|
if self.mindays == 0:
|
||||||
|
res = res + ("<li>%d days old\n" % self.daysold)
|
||||||
|
elif self.daysold < self.mindays:
|
||||||
res = res + ("<li>Too young, only %d of %d days old\n" %
|
res = res + ("<li>Too young, only %d of %d days old\n" %
|
||||||
(self.daysold, self.mindays))
|
(self.daysold, self.mindays))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user