Sha256: c0c1946b430be62c9f6a53b681463a435f868e1e90731a2e63b11beb8970c56d

Contents?: true

Size: 711 Bytes

Versions: 2

Compression:

Stored size: 711 Bytes

Contents

<% if @args[:url] %>
  <a
    href="<%= @args[:url] %>"
    class="elements-preview <%= @args[:class] %>"
    onclick="<%= @args[:onclick] %>"
    data-media-id="<%= @args[:media].id %>"
    <% if @args[:remote] %>
      data-remote="true"
    <% end %>
  >
<% else %>
  <div
    class="elements-preview <%= @args[:class] %>"
    onclick="<%= @args[:onclick] %>"
    data-media-id="<%= @args[:media].id %>"
  >
<% end %>

  <% if @args[:media].exists? %>
    <% if @args[:media].image? %>
      <%= render './image.html' %>
    <% else %>
      <%= render './general.html' %>
    <% end %>
  <% else %>
    <%= render './not_found.html' %>
  <% end %>

<% if @args[:url] %>
  </a>
<% else %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lato_media-2.1.2 app/cells/lato_media/elements/preview/views/show.html.erb
lato_media-2.1 app/cells/lato_media/elements/preview/views/show.html.erb