Sha256: f85d23234b24b4396d8908e3861d163eb61111e9ab272a85932d9a33e275325f

Contents?: true

Size: 1.22 KB

Versions: 40

Compression:

Stored size: 1.22 KB

Contents

<%= turbo_frame_wrap(params[:turbo_frame]) do %>
  <%
  classes = 'absolute inset-auto left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2'
  label = t 'avo.failed_to_load'
%>
  <div class="relative flex-1 py-12">
    <div class="relative block text-gray-300 h-40 w-full">
      <%= svg 'avocado', class: "#{classes} h-20 text-gray-400" %>
      <%= svg 'code', class: "#{classes} h-8 -ml-20 -mt-12" %>
      <%= svg 'fire', class: "#{classes} h-8 -ml-10 -mt-24" %>
      <%= svg 'color-swatch', class: "#{classes} h-8 ml-8 -mt-24" %>
      <%= svg 'globe', class: "#{classes} h-8 ml-20 -mt-12" %>
      <%= svg 'library', class: "#{classes} h-8 -ml-20 mt-4" %>
      <%= svg 'photograph', class: "#{classes} h-8 ml-20 mt-4" %>
    </div>
    <div class="relative block text-center text-lg text-gray-400 font-semibold -mt-10"><%= label %> <span class="border-b-2 border-dashed"><%= params[:turbo_frame].to_s.humanize.downcase if params[:turbo_frame].present? %></span> frame</div>
  </div>
  <% if Rails.env.development? %>
    <div class="text-center text-sm w-full">
      This is not an issue with Avo. Click <%= link_to 'this link', params[:src], target: :_blank %> to see why this frame failed to load.
    </div>
  <% end %>
<% end %>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
avo-2.9.2.pre1 app/views/avo/home/failed_to_load.html.erb
avo-2.9.1.pre7 app/views/avo/home/failed_to_load.html.erb
avo-2.9.1.pre6 app/views/avo/home/failed_to_load.html.erb
avo-2.9.1.pre5 app/views/avo/home/failed_to_load.html.erb
avo-2.9.1.pre4 app/views/avo/home/failed_to_load.html.erb
avo-2.9.1.pre3 app/views/avo/home/failed_to_load.html.erb
avo-2.9.1.pre2 app/views/avo/home/failed_to_load.html.erb
avo-2.9.1.pre1 app/views/avo/home/failed_to_load.html.erb
avo-2.9.0 app/views/avo/home/failed_to_load.html.erb
avo-2.8.0 app/views/avo/home/failed_to_load.html.erb
avo-2.7.1.pre.1 app/views/avo/home/failed_to_load.html.erb
avo-2.7.0 app/views/avo/home/failed_to_load.html.erb
avo-2.6.1.pre.2 app/views/avo/home/failed_to_load.html.erb
avo-2.6.1.pre.1 app/views/avo/home/failed_to_load.html.erb
avo-2.6.0 app/views/avo/home/failed_to_load.html.erb
avo-2.5.2.pre.7 app/views/avo/home/failed_to_load.html.erb
avo-2.5.2.pre.6 app/views/avo/home/failed_to_load.html.erb
avo-2.5.2.pre.5 app/views/avo/home/failed_to_load.html.erb
avo-2.5.2.pre.4 app/views/avo/home/failed_to_load.html.erb
avo-2.5.2.pre.3 app/views/avo/home/failed_to_load.html.erb