Sha256: 946f0bccfacd180d833ca63bc476d6bc4bee9910848612a7399eb9e02e996b0e

Contents?: true

Size: 1.62 KB

Versions: 153

Compression:

Stored size: 1.62 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 "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::App.error_messages.present? %>
  <% Avo::App.error_messages.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 "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 "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

153 entries across 153 versions & 1 rubygems

Version Path
avo-2.53.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.52.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.49.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.48.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.47.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.46.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.45.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.44.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.43.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.42.2 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.42.1 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.42.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.41.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.40.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.39.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.38.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.37.2 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.37.1 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.37.0 app/views/avo/partials/_custom_tools_alert.html.erb
avo-2.36.3 app/views/avo/partials/_custom_tools_alert.html.erb