diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-06-06 13:34:42 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-12-27 12:42:12 +0100 |
commit | 1dcdd3b3ea519681af6b691792a3b81511a7a9d4 (patch) | |
tree | ff5b9c61181e04084f10c7d576dd16a9b58aaa6d /web/template | |
parent | 74edb6fea9d7e8434d8df00a8eb9dc9703daa19d (diff) | |
download | aur-1dcdd3b3ea519681af6b691792a3b81511a7a9d4.tar.gz aur-1dcdd3b3ea519681af6b691792a3b81511a7a9d4.tar.xz |
Add public clone URLs to package details
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_details.php | 5 | ||||
-rw-r--r-- | web/template/pkgbase_details.php | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index a94042c9..90360769 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -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); @@ -158,6 +159,10 @@ $sources = pkg_sources($row["ID"]); <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> </tr> diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php index 994c7bd6..3f8f4a5f 100644 --- a/web/template/pkgbase_details.php +++ b/web/template/pkgbase_details.php @@ -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); @@ -109,6 +110,10 @@ $pkgs = pkgbase_get_pkgnames($base_id); <table id="pkginfo"> <tr> + <th><?= __('Git Clone URL') . ': ' ?></th> + <td><?= sprintf($git_clone_uri, htmlspecialchars($row['Name'])) ?></td> + </tr> + <tr> <th><?= __('Category') . ': ' ?></th> <?php if (has_credential(CRED_PKGBASE_CHANGE_CATEGORY, array($row["MaintainerUID"]))): |