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.14.3 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.14.2 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.14.1 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.14.0 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.7 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.6 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.5 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.4 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.3 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.2 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.1 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.13.0 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.12.0 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.11.10 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.11.9 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.11.8 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.11.7 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.11.6 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.11.5 app/components/avo/fields/common/status_viewer_component.html.erb
avo-3.11.4 app/components/avo/fields/common/status_viewer_component.html.erb