ecm_news2_backend 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 638fb6f87fbbf953b2d33a5c5e446c455d1ee1f3
|
4
|
+
data.tar.gz: 26976188f14b9378090a2ad0b83ed2307d00e0a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c39340a924ca802b3a0949176eb6e80c7757e35f1ef2e5b0b221e5619945df97c1f9dfc7c52e5554d2091a3fca57d85de2c2ba8d18bdb8c4bd8c3e2c3dcaf3e1
|
7
|
+
data.tar.gz: 715df3a25cd9d62c1d96be9fc7515d2fb55b74449b5eedd56d9ddd705983a0b366a356e52d376953a5bacc15a70addfc0262309fc192b8086d3fa5f13ce34bd3
|
@@ -1,16 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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
|
-
|
6
|
-
|
7
|
-
|
9
|
+
def self.resource_class
|
10
|
+
Ecm::News::Item
|
11
|
+
end
|
8
12
|
|
9
|
-
|
13
|
+
private
|
10
14
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
-
|
3
|
-
|
4
|
-
|
5
|
-
= table.column :
|
6
|
-
= table.column :
|
7
|
-
= table.
|
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
|
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.
|
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:
|
11
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|