Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
aurweb
Commits
e610360c
Commit
e610360c
authored
Jul 21, 2015
by
Lukas Fleischer
Browse files
Show popularity in package base details
Fixes FS#45600. Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
8db2ff5d
Changes
4
Hide whitespace changes
Inline
Side-by-side
web/lib/pkgbasefuncs.inc.php
View file @
e610360c
...
...
@@ -140,7 +140,7 @@ function pkgbase_get_details($base_id) {
$dbh
=
DB
::
connect
();
$q
=
"SELECT PackageBases.ID, PackageBases.Name, "
;
$q
.
=
"PackageBases.NumVotes, "
;
$q
.
=
"PackageBases.NumVotes,
PackageBases.Popularity,
"
;
$q
.
=
"PackageBases.OutOfDateTS, PackageBases.SubmittedTS, "
;
$q
.
=
"PackageBases.ModifiedTS, PackageBases.SubmitterUID, "
;
$q
.
=
"PackageBases.MaintainerUID, PackageBases.PackagerUID, "
;
...
...
web/lib/pkgfuncs.inc.php
View file @
e610360c
...
...
@@ -431,8 +431,8 @@ function pkg_get_details($id=0) {
$dbh
=
DB
::
connect
();
$q
=
"SELECT Packages.*, PackageBases.ID AS BaseID, "
;
$q
.
=
"PackageBases.Name AS BaseName, "
;
$q
.
=
"PackageBases.
NumVotes
, PackageBases.OutOfDateTS, "
;
$q
.
=
"PackageBases.Name AS BaseName,
PackageBases.NumVotes,
"
;
$q
.
=
"PackageBases.
Popularity
, PackageBases.OutOfDateTS, "
;
$q
.
=
"PackageBases.SubmittedTS, PackageBases.ModifiedTS, "
;
$q
.
=
"PackageBases.SubmitterUID, PackageBases.MaintainerUID, "
;
$q
.
=
"PackageBases.PackagerUID, "
;
...
...
web/template/pkg_details.php
View file @
e610360c
...
...
@@ -25,6 +25,7 @@ if ($row["MaintainerUID"] !== NULL) {
}
$votes
=
$row
[
'NumVotes'
];
$popularity
=
$row
[
'Popularity'
];
# In case of wanting to put a custom message
$msg
=
__
(
'unknown'
);
...
...
@@ -253,6 +254,10 @@ endif;
<td>
<?=
$votes
?>
</td>
<?php
endif
;
?>
</tr>
<tr>
<th>
<?=
__
(
'Popularity'
)
.
': '
?>
</th>
<td>
<?=
number_format
(
$popularity
,
6
)
?>
</td>
</tr>
<tr>
<th>
<?=
__
(
'First Submitted'
)
.
': '
?>
</th>
<td>
<?=
$submitted_time
?>
</td>
...
...
web/template/pkgbase_details.php
View file @
e610360c
...
...
@@ -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'
);
...
...
@@ -104,6 +105,10 @@ endif;
<td>
<?=
$votes
?>
</td>
<?php
endif
;
?>
</tr>
<tr>
<th>
<?=
__
(
'Popularity'
)
.
': '
?>
</th>
<td>
<?=
number_format
(
$popularity
,
6
)
?>
</td>
</tr>
<tr>
<th>
<?=
__
(
'First Submitted'
)
.
': '
?>
</th>
<td>
<?=
$submitted_time
?>
</td>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment