mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01: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
|
@ -19,6 +19,7 @@ max_filesize_uncompressed = 8388608
|
|||
disable_http_login = 1
|
||||
aur_location = http://localhost
|
||||
cgit_uri = https://git.aur.archlinux.org/
|
||||
git_clone_uri = git://git.aur.archlinux.org/pub/git/%s.git/
|
||||
max_rpc_results = 5000
|
||||
aur_request_ml = aur-requests@archlinux.org
|
||||
request_idle_time = 1209600
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue