diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-17 00:17:48 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-17 00:17:48 +0100 |
| commit | ee59ba81602a209c2262846032d7e936cb2e8d1f (patch) | |
| tree | 054fdb7614f17fd658aca6655e49d315b57d1e19 /ui/src/components/node_list.rs | |
| parent | f8b6afd57efc1a9e7e12fe1316bc45dcc6f32470 (diff) | |
| download | jellything-ee59ba81602a209c2262846032d7e936cb2e8d1f.tar jellything-ee59ba81602a209c2262846032d7e936cb2e8d1f.tar.bz2 jellything-ee59ba81602a209c2262846032d7e936cb2e8d1f.tar.zst | |
node page
Diffstat (limited to 'ui/src/components/node_list.rs')
| -rw-r--r-- | ui/src/components/node_list.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/src/components/node_list.rs b/ui/src/components/node_list.rs index e69de29..c3571de 100644 --- a/ui/src/components/node_list.rs +++ b/ui/src/components/node_list.rs @@ -0,0 +1,16 @@ +/* + 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, components::node_card::NodeCard}; +use jellycommon::{jellyobject::Object, *}; + +markup::define! { + NodeList<'a>(ri: &'a RenderInfo<'a>, nl: Object<'a>) { + ul.nodelist { @for nku in nl.iter(NODELIST_ITEM) { + li { @NodeCard { ri, nku } } + }} + } +} |