Skip to content
Snippets Groups Projects
Unverified Commit 6cbb683f authored by Daniel García's avatar Daniel García
Browse files

Rename admin templates to match email

parent 92bbb98d
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ impl AdminTemplateData { ...@@ -35,7 +35,7 @@ impl AdminTemplateData {
fn login(error: Option<String>) -> Self { fn login(error: Option<String>) -> Self {
Self { Self {
users: Vec::new(), users: Vec::new(),
page_content: String::from("admin/admin_login"), page_content: String::from("admin/login"),
error, error,
} }
} }
...@@ -43,13 +43,13 @@ impl AdminTemplateData { ...@@ -43,13 +43,13 @@ impl AdminTemplateData {
fn admin(users: Vec<Value>) -> Self { fn admin(users: Vec<Value>) -> Self {
Self { Self {
users, users,
page_content: String::from("admin/admin_page"), page_content: String::from("admin/page"),
error: None, error: None,
} }
} }
fn render(self) -> Result<String, Error> { fn render(self) -> Result<String, Error> {
CONFIG.templates.render("admin/admin_base", &self).map_err(Into::into) CONFIG.templates.render("admin/base", &self).map_err(Into::into)
} }
} }
......
...@@ -352,9 +352,9 @@ fn load_templates(path: String) -> Handlebars { ...@@ -352,9 +352,9 @@ fn load_templates(path: String) -> Handlebars {
reg!("email/pw_hint_some"); reg!("email/pw_hint_some");
reg!("email/send_org_invite"); reg!("email/send_org_invite");
reg!("admin/admin_base"); reg!("admin/base");
reg!("admin/admin_login"); reg!("admin/login");
reg!("admin/admin_page"); reg!("admin/page");
// And then load user templates to overwrite the defaults // And then load user templates to overwrite the defaults
// Use .hbs extension for the files // Use .hbs extension for the files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment