Add custom links
This commit is contained in:
@@ -137,7 +137,24 @@ class pageParts(object):
|
||||
'</head>\n'\
|
||||
'<body bgcolor = "white">\n'
|
||||
output += ' <table width="100%" bgcolor="#336299"><tr><td>\n'
|
||||
output += ' <p align = "right"><a href="view-all.py" style = "text-decoration: none; border-bottom: 1px solid white; color: white;">Все журналы</a> <a href="index.py" style = "text-decoration: none; border-bottom: 1px solid white; color: white;">Сегодня</a> <a href="index.py?day=%s&month=%s&year=%s" style = "text-decoration: none; border-bottom: 1px solid white; color: white;">Завтра</a></p>\n' % (self.tomorrow.day, self.tomorrow.month, self.tomorrow.year)
|
||||
output += ' <table width="100%">\n'
|
||||
output += ' <tr>\n'
|
||||
output += ' <td>\n'
|
||||
|
||||
try:
|
||||
for link in config.links:
|
||||
if link['url'] == '':
|
||||
output += ' <p style = "display: inline; text-decoration: none; color: white;">%s</p>\n' % link['name']
|
||||
else:
|
||||
output += ' <a style = "text-decoration: none; border-bottom: 1px solid white; color: white;" href="%s" title="%s">%s</a>\n' % (link['url'], link['description'], link['name'])
|
||||
except:
|
||||
None
|
||||
output += ' </td>\n'
|
||||
output += ' <td>\n'
|
||||
output += ' <p align = "right"><a href="view-all.py" style = "text-decoration: none; border-bottom: 1px solid white; color: white;">Все журналы</a> <a href="index.py" style = "text-decoration: none; border-bottom: 1px solid white; color: white;">Сегодня</a> <a href="index.py?day=%s&month=%s&year=%s" style = "text-decoration: none; border-bottom: 1px solid white; color: white;">Завтра</a></p>\n' % (self.tomorrow.day, self.tomorrow.month, self.tomorrow.year)
|
||||
output += ' </td>\n'
|
||||
output += ' </tr>\n'
|
||||
output += ' </table>\n'
|
||||
output += ' <H1><p align = "center"><font color = "white">Журнал командировок</font></p></H1>\n'
|
||||
output += ' </td></tr></table>\n'
|
||||
if self.errStatus:
|
||||
|
||||
Reference in New Issue
Block a user