Add public clone URLs to package details

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-06-06 13:34:42 +02:00
parent 74edb6fea9
commit 1dcdd3b3ea
3 changed files with 11 additions and 0 deletions

View file

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