blob: b4499edf2053c50b125ad620d54814b6fc34f602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/*
This file is part of jellything (https://codeberg.org/metamuffin/jellything)
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2026 metamuffin <metamuffin.org>
*/
use crate::RenderInfo;
use markup::define;
define! {
Message<'a>(ri: &'a RenderInfo<'a>, kind: &'a str, text: &'a str) {
@let _ = ri;
@match *kind {
"success" => { section.message { p.success { @text } } }
"error" => { section.message { p.error { @text } } }
"neutral" | _ => { section.message { p { @text } } }
}
}
}
|