Sha256: 069f34d23ab88b1bf94d1cc536494099f2982e6b926a170a30250061d7012a29

Contents?: true

Size: 1.54 KB

Versions: 7

Compression:

Stored size: 1.54 KB

Contents

<div class="bootsy-image dropdown col-md-2" data-id="<%= image.id %>">
  <%= link_to image_tag(image.image_file.thumb.url), '#', class: 'thumbnail',
    data: { toggle: 'dropdown' } %>

  <ul class="dropdown-menu" role="menu">
    <li role="presentation" class="dropdown-header"><%= t 'bootsy.image.size' %></li>

    <% Bootsy.image_versions_available.each do |size| %>
      <li role="presentation" class="dropdown dropdown-submenu">
        <%= link_to '#', tabindex: '-1', role: 'menuitem', data: { toggle: 'dropdown' } do %>
          <i class="icon-picture"></i>

          <%= t size, scope: 'bootsy.image' %>
        <% end %>

        <ul class="dropdown-menu" role="menu">
          <% [:left, :right, :inline].each do |position| %>
            <li role="presentation">
              <%= link_to '#', class: 'insert', tabindex: '-1', role: 'menuitem',
                data: { image_size: size.to_s, position: position.to_s} do %>
                <%= t position, scope: 'bootsy.image.position' %>
              <% end %>
            </li>
          <% end %>
        </ul>
      </li>
    <% end %>

    <% if Bootsy.allow_destroy %>
      <li role="presentation" class="divider"></li>

      <li role="presentation">
        <%= link_to image, method: :delete, remote: true,
          data: { confirm: t('bootsy.image.confirm.destroy'), type: 'json' },
          tabindex: '-1', role: 'menuitem', class: 'destroy-btn' do %>
          <i class="icon-trash"></i>

          <%= t('bootsy.action.destroy') %>
        <% end %>
      </li>
    <% end %>
  </ul>
</div>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
bootsy-rails3-2.0.5.1 app/views/bootsy/images/_image.html.erb
bootsy-2.0.5 app/views/bootsy/images/_image.html.erb
bootsy-2.0.4 app/views/bootsy/images/_image.html.erb
bootsy-2.0.3 app/views/bootsy/images/_image.html.erb
bootsy-2.0.2 app/views/bootsy/images/_image.html.erb
bootsy-2.0.1 app/views/bootsy/images/_image.html.erb
bootsy-2.0.0 app/views/bootsy/images/_image.html.erb