bootsy 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -14
- data/app/assets/images/bootsy/gallery-loader.gif +0 -0
- data/app/assets/images/bootsy/{ajax-loader.gif → upload-loader.gif} +0 -0
- data/app/assets/javascripts/bootsy/bootstrap-wysihtml5.js +59 -51
- data/app/assets/javascripts/bootsy/bootstrap.file-input.js +1 -1
- data/app/assets/javascripts/bootsy/bootsy.js +242 -185
- data/app/assets/javascripts/bootsy/editor_options.js +4 -4
- data/app/assets/javascripts/bootsy/init.js +4 -1
- data/app/assets/javascripts/bootsy/locales/bootsy.pt-BR.js +3 -2
- data/app/assets/javascripts/bootsy/translations.js +1 -1
- data/app/assets/stylesheets/bootsy/bootstrap-submenu.css +47 -0
- data/app/assets/stylesheets/bootsy/bootsy.css +20 -31
- data/app/controllers/bootsy/images_controller.rb +23 -9
- data/app/helpers/bootsy/application_helper.rb +1 -1
- data/app/views/bootsy/images/_image.html.erb +43 -0
- data/app/views/bootsy/images/_modal.html.erb +25 -10
- data/app/views/bootsy/images/_new.html.erb +4 -12
- data/lib/bootsy.rb +9 -1
- data/lib/bootsy/form_helper.rb +10 -10
- data/lib/bootsy/version.rb +1 -1
- metadata +13 -14
- data/app/views/bootsy/images/_index.html.erb +0 -48
- data/app/views/bootsy/images/create.js.erb +0 -2
- data/app/views/bootsy/images/destroy.js.erb +0 -1
- data/config/bootsy.yml +0 -0
@@ -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 +0,0 @@
|
|
1
|
-
Bootsy.areas[0].deleteImage(<%= @image.id %>);
|
data/config/bootsy.yml
DELETED
File without changes
|