1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-15 07:22:33 +00:00

Rename admin templates to match email

This commit is contained in:
Daniel García 2019-01-19 22:59:32 +01:00
commit 6cbb683f99
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
5 changed files with 6 additions and 6 deletions

View file

@ -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)
}
}