Browse Source

Display only the first 8 characters of SHA1 hashes on index pages

master
Sven Slootweg 9 years ago
parent
commit
ffd56ebb70
  1. 2
      render
  2. 2
      templates/style.css

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)

2
templates/style.css

@ -83,7 +83,7 @@ table.message > tbody > tr > th
table.message-list th.hash
{
width: 320px;
width: 100px;
}
table.message-list th.from

Loading…
Cancel
Save