Browse Source

formato de tarjeta de todos los <dl>

dany 3 years ago
parent
commit
33634b9cad
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      gitstats

+ 6
- 6
gitstats View File

1030
 		f.write('<h1>Files</h1>')
1030
 		f.write('<h1>Files</h1>')
1031
 		self.printNav(f)
1031
 		self.printNav(f)
1032
 
1032
 
1033
-		f.write('<dl>\n')
1033
+		f.write('<div><div class="card-body"><dl>\n')
1034
 		f.write('<dt>Total files</dt><dd>%d</dd>' % data.getTotalFiles())
1034
 		f.write('<dt>Total files</dt><dd>%d</dd>' % data.getTotalFiles())
1035
 		f.write('<dt>Total lines</dt><dd>%d</dd>' % data.getTotalLOC())
1035
 		f.write('<dt>Total lines</dt><dd>%d</dd>' % data.getTotalLOC())
1036
 		try:
1036
 		try:
1037
 			f.write('<dt>Average file size</dt><dd>%.2f bytes</dd>' % (float(data.getTotalSize()) / data.getTotalFiles()))
1037
 			f.write('<dt>Average file size</dt><dd>%.2f bytes</dd>' % (float(data.getTotalSize()) / data.getTotalFiles()))
1038
 		except ZeroDivisionError:
1038
 		except ZeroDivisionError:
1039
 			pass
1039
 			pass
1040
-		f.write('</dl>\n')
1040
+		f.write('</dl></div>\n')
1041
 
1041
 
1042
 		# Files :: File count by date
1042
 		# Files :: File count by date
1043
 		f.write(html_header(2, 'File count by date'))
1043
 		f.write(html_header(2, 'File count by date'))
1081
 		f.write('<h1>Lines</h1>')
1081
 		f.write('<h1>Lines</h1>')
1082
 		self.printNav(f)
1082
 		self.printNav(f)
1083
 
1083
 
1084
-		f.write('<dl>\n')
1084
+		f.write('<div><div class="card-body"><dl>\n')
1085
 		f.write('<dt>Total lines</dt><dd>%d</dd>' % data.getTotalLOC())
1085
 		f.write('<dt>Total lines</dt><dd>%d</dd>' % data.getTotalLOC())
1086
-		f.write('</dl>\n')
1086
+		f.write('</dl></div>\n')
1087
 
1087
 
1088
 		f.write(html_header(2, 'Lines of Code'))
1088
 		f.write(html_header(2, 'Lines of Code'))
1089
 		f.write('<img src="lines_of_code.png" />')
1089
 		f.write('<img src="lines_of_code.png" />')
1103
 		f.write('<h1>Tags</h1>')
1103
 		f.write('<h1>Tags</h1>')
1104
 		self.printNav(f)
1104
 		self.printNav(f)
1105
 
1105
 
1106
-		f.write('<dl>')
1106
+		f.write('<div><div class="card-body"><dl>')
1107
 		f.write('<dt>Total tags</dt><dd>%d</dd>' % len(data.tags))
1107
 		f.write('<dt>Total tags</dt><dd>%d</dd>' % len(data.tags))
1108
 		if len(data.tags) > 0:
1108
 		if len(data.tags) > 0:
1109
 			f.write('<dt>Average commits per tag</dt><dd>%.2f</dd>' % (1.0 * data.getTotalCommits() / len(data.tags)))
1109
 			f.write('<dt>Average commits per tag</dt><dd>%.2f</dd>' % (1.0 * data.getTotalCommits() / len(data.tags)))
1110
-		f.write('</dl>')
1110
+		f.write('</dl></div>')
1111
 
1111
 
1112
 		f.write('<div><div class="card-body"><table class="tags">')
1112
 		f.write('<div><div class="card-body"><table class="tags">')
1113
 		f.write('<tr><th>Name</th><th>Date</th><th>Commits</th><th>Authors</th></tr>')
1113
 		f.write('<tr><th>Name</th><th>Date</th><th>Commits</th><th>Authors</th></tr>')