Sha256: 761c3892b55566329823e2875a39f4f3fa6676599f8372a854f0d8c815297963

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

<% thumbnail = Headmin::ThumbnailView.new(local_assigns) %>

<div class="<%= thumbnail.class_names %>" style="width: <%= thumbnail.width %>px; height: <%= thumbnail.height %>px;">
  <% if thumbnail.image? %>
    <div class="h-thumbnail-bg" style="background-image: url('<%= thumbnail.src %>');"></div>
  <% else %>
    <div class="h-thumbnail-bg">
      <%= bootstrap_icon(thumbnail.icon_name, class: 'h-thumbnail-icon') %>
    </div>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
headmin-0.5.2 app/views/headmin/_thumbnail.html.erb
headmin-0.5.1 app/views/headmin/_thumbnail.html.erb
headmin-0.5.0 app/views/headmin/_thumbnail.html.erb
headmin-0.4.2 app/views/headmin/_thumbnail.html.erb
headmin-0.4.1 app/views/headmin/_thumbnail.html.erb
headmin-0.4.0 app/views/headmin/_thumbnail.html.erb