This commit is contained in:
+8
-8
@@ -37,8 +37,8 @@ pub fn login_page(error: Option<&str>, invite: Option<&str>) -> Markup {
|
||||
button id="passkey-login" class="button button-secondary" type="button" { "Sign in with a passkey" }
|
||||
p class="auth-switch" { "Need an account? " a href="/register" { "Create one" } }
|
||||
}
|
||||
script src="/static/password-toggle.js" {}
|
||||
script src="/static/passkey-login.js" {}
|
||||
script src=(crate::assets::url("password-toggle.js")) {}
|
||||
script src=(crate::assets::url("passkey-login.js")) {}
|
||||
},
|
||||
)
|
||||
}
|
||||
@@ -72,7 +72,7 @@ pub fn register_page(error: Option<&str>, invite: Option<&str>) -> Markup {
|
||||
}
|
||||
p class="auth-switch" { "Already have an account? " a href="/login" { "Sign in" } }
|
||||
}
|
||||
script src="/static/password-toggle.js" {}
|
||||
script src=(crate::assets::url("password-toggle.js")) {}
|
||||
},
|
||||
)
|
||||
}
|
||||
@@ -164,8 +164,8 @@ pub fn account_page(
|
||||
}
|
||||
}
|
||||
}
|
||||
script src="/static/password-toggle.js" {}
|
||||
script src="/static/passkey-register.js" {}
|
||||
script src=(crate::assets::url("password-toggle.js")) {}
|
||||
script src=(crate::assets::url("passkey-register.js")) {}
|
||||
},
|
||||
)
|
||||
}
|
||||
@@ -1308,9 +1308,9 @@ fn page(title: &str, user: Option<&User>, content: Markup) -> Markup {
|
||||
meta charset="utf-8";
|
||||
meta name="viewport" content="width=device-width, initial-scale=1";
|
||||
title { (title) " · Sustenance" }
|
||||
link rel="stylesheet" href="/static/style.css";
|
||||
script src="https://unpkg.com/htmx.org@2.0.10" {}
|
||||
script src="https://unpkg.com/htmx-ext-ws@2.0.4/ws.js" {}
|
||||
link rel="stylesheet" href=(crate::assets::url("style.css"));
|
||||
script src=(crate::assets::url("htmx.min.js")) {}
|
||||
script src=(crate::assets::url("htmx-ws.min.js")) {}
|
||||
}
|
||||
body hx-boost="true" {
|
||||
header class="site-header" {
|
||||
|
||||
Reference in New Issue
Block a user