ecm_links2_backend 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ecm/links/backend/categories_controller.rb +18 -10
- data/app/controllers/ecm/links/backend/links_controller.rb +17 -9
- data/app/views/ecm/links/backend/categories/_table.html.haml +1 -1
- data/app/views/ecm/links/backend/links/_table.html.haml +1 -1
- data/lib/ecm/links/backend/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0202987085527b94120e0817f0e063d62e3f3cd
|
4
|
+
data.tar.gz: 0ae4540b091ff476368a86fa1407b9514f654327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253a90ac2d8f2ba22b0525a15b64fd55528923a2d4e47390a42a0eecb82ebe69ce9a4be83733d973b70ba6c1533848e87c166936a8fcf521fb739225d735088f
|
7
|
+
data.tar.gz: 63348bca177c9c4aafb8c8ea306ea56324d9a09e3eb6a8c23710bba9c34924aacd5d18491d628e8c1f246ec532f8f3d3e2d8766709763c1a15ec36b8a45cbe12
|
@@ -1,13 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
module Ecm
|
2
|
+
module Links
|
3
|
+
module Backend
|
4
|
+
class CategoriesController < Itsf::Backend::Resource::BaseController
|
5
|
+
include ResourcesController::Sorting
|
6
|
+
|
7
|
+
def self.resource_class
|
8
|
+
Ecm::Links::Category
|
9
|
+
end
|
5
10
|
|
6
|
-
|
11
|
+
private
|
7
12
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
13
|
+
def permitted_params
|
14
|
+
params
|
15
|
+
.require(:category)
|
16
|
+
.permit(:parent_id, :locale, :name, :markup_language, :short_description, :long_description, :link_footer_column)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
12
20
|
end
|
13
|
-
end
|
21
|
+
end
|
@@ -1,13 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
module Ecm
|
2
|
+
module Links
|
3
|
+
module Backend
|
4
|
+
class LinksController < Itsf::Backend::Resource::BaseController
|
5
|
+
include ResourcesController::Sorting
|
6
|
+
|
7
|
+
def self.resource_class
|
8
|
+
Ecm::Links::Link
|
9
|
+
end
|
5
10
|
|
6
|
-
|
11
|
+
private
|
7
12
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
13
|
+
def permitted_params
|
14
|
+
params
|
15
|
+
.require(:link)
|
16
|
+
.permit(:category_id, :name, :url, :markup_language, :description)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
12
20
|
end
|
13
21
|
end
|
@@ -6,4 +6,4 @@
|
|
6
6
|
= table.column :long_description, sort: true, class: 'truncate-chars truncate-chars-30'
|
7
7
|
= table.column :link_footer_column, sort: true, class: 'truncate-chars truncate-chars-30'
|
8
8
|
= table.column :links_count, sort: true
|
9
|
-
= table.timestamps(
|
9
|
+
= table.timestamps(sort: true)
|
@@ -2,5 +2,5 @@
|
|
2
2
|
= table.association :category, sort: true, link_to: ->(resource) { resource.category }
|
3
3
|
= table.column :name, sort: true, class: 'truncate-chars truncate-chars-30'
|
4
4
|
= table.column :description, sort: true, class: 'truncate-chars truncate-chars-30'
|
5
|
-
= table.timestamps
|
5
|
+
= table.timestamps sort: true
|
6
6
|
= table.column(:link_actions) { |link| link_to(t('.visit'), link.url, class: 'btn btn-xs btn-primary') }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_links2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
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-
|
11
|
+
date: 2018-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|