Sha256: ca8fb4b5f764a053774bb4c8fdbac7ee13ec306a727216ce539e61f5333d599f

Contents?: true

Size: 1.01 KB

Versions: 21

Compression:

Stored size: 1.01 KB

Contents

<%= render Avo::TurboFrameWrapperComponent.new(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'
  src_url = params[:src].present? && !params[:src].starts_with?('http://') ? params.permit(:src).fetch(:src) : nil
%>
  <div class="relative flex-1 py-4">
    <div class="relative block text-gray-300 h-64 w-full">
      <%= svg "avo/failed_to_load", class: "#{classes} h-52 text-gray-400" %>
    </div>
    <div class="relative block text-center text-lg text-gray-400 font-semibold pb-6"><%= label %> <span class="border-b-2 border-dashed"><%= params[:turbo_frame].to_s.humanize.downcase if params[:turbo_frame].present? %></span> frame</div>
    <% if Rails.env.development? && src_url %>
      <div class="text-center text-sm w-full pb-3">
        This is not an issue with Avo. Use <%= link_to 'this page', src_url, target: :_blank %> to see why this frame failed to load.
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
avo-3.11.3 app/views/avo/home/failed_to_load.html.erb
avo-3.11.2 app/views/avo/home/failed_to_load.html.erb
avo-3.11.1 app/views/avo/home/failed_to_load.html.erb
avo-3.11.0 app/views/avo/home/failed_to_load.html.erb
avo-3.10.10 app/views/avo/home/failed_to_load.html.erb
avo-3.10.9 app/views/avo/home/failed_to_load.html.erb
avo-3.10.8 app/views/avo/home/failed_to_load.html.erb
avo-3.10.7 app/views/avo/home/failed_to_load.html.erb
avo-3.10.6 app/views/avo/home/failed_to_load.html.erb
avo-3.10.5 app/views/avo/home/failed_to_load.html.erb
avo-3.10.4 app/views/avo/home/failed_to_load.html.erb
avo-3.10.3 app/views/avo/home/failed_to_load.html.erb
avo-3.10.2 app/views/avo/home/failed_to_load.html.erb
avo-3.10.1 app/views/avo/home/failed_to_load.html.erb
avo-3.10.0 app/views/avo/home/failed_to_load.html.erb
avo-3.9.2 app/views/avo/home/failed_to_load.html.erb
avo-3.9.1 app/views/avo/home/failed_to_load.html.erb
avo-3.8.2 app/views/avo/home/failed_to_load.html.erb
avo-3.9.0 app/views/avo/home/failed_to_load.html.erb
avo-3.8.1 app/views/avo/home/failed_to_load.html.erb