daca2: made mainpage report sortable

This commit is contained in:
Alexander Mai 2014-03-09 08:32:29 +01:00 committed by Daniel Marjamäki
parent c7f09d4350
commit b44c1b52ee
1 changed files with 15 additions and 17 deletions

View File

@ -39,28 +39,26 @@ mainpage = open(path + '/daca2.html', 'wt')
mainpage.write('<!DOCTYPE html>\n') mainpage.write('<!DOCTYPE html>\n')
mainpage.write('<html lang="en">\n') mainpage.write('<html lang="en">\n')
mainpage.write('<head>\n') mainpage.write('<head>\n')
mainpage.write('<meta charset="utf-8">\n') mainpage.write('<meta charset="utf-8"/>\n')
mainpage.write('<script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js"></script>\n')
mainpage.write('<title>DACA2</title>\n') mainpage.write('<title>DACA2</title>\n')
mainpage.write( mainpage.write('<style>td { font-size: 0.9em; } td + td { padding-left: 6em; }</style>\ntable.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):after {\n content: " \25B4\25BE" \n')
'<style>td { font-size: 0.9em; } td + td { padding-left: 6em; }</style>\n')
mainpage.write('</head>\n') mainpage.write('</head>\n')
mainpage.write('<body>\n') mainpage.write('<body>\n')
mainpage.write('<h1>DACA2</h1>\n') mainpage.write('<h1>DACA2</h1>\n')
mainpage.write( mainpage.write('<p>Results when running latest (git head) Cppcheck on Debian.</p>\n')
'<p>Results when running latest (git head) Cppcheck on Debian.</p>\n') mainpage.write('<p>For performance reasons the analysis is limited. Files larger than 100kb are skipped. If analysis of a file takes more than 10 minutes it may be stopped.</p>\n')
mainpage.write( mainpage.write('<table class="sortable">\n')
'<p>For performance reasons the analysis is limited. Files larger than 100kb are skipped. If analysis of a file takes more than 10 minutes it may be stopped.</p>\n')
mainpage.write('<table>\n')
mainpage.write( mainpage.write(
'<tr>' + '<tr>' +
'<td>Name</td>' + '<th>Name</th>' +
'<td>Date</td>' + '<th>Date</th>' +
'<td>Error</td>' + '<th>Error</th>' +
'<td>Warning</td>' + '<th>Warning</th>' +
'<td>Performance</td>' + '<th>Performance</th>' +
'<td>Portability</td>' + '<th>Portability</th>' +
'<td>Style</td>' + '<th>Style</th>' +
'<td>Crashes</td></tr>\n') '<th>Crashes</th></tr>\n')
lastupdate = None lastupdate = None
recent = [] recent = []
@ -117,7 +115,7 @@ for lib in range(2):
f.write('<!DOCTYPE html>\n') f.write('<!DOCTYPE html>\n')
f.write('<html lang="en">\n') f.write('<html lang="en">\n')
f.write('<head>\n') f.write('<head>\n')
f.write('<meta charset="utf-8">\n') f.write('<meta charset="utf-8"/>\n')
f.write('<title>DACA2 - ' + a + '</title>\n') f.write('<title>DACA2 - ' + a + '</title>\n')
f.write('</head>\n') f.write('</head>\n')
f.write('<body>\n') f.write('<body>\n')