diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-08 18:38:13 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-08 18:40:51 +0100 |
commit | 31083dc12dc0dee641169a4b6bc0648576f69ad0 (patch) | |
tree | 611316261f6c8ffce41b382cc21936686008cdd2 /web/template | |
parent | e3bde91f6d1df25f87b60b0f0a4875804d436b61 (diff) | |
download | aurweb-31083dc12dc0dee641169a4b6bc0648576f69ad0.tar.xz |
Show submitter in package details (fixes FS#15488).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_details.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index c1c3e96..16980a9 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&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> |