carrierwave_gallery 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 659c4daef7fbac3e5e6abc07c1028967cb620113
4
- data.tar.gz: f366451e4a34b512645cac9dbc37a594a5e3347d
3
+ metadata.gz: aa01a7417972f85f4a1f4bbd5bb827c4e4250559
4
+ data.tar.gz: 6fee9ee401482696414a955f27aa5610f4ce0af9
5
5
  SHA512:
6
- metadata.gz: 4ba4ea4116e757f1bd88bc8d4deebaf5aa2676163b47078f0139ce89e89708f8abeef42f9fcfda5a6c995c816459664d1f7dee5b8b16e0efb0287b03a043fcc5
7
- data.tar.gz: d512490925af91acea933d3f478c701d4593882c94a06dcb637220049b6864f4338a8d7c956c4f2e6b25f284c91e3d24d2fadde762524c27a034ecaccf4920e9
6
+ metadata.gz: cfc689e818e949fb54bb68e63eb19e2d53f8d6bcf4f53633227aedce06b5a64541eb964f2e0707303917804cb010b0b7fc27b1029a5cf533820aff59b487db7c
7
+ data.tar.gz: 7f48fa4078eefca664c80513b0fc103762b356a50e00be53334ebe5c42f33b06d8992456cff636ee61fd69540d49fe0123408f4b4151de441720ad67ff93c1a3
@@ -8,14 +8,14 @@
8
8
  <% if @gallery.images.any? %>
9
9
  <% @gallery.images.each do |image| %>
10
10
  <div class="col-lg-3 image ajaxed">
11
- <%= content_for :image_actions do %>
12
- <li class="actions">
11
+ <div class="thumbnail">
12
+ <%= render image %>
13
+
14
+ <div class="actions">
13
15
  <%= link_to 'Изменить', edit_admin_gallery_image_path(@gallery, image), :class => 'btn btn-default btn-xs' %>
14
16
  <%= link_to 'Удалить', admin_gallery_image_path(@gallery, image), :method => :delete, :class => 'btn btn-danger btn-xs js-delete', :remote => true %>
15
- </li>
16
- <% end %>
17
-
18
- <%= render image %>
17
+ </div>
18
+ </div>
19
19
  </div>
20
20
  <% end %>
21
21
  <% else %>
@@ -1,16 +1,13 @@
1
- <div class="thumbnail">
2
- <%= image_tag image.file.thumb.url %>
3
- <ul class="info">
4
- <li class="truncated">
5
- <strong>Название:</strong> <%= image.title? ? image.title : 'не задано' %>
6
- </li>
7
- <li class="truncated">
8
- <strong>ALT-тег:</strong> <%= image.alt? ? image.alt : 'не задано' %>
9
- </li>
10
- <li class="truncated">
11
- <strong>Описание:</strong> <%= image.description? ? image.description : 'не задано' %>
12
- </li>
13
- <%= yield :image_actions %>
14
- </ul>
15
- </div>
1
+ <%= image_tag image.file.thumb.url %>
16
2
 
3
+ <ul class="info">
4
+ <li class="truncated">
5
+ <strong>Название:</strong> <%= image.title? ? image.title : 'не задано' %>
6
+ </li>
7
+ <li class="truncated">
8
+ <strong>ALT-тег:</strong> <%= image.alt? ? image.alt : 'не задано' %>
9
+ </li>
10
+ <li class="truncated">
11
+ <strong>Описание:</strong> <%= image.description? ? image.description : 'не задано' %>
12
+ </li>
13
+ </ul>
@@ -17,7 +17,9 @@
17
17
  </div>
18
18
 
19
19
  <div class="col-lg-3">
20
- <%= render @image %>
20
+ <div class="thumbnail">
21
+ <%= render @image %>
22
+ </div>
21
23
  </div>
22
24
  </div>
23
25
 
@@ -1,3 +1,3 @@
1
1
  module CarrierwaveGallery
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave_gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tab