Commit 1dcdd3b3 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Add public clone URLs to package details



Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 74edb6fe
......@@ -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
......
<?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>
......
<?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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment