ecm_news2_backend 1.2.5 → 1.2.6

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: 98d749187a9a1f8c2ebe16a5bf463b9bf7f6faa3
4
- data.tar.gz: 13ec89b8b9064db84d466ef46c99f4e6bd92b273
3
+ metadata.gz: 638fb6f87fbbf953b2d33a5c5e446c455d1ee1f3
4
+ data.tar.gz: 26976188f14b9378090a2ad0b83ed2307d00e0a7
5
5
  SHA512:
6
- metadata.gz: e05af58e7e89bc5dad2fd9aa189a5896db4dea761f0e70f3af05279c6640371d7ec117426f5ca15225fd1bbf56c0bc278cce742f6fc9f6b49fc67ff6309e2d12
7
- data.tar.gz: 360898d7f0c2645e610bfae512b50609b8b67314d8b04ec62fa1e877b0fba7c104436f904a8804033b1a0925a4ba70b17054def78c28b83cf1ebd268b386c7cf
6
+ metadata.gz: c39340a924ca802b3a0949176eb6e80c7757e35f1ef2e5b0b221e5619945df97c1f9dfc7c52e5554d2091a3fca57d85de2c2ba8d18bdb8c4bd8c3e2c3dcaf3e1
7
+ data.tar.gz: 715df3a25cd9d62c1d96be9fc7515d2fb55b74449b5eedd56d9ddd705983a0b366a356e52d376953a5bacc15a70addfc0262309fc192b8086d3fa5f13ce34bd3
@@ -1,16 +1,23 @@
1
- class Ecm::News::Backend::ItemsController < Itsf::Backend::Resource::BaseController
2
- include Controller::FriendlyIdConcern
3
- include Controller::ActsAsPublishedConcern
1
+ module Ecm
2
+ module News
3
+ module Backend
4
+ class ItemsController < Itsf::Backend::Resource::BaseController
5
+ include ResourcesController::Sorting
6
+ include ResourcesController::FriendlyIdConcern
7
+ include ResourcesController::ActsAsPublishedConcern
4
8
 
5
- def self.resource_class
6
- Ecm::News::Item
7
- end
9
+ def self.resource_class
10
+ Ecm::News::Item
11
+ end
8
12
 
9
- private
13
+ private
10
14
 
11
- def permitted_params
12
- params
13
- .require(:item)
14
- .permit(:title, :locale, :body, :link_to_more, :published, pictures_attributes: [ :image, :_destroy, :id ])
15
+ def permitted_params
16
+ params
17
+ .require(:item)
18
+ .permit(:title, :locale, :body, :link_to_more, :published, pictures_attributes: [ :image, :_destroy, :id ])
19
+ end
20
+ end
21
+ end
15
22
  end
16
23
  end
@@ -1,8 +1,9 @@
1
1
  = table.column(:preview_picture) do |item|
2
- - if item.preview_picture.present?
3
- %img.img-responsive.bottom-margin-2{ src: item.preview_picture.image.url(:default_thumb), alt: item.preview_picture.description, title: item.preview_picture.description }
4
- = table.column :locale, sortable: true
5
- = table.column :title, sortable: true, class: 'truncate-chars truncate-chars-30'
6
- = table.column :body, sortable: true, class: 'truncate-chars truncate-chars-30'
7
- = table.timestamps
2
+ - capture_haml do
3
+ - if item.preview_picture.present?
4
+ %img.img-responsive.bottom-margin-2{ src: item.preview_picture.image.url(:default_thumb), alt: item.preview_picture.description, title: item.preview_picture.description }
5
+ = table.column :locale, sort: true
6
+ = table.column :title, sort: true, class: 'truncate-chars truncate-chars-30'
7
+ = table.column :body, sort: true, class: 'truncate-chars truncate-chars-30'
8
+ = table.timestamps sort: true
8
9
  = table.acts_as_published_actions
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module News
3
3
  module Backend
4
- VERSION = '1.2.5'.freeze
4
+ VERSION = '1.2.6'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_news2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
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: 2017-07-23 00:00:00.000000000 Z
11
+ date: 2018-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails