hash statics
This commit is contained in:
parent
a45bf45015
commit
d925573629
12 changed files with 139 additions and 1464 deletions
|
|
@ -6,6 +6,7 @@ use axum::{
|
|||
routing::{delete, get, post, put},
|
||||
};
|
||||
use axum_extra::extract::Form;
|
||||
use cache_bust::asset;
|
||||
use chrono::DateTime;
|
||||
use maud::{Markup, PreEscaped, html};
|
||||
use serde::Deserialize;
|
||||
|
|
@ -100,7 +101,7 @@ mod get {
|
|||
.text_body;
|
||||
|
||||
Ok(layout.render(
|
||||
Some(vec!["/static/contact.css", "/static/journal.css"]),
|
||||
Some(vec![asset!("contact.css"), asset!("journal.css")]),
|
||||
html! {
|
||||
a href=(format!("/contact/{}/edit", contact_id)) { "Edit" }
|
||||
|
||||
|
|
@ -210,7 +211,7 @@ mod get {
|
|||
.text_body
|
||||
.unwrap_or(String::new());
|
||||
|
||||
Ok(layout.render(Some(vec!["/static/contact.css"]), html! {
|
||||
Ok(layout.render(Some(vec![asset!("contact.css")]), html! {
|
||||
form hx-ext="response-targets" {
|
||||
div {
|
||||
input type="button" value="Save" hx-put=(cid_url) hx-target-error="#error";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue