diff options
author | Erich Eckner <git@eckner.net> | 2018-04-20 12:21:02 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-20 12:21:02 +0200 |
commit | 38e0d8c61f1912467e0fcfd4a58a321998386e86 (patch) | |
tree | 7c57edd6737ef564eae3f713d946fc15c3f79d8c | |
parent | 2c4b1340fad8a5f053de3607f32ca4414869c84e (diff) | |
download | archweb32-38e0d8c61f1912467e0fcfd4a58a321998386e86.tar.xz |
packages/index.php: generate all table headers dynamically
-rw-r--r-- | packages/index.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/index.php b/packages/index.php index e0f3a3b..09a9b6e 100644 --- a/packages/index.php +++ b/packages/index.php @@ -353,11 +353,14 @@ if (count($exact_matches) > 0) { <table class="results"> <thead> <tr> - <th>Arch</th> - <th>Repo</th> - <th>Name</th> - <th>Version</th> - <th>Bugs</th> +<?php + + foreach ($sorts as $get => $sort) { + print " <th>\n"; + print " ".$sort["label"]."\n"; + print " </th>\n"; + } +?> </tr> </thead> <tbody> |