23 lines
995 B
Text
23 lines
995 B
Text
<div id="public_id" data-content="<%= @instance.public_id %>"></div>
|
|
<div hx-get="" hx-trigger="every 30s" hx-swap="innerHTML" hx-select="#nm-list" hx-target="#nm-list">
|
|
<header>
|
|
<%= link_to root_path do %><img src="/icon.png" width="50" alt="eureka.coffee logo" /><% end %>
|
|
<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 } %>
|
|
<div class="needs_pwd">
|
|
password: <span id="password">???</span>
|
|
</div>
|
|
<div class="no_pwd">
|
|
<%= form_with url: authenticate_to_instance_path do |form| %>
|
|
<%= form.text_field :password, placeholder: "enter password..." %>
|
|
<%= form.hidden_field :instance, value: @instance.public_id %>
|
|
<%= form.submit "submit" %>
|
|
<% end %>
|
|
</div>
|
|
</header>
|
|
|
|
<%= render partial: "list", locals: { instance: @instance } %>
|
|
|
|
<%= javascript_include_tag "list" %>
|
|
</div>
|
|
|