ecm_pictures2 1.0.2 → 1.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: 887ea98642e734bb9fc5d48fcaa288f7dc8259be
4
- data.tar.gz: bf809ef7289221349aa8d460b7cac1f794c50708
3
+ metadata.gz: 32c4230bdfdbbaf2deae688c3460f689a2cb4b24
4
+ data.tar.gz: 484358eda8d61f03afb19efcd8e5d0295d49610f
5
5
  SHA512:
6
- metadata.gz: b03b026d97fb4d9405892d9eb57ccd07870b471456a455249362c23a6a30403292458e01e08f226530d41fa3866d5e5e2f1d36554c34805bd03514ea82fe1984
7
- data.tar.gz: 67a5f039aa91b569a0517c5bab32313bfa1ff1d4ab8908c29a0e48de9ea594b1c36d7f40fd0c2a4c659cc5bfe09bed9b66724c28077217f18410d8d9fc0de834
6
+ metadata.gz: fc5cd96e2b88fd93aafa1e540b4be4c32ae2b06d3ec396fd74421bc9588ffd5d4cdf5185818890cd8bdf6fdd79c31d2833c3f973b5b1111f8eaf787e5932c910
7
+ data.tar.gz: d28dbd78fc8122d4d1b7c17f680d4e4f02438d1bc7d78a90f875423f0c8a6f3235aedf5dd3078982a49f375758b81679cfb54b1688e9f906894121ce10e5a33c
@@ -1,17 +1,12 @@
1
- <li class="<%= Ecm::Pictures::Configuration.picture_gallery_preview_li_css_classes %>">
2
- <div class="<%= Ecm::Pictures::Configuration.picture_gallery_preview_div_css_classes %>" id="picture-gallery-<%= picture_gallery.id %>">
1
+ <div class="col-sm-6 col-md-3">
2
+ <div class="thumbnail">
3
3
  <% if picture_gallery.pictures.first.respond_to?(:image) %>
4
- <div class="picture-image">
5
- <%= image_tag picture_gallery.pictures.first.image.url(:default_thumb) %>
6
- </div>
4
+ <%= image_tag picture_gallery.pictures.first.image.url(:default_thumb) %>
7
5
  <% end %>
8
6
  <div class="caption">
9
7
  <h3><%= picture_gallery.name %></h3>
10
- <div class="description"><%= mu(picture_gallery, :description) %></div>
11
- </div>
12
- <div class="controls">
13
- <%= link_to t('ecm.pictures.actions.view'), picture_gallery, :class => 'btn btn-primary' %>
14
- <span class="pull-right small picture-count"><%= Ecm::Pictures::PictureGallery.human_attribute_name(:pictures) %>: <%= picture_gallery.pictures_count %></span>
8
+ <div class="truncate lines-3 bottom-margin-1"><%= mu(picture_gallery, :description) %></div>
9
+ <p><%= link_to t('ecm.pictures.actions.view'), picture_gallery, :class => 'btn btn-primary', :role => 'button' %></p>
15
10
  </div>
16
11
  </div>
17
- </li>
12
+ </div>
@@ -2,6 +2,6 @@
2
2
 
3
3
  <div class="row">
4
4
  <% @picture_galleries.each do |pg| %>
5
- <%= render :partial => 'ecm/pictures/picture_galleries/picture_gallery_for_index2', :locals => { :picture_gallery => pg } %>
5
+ <%= render :partial => 'ecm/pictures/picture_galleries/picture_gallery_for_index', :locals => { :picture_gallery => pg } %>
6
6
  <% end %>
7
7
  </div>
@@ -1,6 +1,6 @@
1
1
  module Ecm
2
2
  module Pictures
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_pictures2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -375,7 +375,6 @@ files:
375
375
  - app/models/ecm/pictures/picture_gallery.rb
376
376
  - app/views/ecm/pictures/picture_galleries/_picture_gallery.html.erb
377
377
  - app/views/ecm/pictures/picture_galleries/_picture_gallery_for_index.html.erb
378
- - app/views/ecm/pictures/picture_galleries/_picture_gallery_for_index2.html.erb
379
378
  - app/views/ecm/pictures/picture_galleries/index.html.erb
380
379
  - app/views/ecm/pictures/picture_galleries/show.html.erb
381
380
  - app/views/ecm/pictures/pictures/_picture.html.erb
@@ -1,12 +0,0 @@
1
- <div class="col-sm-6 col-md-3">
2
- <div class="thumbnail">
3
- <% if picture_gallery.pictures.first.respond_to?(:image) %>
4
- <%= image_tag picture_gallery.pictures.first.image.url(:default_thumb) %>
5
- <% end %>
6
- <div class="caption">
7
- <h3><%= picture_gallery.name %></h3>
8
- <p><%= mu(picture_gallery, :description) %></p>
9
- <p><%= link_to t('ecm.pictures.actions.view'), picture_gallery, :class => 'btn btn-primary', :role => 'button' %></p>
10
- </div>
11
- </div>
12
- </div>