ecm_news2 5.1.0 → 5.2.0

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: d4a809de0c9cea31e1673e342d6bb24f5ba9841e
4
- data.tar.gz: af8ac5e0402bca6ba6686aa025fae53f465317bf
3
+ metadata.gz: 9abc4c20ba1d6efad9dfa3b16180e69e28c047f4
4
+ data.tar.gz: 6429c32db4ff58af32263814e4d5fee1a1719d12
5
5
  SHA512:
6
- metadata.gz: 0ff980868dd49381df64e4b7e497796dc18984fe33afa0fa6419d8d8184e24b1b61e921162a01805ba9a49a9cd175fb8a714cbdf4212bad412c5a03bcb509d8a
7
- data.tar.gz: 1072c3e13ad31047b87bd30e8a9d74ff402cfd72d6f9c467cedce7b83c2a6c37c3cbf4fdd31e8677e7cf7063dec8e28c1aa9f492d3d930c65ae20057c0ad4cfa
6
+ metadata.gz: f9a730bc25ad8130d22f967a7325ce3f9bbf40ad4ffd2391b6490ad3b80dad5087763f0236c36fd9e0037d3b003ae086516cd6ac3f7ed9cb25928ebe9b7b4971
7
+ data.tar.gz: ee49995f2685dd3489fe47747155c98d4444784cf7e98f71eecdbef06c067900cae34a5b956d0d040cc608d40eae24972907d4f58b7bd2c1f8d2bceac785ae0f
@@ -0,0 +1,4 @@
1
+ .responsive-media.ecm-news-item img.responsive-media-object {
2
+ max-width: 100%;
3
+ max-height: 100%;
4
+ }
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require_tree ./ecm/news/application
3
+ */
@@ -0,0 +1,2 @@
1
+ .col-lg-12
2
+ = link_to(t('ecm.news.item.actions.all'), ecm_news.items_path, :class => 'btn btn-default list-link')
@@ -1,4 +1,4 @@
1
- = bootstrap_responsive_media_object(image_options: { src: item.preview_picture_image_url(:media_object) }) do
1
+ = bootstrap_responsive_media_object(image_options: { src: item.preview_picture_image_url(:media_object) }, additional_div_container_classes: item.class.name.underscore.gsub('/', '-')) do
2
2
  %h4= item.title
3
3
  .truncate.lines-3
4
4
  = mu(item, :body)
@@ -1,4 +1,4 @@
1
- = bootstrap_responsive_media_object(image_options: { src: item.preview_picture_image_url(:media_object) }) do
1
+ = bootstrap_responsive_media_object(image_options: { src: item.preview_picture_image_url(:media_object) }, additional_div_container_classes: item.class.name.underscore.gsub('/', '-')) do
2
2
  %h4= item.title
3
3
  .news-body.truncate.lines-3.bottom-margin-1
4
4
  = mu(item, :body)
@@ -4,11 +4,10 @@
4
4
  .col-lg-12
5
5
  %h1= t('.title')
6
6
 
7
- .col-lg-12
8
- - @items.each_with_index do |item, index|
9
- = render partial: 'item_in_list', locals: { item: item, index: (index + 1) }
7
+ - @items.each_with_index do |item, index|
8
+ = render partial: 'item_in_list', locals: { item: item, index: (index + 1) }
10
9
 
11
- .col-lg-12
10
+ .col-lg-12.text-center
12
11
  = paginate @items, theme: 'twitter-bootstrap-3'
13
12
 
14
13
  .col-lg-12
@@ -3,7 +3,7 @@
3
3
  = render @item
4
4
  .row
5
5
  .col-lg-12
6
- .page-actions
6
+ .well.page-actions
7
7
  = bootstrap_button_group do
8
8
  = bootstrap_button(to: :back, context: :default) do
9
9
  = t('.back')
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.precompile += %w( ecm_news.css )
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = '5.1.0'.freeze
3
+ VERSION = '5.2.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_news2
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
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: 2018-03-25 00:00:00.000000000 Z
11
+ date: 2018-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 0.6.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 0.6.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rails-dummy
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -314,18 +314,21 @@ files:
314
314
  - MIT-LICENSE
315
315
  - README.rdoc
316
316
  - Rakefile
317
+ - app/assets/stylesheets/ecm/news/application/media_object_responsive.css
318
+ - app/assets/stylesheets/ecm_news.css
317
319
  - app/controllers/ecm/news/items_controller.rb
318
320
  - app/helpers/ecm/news_helper.rb
319
321
  - app/helpers/markup_helper.rb
320
322
  - app/models/ecm/news/item.rb
321
323
  - app/policies/ecm/news/backend/engine_policy.rb
322
324
  - app/policies/ecm/news/item_policy.rb
323
- - app/views/ecm/news/_render_news_footer.html.erb
325
+ - app/views/ecm/news/_render_news_footer.haml
324
326
  - app/views/ecm/news/items/_item.haml
325
327
  - app/views/ecm/news/items/_item_for_render_news.haml
326
328
  - app/views/ecm/news/items/_item_in_list.haml
327
329
  - app/views/ecm/news/items/index.haml
328
330
  - app/views/ecm/news/items/show.haml
331
+ - config/initializers/assets.rb
329
332
  - config/locales/de.yml
330
333
  - config/locales/en.yml
331
334
  - config/routes.rb
@@ -1,2 +0,0 @@
1
- <%= link_to(t('ecm.news.item.actions.all'), ecm_news.items_path, :class => 'btn btn-default list-link') %>
2
-