|
|
@@ -460,17 +460,17 @@ class HTMLReportCreator(ReportCreator):
|
|
460
|
460
|
|
|
461
|
461
|
self.printNav(f)
|
|
462
|
462
|
|
|
463
|
|
- f.write('<dl>');
|
|
|
463
|
+ f.write('<dl>')
|
|
464
|
464
|
f.write('<dt>Project name</dt><dd>%s</dd>' % (data.projectname))
|
|
465
|
|
- f.write('<dt>Generated</dt><dd>%s (in %d seconds)</dd>' % (datetime.datetime.now().strftime(format), time.time() - data.getStampCreated()));
|
|
|
465
|
+ f.write('<dt>Generated</dt><dd>%s (in %d seconds)</dd>' % (datetime.datetime.now().strftime(format), time.time() - data.getStampCreated()))
|
|
466
|
466
|
f.write('<dt>Report Period</dt><dd>%s to %s</dd>' % (data.getFirstCommitDate().strftime(format), data.getLastCommitDate().strftime(format)))
|
|
467
|
467
|
f.write('<dt>Total Files</dt><dd>%s</dd>' % data.getTotalFiles())
|
|
468
|
468
|
f.write('<dt>Total Lines of Code</dt><dd>%s</dd>' % data.getTotalLOC())
|
|
469
|
469
|
f.write('<dt>Total Commits</dt><dd>%s</dd>' % data.getTotalCommits())
|
|
470
|
470
|
f.write('<dt>Authors</dt><dd>%s</dd>' % data.getTotalAuthors())
|
|
471
|
|
- f.write('</dl>');
|
|
|
471
|
+ f.write('</dl>')
|
|
472
|
472
|
|
|
473
|
|
- f.write('</body>\n</html>');
|
|
|
473
|
+ f.write('</body>\n</html>')
|
|
474
|
474
|
f.close()
|
|
475
|
475
|
|
|
476
|
476
|
###
|
|
|
@@ -558,10 +558,10 @@ class HTMLReportCreator(ReportCreator):
|
|
558
|
558
|
except KeyError:
|
|
559
|
559
|
commits = 0
|
|
560
|
560
|
if commits != 0:
|
|
561
|
|
- f.write('<td');
|
|
|
561
|
+ f.write('<td')
|
|
562
|
562
|
r = 127 + int((float(commits) / data.activity_by_hour_of_week_busiest) * 128)
|
|
563
|
|
- f.write(' style="background-color: rgb(%d, 0, 0)"' % r);
|
|
564
|
|
- f.write('>%d</td>' % commits);
|
|
|
563
|
+ f.write(' style="background-color: rgb(%d, 0, 0)"' % r)
|
|
|
564
|
+ f.write('>%d</td>' % commits)
|
|
565
|
565
|
else:
|
|
566
|
566
|
f.write('<td></td>')
|
|
567
|
567
|
f.write('</tr>')
|