summaryrefslogtreecommitdiff
path: root/app/views/layouts/admin.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-01 02:39:59 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-01 02:39:59 +0200
commit6df48c1413a14516e7ee8919f33fbc13f0141966 (patch)
treed81df761eb6607a6f4508241c043375e9860679d /app/views/layouts/admin.html.erb
parentf6c1f0f08f031778a491465d35ac694bfcdc12b0 (diff)
Show and extend the elevation window
A banner appears while elevated, counting down in minutes and carrying extend and drop controls. Three extensions of 30 minutes are allowed, so the window is at most two hours without a fresh code; a code resets the budget. The countdown is advisory, the server-side check authoritative, so it says "expired" rather than vanishing. The post-login flash tells an admin the timer has started.
Diffstat (limited to 'app/views/layouts/admin.html.erb')
-rw-r--r--app/views/layouts/admin.html.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index 43f09b96..a84c8927 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -43,6 +43,7 @@
43 </div> 43 </div>
44 </div> 44 </div>
45 <div class="admin_content_spacer"></div> 45 <div class="admin_content_spacer"></div>
46 <%= render "layouts/elevation_banner" %>
46 <%= render "layouts/flash" %> 47 <%= render "layouts/flash" %>
47 <div id="content"> 48 <div id="content">
48 <%= yield %> 49 <%= yield %>