ecm_links2_backend 1.1.0 → 2.0.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: 9d8206d1e238ac58d289264121d7c3f69274c0d3
4
- data.tar.gz: f4fb6fad85e8932ef6913dd18d236071e3af0c14
3
+ metadata.gz: 2d41a69bf8006cb35339c96eb137732f6c7cfd4a
4
+ data.tar.gz: 1fd6ea31cfcdd4198d18b0561dd4a9a1652bc73d
5
5
  SHA512:
6
- metadata.gz: c5b22d4d8df6b98adc072a16d8d4e6d596f6c691283b1e7e36ccb36d9091b23cbc285af1a28bdf02bb96f3c440d8c1e79636b524196cc082596d18d879f1c2e7
7
- data.tar.gz: 07f79e814a5a6807e442245c3b18e9c435feadf0052f0e7314e7ed5422f54a7e9f54f4b03cf1ff8cdbc46c6b276160c765723fe5253934ba6d2b42151a0b5a5b
6
+ metadata.gz: fbef9d6280cd5b5e043c97de61ece6f484d52c0044075fe684dc6cefbcbbc80fed9e160c96fcd893ce8f6d962f0dcf483186f4d940fbb9a4cbe1beee40f93ae3
7
+ data.tar.gz: 8960fe9d14f01ad2fbcbbe007559734045d4f27a9ea60c5522e87e387cddf04859eaca182d469771f2d5fb936da1e650693d17edf7c0114aea6d1c6042e8b09f
@@ -7,7 +7,7 @@ class Ecm::Links::Backend::CategoriesController < Itsf::Backend::Resource::BaseC
7
7
 
8
8
  def permitted_params
9
9
  params
10
- .require(:ecm_links_category)
10
+ .require(:category)
11
11
  .permit(:parent_id, :locale, :name, :markup_language, :short_description, :long_description, :link_footer_column)
12
12
  end
13
13
  end
@@ -5,13 +5,9 @@ class Ecm::Links::Backend::LinksController < Itsf::Backend::Resource::BaseContro
5
5
 
6
6
  private
7
7
 
8
- def collection_scope
9
- resource_class.includes(:ecm_links_category)
10
- end
11
-
12
8
  def permitted_params
13
9
  params
14
- .require(:ecm_links_link)
15
- .permit(:ecm_links_category_id, :name, :url, :markup_language, :description)
10
+ .require(:link)
11
+ .permit(:category_id, :name, :url, :markup_language, :description)
16
12
  end
17
13
  end
@@ -1,8 +1,8 @@
1
- = table.column :locale
2
- = table.column :parent
3
- = table.column :name, class: 'truncate-chars truncate-chars-30'
4
- = table.column :short_description, class: 'truncate-chars truncate-chars-30'
5
- = table.column :long_description, class: 'truncate-chars truncate-chars-30'
6
- = table.column :link_footer_column, class: 'truncate-chars truncate-chars-30'
7
- = table.column :ecm_links_links_count
1
+ = table.column :locale, sortable: true
2
+ = table.column :parent, sortable: true
3
+ = table.column :name, sortable: true, class: 'truncate-chars truncate-chars-30'
4
+ = table.column :short_description, sortable: true, class: 'truncate-chars truncate-chars-30'
5
+ = table.column :long_description, sortable: true, class: 'truncate-chars truncate-chars-30'
6
+ = table.column :link_footer_column, sortable: true, class: 'truncate-chars truncate-chars-30'
7
+ = table.column :links_count, sortable: true
8
8
  = table.timestamps
@@ -1,5 +1,6 @@
1
+
1
2
  .well
2
- = form.association :ecm_links_category
3
+ = form.association :category
3
4
 
4
5
  .well
5
6
  = form.input :name
@@ -1,5 +1,5 @@
1
- = table.association(:ecm_links_category)
2
- = table.column :name, class: 'truncate-chars truncate-chars-30'
3
- = table.column :description, class: 'truncate-chars truncate-chars-30'
1
+ = table.association(:category, sortable: true)
2
+ = table.column :name, sortable: true, class: 'truncate-chars truncate-chars-30'
3
+ = table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
4
4
  = table.timestamps
5
5
  = table.column(:additional_actions) { |link| link_to(t('.visit'), link.url, class: 'btn btn-xs btn-primary') }
@@ -8,5 +8,4 @@ de:
8
8
  table:
9
9
  visit: Link öffnen
10
10
  routes:
11
- mount:
12
- ecm_links_backend: '/backend/links'
11
+ ecm-links-backend-engine: 'links'
@@ -8,5 +8,4 @@ en:
8
8
  table:
9
9
  visit: Open link
10
10
  routes:
11
- mount:
12
- ecm_links_backend: '/backend/links'
11
+ ecm-links-backend-engine: 'links'
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Links
3
3
  module Backend
4
- VERSION = '1.1.0'.freeze
4
+ VERSION = '2.0.0'.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_links2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.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: 2017-01-21 00:00:00.000000000 Z
11
+ date: 2017-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -254,9 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  version: '0'
255
255
  requirements: []
256
256
  rubyforge_project:
257
- rubygems_version: 2.4.8
257
+ rubygems_version: 2.6.11
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: Backend Module for ECM Links 2
261
261
  test_files: []
262
- has_rdoc: