diff --git a/assets/page.erb b/assets/page.erb
index e1d290c..d780855 100644
--- a/assets/page.erb
+++ b/assets/page.erb
@@ -123,10 +123,17 @@
background: #166534;
}
- .logout-form {
+ .header-controls {
position: fixed;
top: 1rem;
right: 1rem;
+ display: flex;
+ align-items: center;
+ gap: 1rem;
+ }
+
+ .logout-form {
+ margin: 0;
}
.logout-btn {
@@ -380,10 +387,13 @@
<% if authenticated %>
-
+
<% end %>
@@ -400,6 +410,11 @@
})
.then(function(html) {
document.getElementById("content").innerHTML = html;
+ var now = new Date();
+ var pad = function(n) { return String(n).padStart(2, "0"); };
+ var stamp = now.getFullYear() + "-" + pad(now.getMonth() + 1) + "-" + pad(now.getDate()) +
+ " " + pad(now.getHours()) + ":" + pad(now.getMinutes());
+ document.getElementById("last-updated").textContent = "Updated: " + stamp;
})
.catch(function() {
document.getElementById("content").innerHTML = "Error";