Skip to content

Commit

Permalink
Move system-status percentage outside of status bar (#3964)
Browse files Browse the repository at this point in the history
move percentage outside of status bar so that it looks better.
  • Loading branch information
ashton22305 authored Nov 18, 2024
1 parent 4f7a643 commit bf4ca93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/dashboard/app/views/system_status/index.turbo_stream.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@

<% components_status(job_adapter).each do |current_status| %>
<div class="container py-2">
<div><%= current_status[:message] %></div>
<span><%= current_status[:message] %></span>

<% if valid_percent?(current_status[:percent]) %>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: <%= current_status[:percent] %>"><%= current_status[:percent] %> in use</div>
<div class="progress-bar w-<%= current_status[:percent].to_i %>" role="progressbar"></div>
</div>
<span class="text-muted"><%= current_status[:percent] %> in use</span>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit bf4ca93

Please sign in to comment.