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:
Mark Weiman 2017-01-23 00:18:22 -05:00 committed by Lukas Fleischer
parent 0b09f200c5
commit 1ed8471182

View file

@ -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>