mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-23 03:12:36 +01:00
Rename admin templates to match email
This commit is contained in:
parent
92bbb98d48
commit
6cbb683f99
@ -35,7 +35,7 @@ impl AdminTemplateData {
|
||||
fn login(error: Option<String>) -> Self {
|
||||
Self {
|
||||
users: Vec::new(),
|
||||
page_content: String::from("admin/admin_login"),
|
||||
page_content: String::from("admin/login"),
|
||||
error,
|
||||
}
|
||||
}
|
||||
@ -43,13 +43,13 @@ impl AdminTemplateData {
|
||||
fn admin(users: Vec<Value>) -> Self {
|
||||
Self {
|
||||
users,
|
||||
page_content: String::from("admin/admin_page"),
|
||||
page_content: String::from("admin/page"),
|
||||
error: None,
|
||||
}
|
||||
}
|
||||
|
||||
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 {
|
||||
reg!("email/pw_hint_some");
|
||||
reg!("email/send_org_invite");
|
||||
|
||||
reg!("admin/admin_base");
|
||||
reg!("admin/admin_login");
|
||||
reg!("admin/admin_page");
|
||||
reg!("admin/base");
|
||||
reg!("admin/login");
|
||||
reg!("admin/page");
|
||||
|
||||
// And then load user templates to overwrite the defaults
|
||||
// Use .hbs extension for the files
|
||||
|
Loading…
Reference in New Issue
Block a user