diff options
Diffstat (limited to 'web/_views/template/toast.php')
-rw-r--r-- | web/_views/template/toast.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/web/_views/template/toast.php b/web/_views/template/toast.php new file mode 100644 index 0000000..1f74602 --- /dev/null +++ b/web/_views/template/toast.php @@ -0,0 +1,19 @@ +<?php /* Copyright (c) 2024 Freya Murphy */ ?> +<?php /* vi: syntax=php */ ?> +<?php + $params = array(); + + if ($detail) { + array_push($params, lang('api_column_' . $detail)); + } + + if ($hint) { + array_push($params, $hint); + } + + $msg = lang($msg, sub: $params); +?> +<div class="toast error"> + <?=ucfirst($msg)?> + <?=ilang('action_close', class: 'action-close-toast')?> +</div> |