feat: 收口 Rust Web 3000 主链
This commit is contained in:
@@ -99,9 +99,13 @@ fn render_filetree_row(
|
||||
create_action_html = create_action_html,
|
||||
title = escape_html(&row.title),
|
||||
));
|
||||
if row.expandable && row.expanded {
|
||||
if row.expandable {
|
||||
if let Some(children) = children_by_parent.get(&Some(row.node_id.clone())) {
|
||||
html.push_str(r#"<ul class="tree-children">"#);
|
||||
html.push_str(if row.expanded {
|
||||
r#"<ul class="tree-children">"#
|
||||
} else {
|
||||
r#"<ul class="tree-children tree-children--collapsed">"#
|
||||
});
|
||||
for child in children {
|
||||
render_filetree_row(html, child, children_by_parent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user