Sha256: 6156773f2d6a8ce80da78267b889305bdf2d54a4a79cff54b92d3dca4fd6fcbb

Contents?: true

Size: 1.64 KB

Versions: 14

Compression:

Stored size: 1.64 KB

Contents

<% if @custom_tools_alert_visible %>
  <div class="w-full inset-auto bottom-0 z-50 mb-4 opacity-75 hover:opacity-100 transition-opacity duration-150">
    <a href="https://avohq.io/pricing" target="_blank" class="rounded bg-orange-700 text-white py-2 px-4 text-sm block items-center flex leading-tight">
      <%= svg "avo/exclamation", class: "h-6 inline mr-2 text-bold flex-shrink-0 mr-1" %> Warning. <%= @custom_tools_alert_visible %> This page will not be visible in a production environment.
    </a>
  </div>
<% end %>
<% if Avo.error_manager.has_errors?.present? %>
  <% Avo.error_manager.all.each do |error| %>
    <% if error.is_a? Hash %>
      <%
        url, message, target = error.values_at :url, :message, :target
      %>
      <div class="w-full inset-auto bottom-0 z-50 mb-4 opacity-75 hover:opacity-100 transition-opacity duration-150">
        <a href="<%= url %>" target="<%= target %>" class="rounded bg-orange-700 text-white py-2 px-4 text-sm items-center flex leading-tight space-x-2">
          <%= svg "avo/exclamation", class: "h-6 inline mr-2 text-bold flex-shrink-0 mr-1" %>
          <div>
            <%= simple_format message %>
          </div>
        </a>
      </div>
    <% elsif error.is_a? String %>
      <div class="w-full inset-auto bottom-0 z-50 mb-4 opacity-75 hover:opacity-100 transition-opacity duration-150">
        <div class="rounded bg-orange-700 text-white py-2 px-4 text-sm items-center flex leading-tight space-x-2">
          <%= svg "avo/exclamation", class: "h-6 inline mr-2 text-bold flex-shrink-0 mr-1" %>
          <div><%= simple_format error %></div>
        </div>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
avo-3.10.7 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.10.6 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.10.5 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.10.4 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.10.3 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.10.2 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.10.1 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.10.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.9.2 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.9.1 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.8.2 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.9.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.8.1 app/views/avo/partials/_custom_tools_alert.html.erb
avo-3.8.0 app/views/avo/partials/_custom_tools_alert.html.erb