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
c64b51f2
Commit
c64b51f2
authored
Oct 17, 2014
by
Lukas Fleischer
Browse files
voters.php: Show time stamps if available
Signed-off-by:
Lukas Fleischer
<
archlinux@cryptocrack.de
>
parent
e9ebcc44
Changes
2
Hide whitespace changes
Inline
Side-by-side
web/html/voters.php
View file @
c64b51f2
...
...
@@ -17,7 +17,12 @@ if (has_credential(CRED_PKGBASE_LIST_VOTERS)):
<div
class=
"boxbody"
>
<ul>
<?php
while
(
list
(
$indx
,
$row
)
=
each
(
$votes
))
:
?>
<li><a
href=
"
<?=
get_user_uri
(
$row
[
'Username'
]);
?>
"
>
<?=
htmlspecialchars
(
$row
[
'Username'
])
?>
</a></li>
<li>
<a
href=
"
<?=
get_user_uri
(
$row
[
'Username'
]);
?>
"
>
<?=
htmlspecialchars
(
$row
[
'Username'
])
?>
</a>
<?php
if
(
$row
[
"VoteTS"
]
>
0
)
:
?>
(
<?=
gmdate
(
"Y-m-d H:i"
,
intval
(
$row
[
"VoteTS"
]))
?>
)
<?php
endif
;
?>
</li>
<?php
endwhile
;
?>
</ul>
</div>
...
...
web/lib/pkgbasefuncs.inc.php
View file @
c64b51f2
...
...
@@ -712,7 +712,7 @@ function pkgbase_vote ($base_ids, $action=true) {
function
pkgbase_votes_from_name
(
$pkgbase_name
)
{
$dbh
=
DB
::
connect
();
$q
=
"SELECT UsersID, Username, Name FROM PackageVotes "
;
$q
=
"SELECT UsersID, Username, Name
, VoteTS
FROM PackageVotes "
;
$q
.
=
"LEFT JOIN Users ON UsersID = Users.ID "
;
$q
.
=
"LEFT JOIN PackageBases "
;
$q
.
=
"ON PackageVotes.PackageBaseID = PackageBases.ID "
;
...
...
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