forked from TheSimpleAIProject/SimpleAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.rs
More file actions
23 lines (22 loc) · 845 Bytes
/
project.rs
File metadata and controls
23 lines (22 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use super::utils::*;
use super::{breadcrumbs::Breadcrumbs, window_decorations::WindowDecorations};
use chrono::{DateTime, Utc};
#[item]
pub fn Project(name: String, date: DateTime<Utc>, desc: String) -> Element {
rsx! {
div {
section { class: "infos",
h3 { class: "name", {name} }
// p { class: "date", {date.naive_local().date().to_string()} }
br { class: "spacer" }
p { class: "desc", {desc} }
}
div { class: "divider" }
section { class: "actions",
Link { to: Route::ProjectNav {}, class: "open", FolderOpenIcon {} }
Link { to: Route::Edit {}, class: "edit", SettingsIcon {} }
Link { to: Route::Editor {}, class: "delete", TrashIcon {} }
}
}
}
}