mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Maintainer and Category only link if logged in
This commit is contained in:
parent
e8f1659b87
commit
b93010dd83
1 changed files with 8 additions and 4 deletions
|
@ -296,7 +296,7 @@ function package_details($id=0, $SID="") {
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print "<tr>\n";
|
print "<tr>\n";
|
||||||
print " <td colspan='2'><span class='f3'>";
|
print " <td colspan='2'><span class='f3'>";
|
||||||
if ($row["Location"] == "unsupported") {
|
if ($row["Location"] == "unsupported" and $SID) {
|
||||||
$edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
|
$edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
|
||||||
$edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
|
$edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
|
||||||
$edit_cat .= " <span class='fix'>(";
|
$edit_cat .= " <span class='fix'>(";
|
||||||
|
@ -311,9 +311,13 @@ function package_details($id=0, $SID="") {
|
||||||
print " <td colspan='2'><span class='f3'>".__("Maintainer").": ";
|
print " <td colspan='2'><span class='f3'>".__("Maintainer").": ";
|
||||||
if ($row["MaintainerUID"]) {
|
if ($row["MaintainerUID"]) {
|
||||||
$maintainer = username_from_id($row["MaintainerUID"]);
|
$maintainer = username_from_id($row["MaintainerUID"]);
|
||||||
print "<a href='/account.php?Action=AccountInfo&ID=";
|
if ($SID) {
|
||||||
print $row["MaintainerUID"] . "'>";
|
print "<a href='/account.php?Action=AccountInfo&ID=";
|
||||||
print $maintainer . "</a></span></td>";
|
print $row["MaintainerUID"] . "'>";
|
||||||
|
print $maintainer . "</a></span></td>";
|
||||||
|
} else {
|
||||||
|
print $maintainer . "</span></td>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$maintainer = "None";
|
$maintainer = "None";
|
||||||
print $maintainer . "</span></td>";
|
print $maintainer . "</span></td>";
|
||||||
|
|
Loading…
Add table
Reference in a new issue