diff options
| author | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-10-31 08:16:47 -0500 |
|---|---|---|
| committer | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-10-31 08:16:47 -0500 |
| commit | e0bfd8bd4991c898d008b433977a922e843ab354 (patch) | |
| tree | 1aacbafd19cd8779520a259334a8e853141e706d /src/render.rs | |
| parent | fbb06ab09681079c01cc9b4eb13731ef17f4ab41 (diff) | |
Version site CSS and hide tooltip text before styles load
Diffstat (limited to 'src/render.rs')
| -rw-r--r-- | src/render.rs | 2 |
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; |
