Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/templates/summary.m4
diff options
context:
space:
mode:
Diffstat (limited to 'templates/summary.m4')
-rw-r--r--templates/summary.m430
1 files changed, 22 insertions, 8 deletions
diff --git a/templates/summary.m4 b/templates/summary.m4
index 23c3b1c..8eb2845 100644
--- a/templates/summary.m4
+++ b/templates/summary.m4
@@ -1,17 +1,31 @@
+m4_include(stdlib.m4)
m4_include(header.m4)
m4_include(footer.m4)
_HEADER(`Archlinux32 Consistency Checker',`anb-stats')
-<h2>Statistics</h2>
+m4_define(`_STATISTICS',`Statistics')
+m4_define(`_DUPLICATES_STATE_REPO',`Duplicate States in State Repo')
+
+<h1>Table of Contents</h1>
+<ul>
+ <li>_LINK_TO_LABEL(_STATISTICS)</li>
+ <li>_LINK_TO_LABEL(_DUPLICATES_STATE_REPO)</li>
+</ul>
+
+_SECTION_HEADER(h2,_STATISTICS)
Generated on m4_esyscmd(date)
-<pre>
-m4_esyscmd(cat ../data/stats)
-</pre>
-<h2>Duplicate States in State Repo</h2>
-<pre>
-m4_esyscmd(cat ../data/duplicates)
-</pre>
+
+_TABLE_START()
+_TABLE_HEADER(what,packages)
+m4_esyscmd(`../scripts/tsv2tablerow ../data/stats')
+_TABLE_END()
+
+_SECTION_HEADER(h2,_DUPLICATES_STATE_REPO)
+_TABLE_START()
+_TABLE_HEADER(repository,package,version,tag,git)
+m4_esyscmd(`../scripts/tsv2tablerow ../data/duplicates')
+_TABLE_END()
_FOOTER()