Sha256: 13250c82b693a861eb0830a3eee92cd844c76fb2df27a53a63b29e72f11482dd

Contents?: true

Size: 795 Bytes

Versions: 107

Compression:

Stored size: 795 Bytes

Contents

<%
  classes = "inline-block"
  classes += " text-red-600" if @status == 'failed'
  classes += " text-green-600" if @status == 'success'
  classes += " text-gray-600" if @status == 'neutral'
%>
<div class="flex flex-shrink-0 <%= classes %> items-center">
  <% if @status == 'success' %>
    <%= helpers.svg 'heroicons/solid/check-circle', class: 'h-4' %>
  <% elsif @status == 'failed' %>
    <%= helpers.svg 'heroicons/solid/x-circle', class: 'h-4' %>
  <% elsif @status == 'neutral' %>
    <%= helpers.svg 'heroicons/solid/minus-circle', class: 'h-4' %>
  <% elsif @status == 'loading' %>
    <div class="spinner">
      <div class="double-bounce1 bg-gray-600"></div>
      <div class="double-bounce2 bg-gray-800"></div>
    </div>
  <% end %>
  <span class="ml-1"><%= @label %></span>
</div>

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
avo-3.0.1.beta12 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.1.beta13 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.1.beta10 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.1.beta11 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.0.pre19 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.1.beta8 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.1.beta9 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.1.beta6 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.0.1.beta7 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.2.2 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.2.1 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.2.0 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.7 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.6 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.5 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.4 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.3 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.2 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.1 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.1.0 app/components/avo/fields/common/status_viewer_component.html.erb