From 15ee85b456a4dd227d3c59f67bdef87f24efc391 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 11 Jun 2015 18:48:36 +0200 Subject: Show package popularity in search results Display the popularity score (weighted votes) in the package search results. Signed-off-by: Lukas Fleischer --- web/template/pkg_search_form.php | 1 + web/template/pkg_search_results.php | 2 ++ 2 files changed, 3 insertions(+) (limited to 'web/template') diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 7428250..b4b88bd 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 7ab3eb9..5289b78 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -36,6 +36,7 @@ if (!$result): ?> + @@ -55,6 +56,7 @@ if (!$result): ?> "> class="flagged"> + -- cgit v1.2.3-70-g09d2