浏览代码

CSS: Vertical align 'top' for tags table.

Heikki Hokkanen 16 年前
父节点
当前提交
2d596426f7
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1
    1
      gitstats
  2. 4
    0
      gitstats.css

+ 1
- 1
gitstats 查看文件

@@ -827,7 +827,7 @@ class HTMLReportCreator(ReportCreator):
827 827
 			f.write('<dt>Average commits per tag</dt><dd>%.2f</dd>' % (1.0 * data.getTotalCommits() / len(data.tags)))
828 828
 		f.write('</dl>')
829 829
 
830
-		f.write('<table>')
830
+		f.write('<table class="tags">')
831 831
 		f.write('<tr><th>Name</th><th>Date</th><th>Commits</th><th>Authors</th></tr>')
832 832
 		# sort the tags by date desc
833 833
 		tags_sorted_by_date_desc = map(lambda el : el[1], reversed(sorted(map(lambda el : (el[1]['date'], el[0]), data.tags.items()))))

+ 4
- 0
gitstats.css 查看文件

@@ -41,6 +41,10 @@ table.noborders td {
41 41
 	clear: both;
42 42
 }
43 43
 
44
+table.tags td {
45
+	vertical-align: top;
46
+}
47
+
44 48
 th {
45 49
 	background-color: #ddf;
46 50
 }