Sha256: 537393bced06c0b0c38c75bfc91f582f56647fdd597d35b92b223256c9d2ea1b

Contents?: true

Size: 907 Bytes

Versions: 11

Compression:

Stored size: 907 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"></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"></i>
    <% end %>
  </span>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bullet_train-themes-tailwind_css-1.0.10 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.9 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.8 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.7 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.6 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.5 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.4 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.3 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.2 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.1 app/views/themes/tailwind_css/attributes/_attempt.html.erb
bullet_train-themes-tailwind_css-1.0.0 app/views/themes/tailwind_css/attributes/_attempt.html.erb