Skip to content

Commit

Permalink
Adjust device show page
Browse files Browse the repository at this point in the history
  • Loading branch information
nshoes committed Dec 5, 2024
1 parent 69dd4dc commit 775cc5f
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions lib/nerves_hub_web/live/deployments/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -38,34 +38,6 @@

<div class="divider"></div>

<div>
<h3 class="mb-2">Device Matching Conditions</h3>
<div class="display-box">
<div class="x2-grid">
<div class="gc-span-2">
<div class="row">
<div class="col-lg-6 mb-1">
<div class="help-text mb-1">Distributed to</div>
<%= if Enum.count(tags(@deployment)) > 0 do %>
<%= for tag <- tags(@deployment) do %>
<span class="badge">
<%= tag %>
</span>
<% end %>
<% else %>
<p class="text-muted">No tags selected, not being distributed</p>
<% end %>
</div>
<div class="col-lg-6 mb-1">
<div class="help-text mb-1">Version requirement</div>
<p><%= version(@deployment) %></p>
</div>
</div>
</div>
</div>
</div>
</div>

<div>
<h3 class="mb-2">Deployment Details</h3>
<div class="display-box">
Expand Down Expand Up @@ -170,6 +142,34 @@
</div>
</div>

<div>
<h3 class="mb-2">Device Matching Conditions</h3>
<div class="display-box">
<div class="x2-grid">
<div class="gc-span-2">
<div class="row">
<div class="col-lg-6 mb-1">
<div class="help-text mb-1">Distributed to</div>
<%= if Enum.count(tags(@deployment)) > 0 do %>
<%= for tag <- tags(@deployment) do %>
<span class="badge">
<%= tag %>
</span>
<% end %>
<% else %>
<p class="text-muted">No tags selected, not being distributed</p>
<% end %>
</div>
<div class="col-lg-6 mb-1">
<div class="help-text mb-1">Version requirement</div>
<p><%= version(@deployment) %></p>
</div>
</div>
</div>
</div>
</div>
</div>

<div>
<h3 id="inflight-updates" class="mb-2">Inflight Updates</h3>

Expand Down

0 comments on commit 775cc5f

Please sign in to comment.