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);
@ -108,6 +109,10 @@ $pkgs = pkgbase_get_pkgnames($base_id);
</div>
<table id="pkginfo">
<tr>
<th><?= __('Git Clone URL') . ': ' ?></th>
<td><?= sprintf($git_clone_uri, htmlspecialchars($row['Name'])) ?></td>
</tr>
<tr>
<th><?= __('Category') . ': ' ?></th>
<?php