Made red/green colors brighter.
This commit is contained in:
parent
36ea6e7f52
commit
e1bd2cd7c4
|
|
@ -45,15 +45,15 @@ class ServiceController(AuthorizationMixin, WebpageController):
|
|||
ts = Repeaters.lastDownloaded()
|
||||
if ts > 0:
|
||||
ts = datetime.fromtimestamp(ts).strftime("%H:%M:%S, %m/%d/%Y")
|
||||
result += "<div style='color:green;width:100%;text-align:center;'>Repeaters database downloaded at {0}.</div>\n".format(ts)
|
||||
result += "<div style='color:#00FF00;width:100%;text-align:center;'>Repeaters database downloaded at {0}.</div>\n".format(ts)
|
||||
else:
|
||||
result += "<div style='color:red;width:100%;text-align:center;'>Repeaters database not downloaded.</div>\n"
|
||||
result += "<div style='color:#FF0000;width:100%;text-align:center;'>Repeaters database not downloaded.</div>\n"
|
||||
ts = EIBI.lastDownloaded()
|
||||
if ts > 0:
|
||||
ts = datetime.fromtimestamp(ts).strftime("%H:%M:%S, %m/%d/%Y")
|
||||
result += "<div style='color:green;width:100%;text-align:center;'>Shortwave schedule downloaded at {0}.</div>\n".format(ts)
|
||||
result += "<div style='color:#00FF00;width:100%;text-align:center;'>Shortwave schedule downloaded at {0}.</div>\n".format(ts)
|
||||
else:
|
||||
result += "<div style='color:red;width:100%;text-align:center;'>Shortwave schedule not downloaded.</div>\n"
|
||||
result += "<div style='color:#FF0000;width:100%;text-align:center;'>Shortwave schedule not downloaded.</div>\n"
|
||||
return "<p style='width:100%;'>\n" + result + "</p>\n"
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Reference in New Issue