summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-02-08 18:38:13 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-02-08 18:40:51 +0100
commit31083dc12dc0dee641169a4b6bc0648576f69ad0 (patch)
tree611316261f6c8ffce41b382cc21936686008cdd2 /web
parente3bde91f6d1df25f87b60b0f0a4875804d436b61 (diff)
downloadaur-31083dc12dc0dee641169a4b6bc0648576f69ad0.tar.gz
aur-31083dc12dc0dee641169a4b6bc0648576f69ad0.tar.xz
Show submitter in package details (fixes FS#15488).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkg_details.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index c1c3e96f..16980a9d 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -24,6 +24,16 @@ else {
$edit_cat = "Category: ".$row['Category'];
}
+if ($row["SubmitterUID"]) {
+ $submitter = username_from_id($row["SubmitterUID"]);
+ if ($SID) {
+ $submitter = '<a href="account.php?Action=AccountInfo&amp;ID=' . $row['SubmitterUID'] . '">' . $submitter . '</a>';
+ }
+
+} else {
+ $submitter = "None";
+}
+
if ($row["MaintainerUID"]) {
$maintainer = username_from_id($row["MaintainerUID"]);
if ($SID) {
@@ -61,6 +71,7 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row[
<p>
<span class='f3'><?php echo $edit_cat ?></span><br />
+ <span class='f3'><?php echo __('Submitter') .': ' . $submitter ?></span><br />
<span class='f3'><?php echo __('Maintainer') .': ' . $maintainer ?></span><br />
<span class='f3'><?php echo $votes ?></span>
</p>