Display only the first 8 characters of SHA1 hashes on index pages
This commit is contained in:
parent
b6fdc654e1
commit
ffd56ebb70
2
render
2
render
|
@ -61,7 +61,7 @@ def render_index(email_list, title, identifier):
|
|||
'pagenum': "Page %d of %d" % (current_page + 1, len(email_list)),
|
||||
'title': options['title'],
|
||||
'index': "../index.html",
|
||||
'items': "".join('<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>' % (message[0], message[3], message[4], message[5], message[6], message[7]) for message in list_chunk)
|
||||
'items': "".join('<tr><td>%s...</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>' % (message[0][:8], message[3], message[4], message[5], message[6], message[7]) for message in list_chunk)
|
||||
}
|
||||
|
||||
filename = "%s/index_%s_%d.html" % (options['output_dir'], identifier, current_page)
|
||||
|
|
|
@ -83,7 +83,7 @@ table.message > tbody > tr > th
|
|||
|
||||
table.message-list th.hash
|
||||
{
|
||||
width: 320px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
table.message-list th.from
|
||||
|
|
Loading…
Reference in a new issue