mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Add public clone URLs to package details
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
74edb6fea9
commit
1dcdd3b3ea
3 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
$cgit_uri = config_get('options', 'cgit_uri');
|
||||
$git_clone_uri = config_get('options', 'git_clone_uri');
|
||||
|
||||
$uid = uid_from_sid($SID);
|
||||
|
||||
|
@ -157,6 +158,10 @@ $sources = pkg_sources($row["ID"]);
|
|||
</div>
|
||||
|
||||
<table id="pkginfo">
|
||||
<tr>
|
||||
<th><?= __('Git Clone URL') . ': ' ?></th>
|
||||
<td><?= sprintf($git_clone_uri, htmlspecialchars($row['BaseName'])) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Package Base') . ': ' ?></th>
|
||||
<td class="wrap"><a href="<?= htmlspecialchars(get_pkgbase_uri($row['BaseName']), ENT_QUOTES); ?>"><?= htmlspecialchars($row['BaseName']); ?></a></td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue