diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2016-02-18 08:33:12 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2016-02-19 18:18:48 +0100 |
commit | fb56ec9d1e4c814f76e6c84174151376092b96dc (patch) | |
tree | 600d7f1b81c3566dec9989618fece284bb62df6d /web/template/pkgreq_form.php | |
parent | 1626d4d2f7a854ae39df31ccde9105b59197d16d (diff) | |
download | aurweb-fb56ec9d1e4c814f76e6c84174151376092b96dc.tar.xz |
Hide orphan request option for disowned package bases
If a package base is unmaintained, there is no need to file an orphan
request. Hide the option from the front-end in this case.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template/pkgreq_form.php')
-rw-r--r-- | web/template/pkgreq_form.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/pkgreq_form.php b/web/template/pkgreq_form.php index 5bd2bfe..4fd7851 100644 --- a/web/template/pkgreq_form.php +++ b/web/template/pkgreq_form.php @@ -19,7 +19,9 @@ <select name="type" id="id_type" onchange="showHideMergeSection()"> <option value="deletion"><?= __('Deletion') ?></option> <option value="merge"><?= __('Merge') ?></option> + <?php if (pkgbase_maintainer_uid($base_id)): ?> <option value="orphan"><?= __('Orphan') ?></option> + <?php endif; ?> </select> </p> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> |