mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Add a packager field to packages
Store the last packager in addition to storing the submitter and the maintainer of a package. This allows for checking who last updated a package, even if the package has been disowned. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
0e368510f4
commit
a93363ac08
6 changed files with 56 additions and 9 deletions
|
@ -9,6 +9,7 @@ $catarr = pkgbase_categories();
|
|||
|
||||
$submitter = username_from_id($row["SubmitterUID"]);
|
||||
$maintainer = username_from_id($row["MaintainerUID"]);
|
||||
$packager = username_from_id($row["PackagerUID"]);
|
||||
|
||||
$votes = $row['NumVotes'];
|
||||
|
||||
|
@ -286,6 +287,24 @@ if ($row["MaintainerUID"]):
|
|||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<td><?= __('None') ?></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Last Packager') .': ' ?></th>
|
||||
<?php
|
||||
if ($row["PackagerUID"]):
|
||||
if ($SID):
|
||||
if (!$USE_VIRTUAL_URLS):
|
||||
?>
|
||||
<td><a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['PackagerUID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($packager) ?>"><?= htmlspecialchars($packager) ?></a></td>
|
||||
<?php else: ?>
|
||||
<td><a href="<?= get_uri('/account/') . htmlspecialchars($packager, ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($packager)) ?>"><?= htmlspecialchars($packager) ?></a></td>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<td><?= htmlspecialchars($packager) ?></td>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<td><?= __('None') ?></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue