summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkg_search_form.php1
-rw-r--r--web/template/pkg_search_results.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php
index 74282506..b4b88bd3 100644
--- a/web/template/pkg_search_form.php
+++ b/web/template/pkg_search_form.php
@@ -21,6 +21,7 @@ $sortby = array(
'n' => __('Name'),
'c' => __('Category'),
'v' => __('Votes'),
+ 'p' => __('Popularity'),
'w' => __('Voted'),
'o' => __('Notify'),
'm' => __('Maintainer'),
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index 7ab3eb98..5289b78e 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -36,6 +36,7 @@ if (!$result): ?>
<th><a href="?<?= mkurl('SB=n&SO=' . $SO_next) ?>"><?= __("Name") ?></a></th>
<th><?= __("Version") ?></th>
<th><a href="?<?= mkurl('SB=v&SO=' . $SO_next) ?>"><?= __("Votes") ?></a></th>
+ <th><a href="?<?= mkurl('SB=p&SO=' . $SO_next) ?>"><?= __("Popularity") ?></a></th>
<?php if ($SID): ?>
<th><a href="?<?= mkurl('SB=w&SO=' . $SO_next) ?>"><?= __("Voted") ?></a></th>
<th><a href="?<?= mkurl('SB=o&SO=' . $SO_next) ?>"><?= __("Notify") ?></a></th>
@@ -55,6 +56,7 @@ if (!$result): ?>
<td><a href="<?= htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?= htmlspecialchars($row["Name"]) ?></a></td>
<td<?php if ($row["OutOfDateTS"]): ?> class="flagged"<?php endif; ?>><?= htmlspecialchars($row["Version"]) ?></td>
<td><?= $row["NumVotes"] ?></td>
+ <td><?= $row["Popularity"] ?></td>
<?php if ($SID): ?>
<td>
<?php if (isset($row["Voted"])): ?>