aboutsummaryrefslogtreecommitdiff
path: root/ui/src/components/node_list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/node_list.rs')
-rw-r--r--ui/src/components/node_list.rs16
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 } }
+ }}
+ }
+}