diff options
Diffstat (limited to 'apps/servers/octopus/src/templ_data/files.rs')
-rw-r--r-- | apps/servers/octopus/src/templ_data/files.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/servers/octopus/src/templ_data/files.rs b/apps/servers/octopus/src/templ_data/files.rs new file mode 100644 index 000000000000..27a5bde99e5d --- /dev/null +++ b/apps/servers/octopus/src/templ_data/files.rs @@ -0,0 +1,13 @@ +//! File browser template data + +use super::BaseData; +use askama::Template; + +// This struct needs escapng=none to render README files it encounters along the way +#[derive(Template)] +#[template(path = "files.html", escape = "none")] +pub(crate) struct Files { + pub base: BaseData, + pub path: String, + pub readme: Option<String>, +} |