Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-20 12:21:02 +0200
committerErich Eckner <git@eckner.net>2018-04-20 12:21:02 +0200
commit38e0d8c61f1912467e0fcfd4a58a321998386e86 (patch)
tree7c57edd6737ef564eae3f713d946fc15c3f79d8c /packages
parent2c4b1340fad8a5f053de3607f32ca4414869c84e (diff)
packages/index.php: generate all table headers dynamically
Diffstat (limited to 'packages')
-rw-r--r--packages/index.php13
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>