diff options
Diffstat (limited to 'ui/src')
| -rw-r--r-- | ui/src/components/admin.rs | 8 | ||||
| -rw-r--r-- | ui/src/components/mod.rs | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ui/src/components/admin.rs b/ui/src/components/admin.rs index 831c746..e617ce3 100644 --- a/ui/src/components/admin.rs +++ b/ui/src/components/admin.rs @@ -6,9 +6,9 @@ use crate::RenderInfo; use jellycommon::{ - ADMIN_IMPORT_BUSY, ADMIN_IMPORT_ERROR, jellyobject::Object, routes::{u_admin_import, u_admin_import_post, u_admin_log}, + *, }; use jellyui_locale::tr; @@ -49,4 +49,10 @@ markup::define!( } } + AdminInfo<'a>(ri: &'a RenderInfo<'a>, data: Object<'a>) { + @let _ = ri; + h2 { @data.get(ADMIN_INFO_TITLE) } + pre { @data.get(ADMIN_INFO_TEXT) } + } + ); diff --git a/ui/src/components/mod.rs b/ui/src/components/mod.rs index 027dae8..b63fa44 100644 --- a/ui/src/components/mod.rs +++ b/ui/src/components/mod.rs @@ -16,7 +16,7 @@ pub mod stats; use crate::{ RenderInfo, components::{ - admin::{AdminDashboard, AdminImport}, + admin::{AdminDashboard, AdminImport, AdminInfo}, login::{AccountLogin, AccountLogout, AccountSetPassword}, message::Message, node_list::NodeList, @@ -52,5 +52,8 @@ define! { @if let Some(data) = view.get(VIEW_ADMIN_IMPORT) { @AdminImport { ri, data } } + @if let Some(data) = view.get(VIEW_ADMIN_INFO) { + @AdminInfo { ri, data } + } } } |