Fix index.html path on index template

master
Sven Slootweg 13 years ago
parent a621610fec
commit 88be278b27

@ -86,7 +86,7 @@ def render_index(email_list, title, identifier):
'page': title, 'page': title,
'pagenum': "Page %d of %d" % (current_page + 1, len(email_list)), 'pagenum': "Page %d of %d" % (current_page + 1, len(email_list)),
'title': options['title'], 'title': options['title'],
'index': "../index.html", 'index': "index.html",
'items': "".join('<tr class="clickable" data-url="messages/%s"><td>%s...</td><td>%s</td><td>%s</td><td><a href="messages/%s">%s</a></td><td>%s</td><td>%s</td></tr>' % (message[10], message[0][:8], message[3], message[4], message[10], message[5], message[6], message[7]) for message in list_chunk), 'items': "".join('<tr class="clickable" data-url="messages/%s"><td>%s...</td><td>%s</td><td>%s</td><td><a href="messages/%s">%s</a></td><td>%s</td><td>%s</td></tr>' % (message[10], message[0][:8], message[3], message[4], message[10], message[5], message[6], message[7]) for message in list_chunk),
'prev': prevpage, 'prev': prevpage,
'next': nextpage, 'next': nextpage,

Loading…
Cancel
Save