mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkgbase.php: Highlight error messages
Make sure that error messages above the package list are actually visible to the user. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
06b7099357
commit
64c4e51698
1 changed files with 7 additions and 2 deletions
|
@ -79,14 +79,15 @@ if (check_token()) {
|
|||
if ($merge_base_id) {
|
||||
list($ret, $output) = pkgbase_delete($atype, $ids, $merge_base_id, $via);
|
||||
unset($_GET['ID']);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$output = __("Cannot find package to merge votes and comments into.");
|
||||
$ret = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
$output = __("The selected packages have not been deleted, check the confirmation checkbox.");
|
||||
$ret = false;
|
||||
}
|
||||
} elseif (current_action("do_Notify")) {
|
||||
list($ret, $output) = pkgbase_notify($atype, $ids);
|
||||
|
@ -145,7 +146,11 @@ html_header($title, $details);
|
|||
?>
|
||||
|
||||
<?php if ($output): ?>
|
||||
<?php if ($ret): ?>
|
||||
<p class="pkgoutput"><?= $output ?></p>
|
||||
<?php else: ?>
|
||||
<ul class="errorlist"><li><?= $output ?></li></ul>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
|
Loading…
Add table
Reference in a new issue