mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Show co-maintainers SSH clone URL on package base page
On package base pages, if a co-maintainer visits, only the read-only URL is displayed which is inconsistent with how the individual packages of a package base's pages displays them. This adds the SSH clone URL to the package base's page for co-maintainers to see. Implements FS#52675. Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
0b09f200c5
commit
1ed8471182
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ $base_uri = get_pkgbase_uri($row['Name']);
|
||||||
<th><?= __('Git Clone URL') . ': ' ?></th>
|
<th><?= __('Git Clone URL') . ': ' ?></th>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?= $git_clone_uri_anon ?>"><?= $git_clone_uri_anon ?></a> (<?= __('read-only') ?>)
|
<a href="<?= $git_clone_uri_anon ?>"><?= $git_clone_uri_anon ?></a> (<?= __('read-only') ?>)
|
||||||
<?php if ($uid == $row["MaintainerUID"]): ?>
|
<?php if (in_array($uid, $maintainers)): ?>
|
||||||
<br /> <a href="<?= $git_clone_uri_priv ?>"><?= $git_clone_uri_priv ?></a>
|
<br /> <a href="<?= $git_clone_uri_priv ?>"><?= $git_clone_uri_priv ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue