summaryrefslogtreecommitdiffstats
path: root/web/template/pkgbase_details.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-07-21 14:50:25 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-08-08 12:59:24 +0200
commite610360c95682bbaa359e1bf3d3abffb97a9820b (patch)
tree6c0e6ee403469154fdb742b6ee3a2fe21766c5b9 /web/template/pkgbase_details.php
parent8db2ff5da679b3c2d5a53f67f67863d786057f36 (diff)
downloadaur-e610360c95682bbaa359e1bf3d3abffb97a9820b.tar.gz
aur-e610360c95682bbaa359e1bf3d3abffb97a9820b.tar.xz
Show popularity in package base details
Fixes FS#45600. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template/pkgbase_details.php')
-rw-r--r--web/template/pkgbase_details.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php
index 667b3f77..d4304e3e 100644
--- a/web/template/pkgbase_details.php
+++ b/web/template/pkgbase_details.php
@@ -24,6 +24,7 @@ if ($row["MaintainerUID"] !== NULL) {
}
$votes = $row['NumVotes'];
+$popularity = $row['Popularity'];
# In case of wanting to put a custom message
$msg = __('unknown');
@@ -105,6 +106,10 @@ endif;
<?php endif; ?>
</tr>
<tr>
+ <th><?= __('Popularity') . ': ' ?></th>
+ <td><?= number_format($popularity, 6) ?></td>
+ </tr>
+ <tr>
<th><?= __('First Submitted') . ': ' ?></th>
<td><?= $submitted_time ?></td>
</tr>