bootsy 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,48 +0,0 @@
1
- <div class="modal-body">
2
- <% if gallery.images.count == 0 %>
3
- <p class='alert'><%= t 'bootsy.no_images_uploaded' %></p>
4
- <% end %>
5
-
6
- <ul class="thumbnails">
7
- <% gallery.images.each do |image| %>
8
- <li class="dropdown" data-id="<%= image.id %>">
9
- <%= link_to image_tag(image.image_file.thumb.url), '#', :class => 'thumbnail', data: { toggle: 'dropdown'} %>
10
- <ul class="dropdown-menu" role="menu">
11
- <li class="nav-header"><%= t 'bootsy.image.size' %></li>
12
- <% Bootsy.image_versions_available.each do |size| %>
13
- <li class="dropdown-submenu">
14
- <%= link_to '#' do %>
15
- <i class="icon-picture"></i>
16
- <%= t "bootsy.image.#{size}" %>
17
- <% end %>
18
- <ul class="dropdown-menu">
19
- <% [:left, :right, :inline].each do |position| %>
20
- <li>
21
- <%= link_to '#', :class => 'insert', tabindex: '-1', data: { :'image-size' => size.to_s, position: position.to_s} do %>
22
- <%= t "bootsy.image.position.#{position}" %>
23
- <% end %>
24
- </li>
25
- <% end %>
26
- </ul>
27
- </li>
28
- <% end %>
29
- <% if Bootsy.allow_destroy %>
30
- <li class="divider"></li>
31
- <li>
32
- <%= link_to image, method: :delete, remote: true, data: { confirm: t('bootsy.image.confirm.destroy')}, tabindex: '-1', :class => 'destroy_btn' do %>
33
- <i class="icon-trash"></i>
34
- <%= t('bootsy.action.destroy') %>
35
- <% end %>
36
- </li>
37
- <% end %>
38
- </ul>
39
- </li>
40
- <% end %>
41
- </ul>
42
-
43
- <%= refresh_btn %>
44
-
45
- </div>
46
- <div class="modal-footer">
47
- <%= render 'bootsy/images/new', {image: (defined?(image) && image.errors.any?) ? image : gallery.images.new } %>
48
- </div>
@@ -1,2 +0,0 @@
1
- Bootsy.areas[0].setImageGalleryId(<%= @gallery.id %>);
2
- Bootsy.areas[0].refreshGallery();
@@ -1 +0,0 @@
1
- Bootsy.areas[0].deleteImage(<%= @image.id %>);
File without changes