feat: enable automatic reloading every 30s

This commit is contained in:
insects 2025-03-11 00:19:20 +01:00
parent 859abe4923
commit b03df8f0e4

View file

@ -1,7 +1,9 @@
<header>
<img src="/icon.png" width="50" alt="eureka.coffee logo" />
<h1><span class="muted">instance</span> <%= @instance.name %></h1>
<%= render partial: "zone_img", locals: { zone: @instance.zone, alt: @instance.zone, title: @instance.zone.upcase_first } %>
</header>
<div hx-get="" hx-trigger="every 30s" hx-swap="innerHTML" hx-target="this">
<header>
<img src="/icon.png" width="50" alt="eureka.coffee logo" />
<h1><span class="muted">instance</span> <%= @instance.name %></h1>
<%= render partial: "zone_img", locals: { zone: @instance.zone, alt: @instance.zone, title: @instance.zone.upcase_first } %>
</header>
<%= render partial: "list", locals: { instance: @instance } %>
<%= render partial: "list", locals: { instance: @instance } %>
</div>