summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDoan Luu Duc Tai <doan@luuduct.ai>2026-10-31 08:16:47 -0500
committerDoan Luu Duc Tai <doan@luuduct.ai>2026-10-31 08:16:47 -0500
commite0bfd8bd4991c898d008b433977a922e843ab354 (patch)
tree1aacbafd19cd8779520a259334a8e853141e706d /src
parentfbb06ab09681079c01cc9b4eb13731ef17f4ab41 (diff)
Version site CSS and hide tooltip text before styles load
Diffstat (limited to 'src')
-rw-r--r--src/render.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render.rs b/src/render.rs
index 5171753..dea7e28 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -98,6 +98,8 @@ mod tests {
assert!(!caddy.contains("do-not-publish"));
let homepage = fs::read_to_string(output.join("web/index.html"))?;
assert!(homepage.contains("https://git.example.net:8443"));
+ let stylesheet = files::hash_file(&root.path().join("web/styles.css"))?;
+ assert!(homepage.contains(&format!("/styles.css?v={stylesheet}")));
assert!(homepage.contains("https://chat.doan.luuduct.ai:8443/LIMITATIONS.txt"));
settings.mode = Mode::Local;
settings.port = 8180;