Sha256: 7ead196111809ca9ffaad3a38a65c51e454e1b8186cf55fe17839251e078a1da

Contents?: true

Size: 915 Bytes

Versions: 142

Compression:

Stored size: 915 Bytes

Contents

<% object ||= current_attributes_object %>
<% strategy ||= current_attributes_strategy || :none %>
<% url ||= nil %>

<%= render 'shared/attributes/attribute', attribute: attribute, strategy: strategy, url: url do %>
  <span class="inline-block">
    <% if object.send(success_method) %>
      <i class="fal fa-check ti ti-check text-green-500"></i>
    <% elsif object.send(attempting_method) %>
      <style>
        <% if font_awesome? %>
          @keyframes spinner { 100% { transform:rotate(360deg); } };
        <% else %>
          @keyframes spinner { 100% { transform:rotate(-360deg); } };
        <% end %>
      </style>
      <span class="inline-block" style="animation: spinner 4s linear infinite;">
        <i class="fal fa-sync ti ti-reload"></i>
      </span>
    <% elsif object.send(failure_method) %>
      <i class="fal fa-close ti ti-close text-red-500"></i>
    <% end %>
  </span>
<% end %>

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
bullet_train-themes-tailwind_css-1.10.0 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.9.0 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.8.5 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.8.4 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.8.3 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.8.2 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.8.1 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.8.0 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.23 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.22 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.21 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.20 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.19 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.18 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.17 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.16 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.15 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.14 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.13 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.7.12 app/views/themes/tailwind_css/attributes/_attempt.html.erb