ecm_cms2_backend 1.3.0 → 1.3.1

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: 6fa231509982aa2763076a73f32626c5b537afc1
4
- data.tar.gz: 7a2d059bb279b0becb83b66ee5c378c5b8fac57a
3
+ metadata.gz: f18adcce9f57b8204592b278ed20733cac16285b
4
+ data.tar.gz: 1172435bbf11b21ae7cd8a4a6b1da23fc61055fd
5
5
  SHA512:
6
- metadata.gz: 4c70ba39c757c4efcd645830c808e70cf0d06fe79e1096fea8af1f81429178a8d61ac2d97bef94d17c5f07fd54461fbc9c78e751daaf3b9c3ddeaf0f8397187e
7
- data.tar.gz: 027dde3d8148ee8a7f3e8eeee8d2988232dc12359ba7300108dd4aff1fc452c5c57b5cbdf808d0bd30bd776dd658257704ac8107b69b77b7b8950e784e633af1
6
+ metadata.gz: 7c721a1e9db0d9613ac3be5be2eb4542eba2617faa6ba8a5f4a0b836dd211e5ca366d2ac23fbe7a9e0c2b339521b0fc6a48dc1eff4d8aaeedbafd554149b8aeb
7
+ data.tar.gz: 551d990c88fbe2a7f4045f5970af593033db570c84afa0da30eadefc064ebada2be35ad77120c02b96a0ea82745d63983dfb0ca16983d69981ef71c4d369206d
@@ -1,4 +1,6 @@
1
1
  class Ecm::Cms::Backend::ContentBoxesController < Itsf::Backend::Resource::BaseController
2
+ include ResourcesController::Sorting
3
+
2
4
  def self.resource_class
3
5
  Ecm::Cms::ContentBox
4
6
  end
@@ -9,7 +9,7 @@ class Ecm::Cms::Backend::NavigationItemsController < Itsf::Backend::Resource::Ba
9
9
  private
10
10
 
11
11
  def load_collection_scope
12
- super.joins(:ecm_cms_navigation)
12
+ super.joins(:ecm_cms_navigation).includes(:ecm_cms_page)
13
13
  end
14
14
 
15
15
  def permitted_params
@@ -1,4 +1,6 @@
1
1
  class Ecm::Cms::Backend::NavigationsController < Itsf::Backend::Resource::BaseController
2
+ include ResourcesController::Sorting
3
+
2
4
  def self.resource_class
3
5
  Ecm::Cms::Navigation
4
6
  end
@@ -1,4 +1,6 @@
1
1
  class Ecm::Cms::Backend::PagesController < Itsf::Backend::Resource::BaseController
2
+ include ResourcesController::Sorting
3
+
2
4
  def self.resource_class
3
5
  Ecm::Cms::Page
4
6
  end
@@ -1,4 +1,6 @@
1
1
  class Ecm::Cms::Backend::PartialsController < Itsf::Backend::Resource::BaseController
2
+ include ResourcesController::Sorting
3
+
2
4
  def self.resource_class
3
5
  Ecm::Cms::Partial
4
6
  end
@@ -1,4 +1,6 @@
1
1
  class Ecm::Cms::Backend::TemplatesController < Itsf::Backend::Resource::BaseController
2
+ include ResourcesController::Sorting
3
+
2
4
  def self.resource_class
3
5
  Ecm::Cms::Template
4
6
  end
@@ -1,2 +1,2 @@
1
- = table.column :name, sortable: true
1
+ = table.column :name, sort: true
2
2
  = table.timestamps
@@ -5,5 +5,4 @@
5
5
  = table.row :highlights_on
6
6
  - Ecm::Cms::Configuration.navigation_item_properties.each do |navigation_item_property|
7
7
  = table.row navigation_item_property
8
- = table.row :created_at
9
- = table.row :updated_at
8
+ = table.timestamps
@@ -4,6 +4,6 @@
4
4
  - capture_haml do
5
5
  %span{ class: "indent indent-chars-#{navigation_item.depth * 3}"}= navigation_item.name
6
6
  = table.column :url, sort: true
7
- = table.column(:ecm_cms_page, sort: { column_name: :ecm_cms_page_title }) do |navigation_item|
7
+ = table.column(:ecm_cms_page, sort: { column_name: 'ecm_cms_pages.title' }) do |navigation_item|
8
8
  - link_to navigation_item.ecm_cms_page.title, page_path(navigation_item.ecm_cms_page) if navigation_item.ecm_cms_page.present?
9
- = table.timestamps(format: :short)
9
+ = table.timestamps(sort: true)
@@ -1,4 +1,3 @@
1
1
  = table.row :locale
2
2
  = table.row :name
3
- = table.row :created_at
4
- = table.row :updated_at
3
+ = table.timestamps
@@ -1,4 +1,4 @@
1
- = table.column :locale, sortable: true
2
- = table.column :name, sortable: true
3
- = table.column :ecm_cms_navigation_items_count, sortable: true
4
- = table.timestamps
1
+ = table.column :locale, sort: true
2
+ = table.column :name, sort: true
3
+ = table.column :ecm_cms_navigation_items_count
4
+ = table.timestamps(sort: true)
@@ -2,6 +2,6 @@
2
2
  = table.row :path_and_filename
3
3
  = table.row :meta_description
4
4
  = table.row :body, as: :text, editor_syntax: table.resource.handler
5
+ = table.boolean :home_page?
5
6
  = table.row :layout
6
- = table.row :created_at
7
- = table.row :updated_at
7
+ = table.timestamps
@@ -1,8 +1,8 @@
1
- = table.column :title, sortable: true, class: 'truncate-chars truncate-chars-30'
2
- = table.column :pathname, sortable: true, class: 'truncate-chars truncate-chars-30'
3
- = table.column :filename, sortable: true, class: 'truncate-chars truncate-chars-30'
4
- = table.column :home_page?, sortable: true
5
- = table.column :layout, sortable: true
1
+ = table.column :title, sort: true, class: 'truncate-chars truncate-chars-30'
2
+ = table.column :pathname, sort: true, class: 'truncate-chars truncate-chars-30'
3
+ = table.column :filename, sort: true, class: 'truncate-chars truncate-chars-30'
4
+ = table.boolean :home_page?, sort: true
5
+ = table.column :layout, sort: true
6
6
  = table.column(:ecm_cms_navigation_items, sortable: false) do |page|
7
7
  - page.ecm_cms_navigation_items.collect{ |navigation_item| link_to(navigation_item, navigation_item_path(navigation_item)) }.join('<br />').html_safe
8
- = table.timestamps
8
+ = table.timestamps(sort: true)
@@ -1,5 +1,3 @@
1
- = table.column :pathname, sortable: true, class: 'truncate-chars truncate-chars-30'
2
- = table.column :filename, sortable: true, class: 'truncate-chars truncate-chars-30'
3
- = table.column(:body, sortable: true) do |partial|
4
- %div{ title: partial.body, class: 'truncate-chars truncate-chars-30'}= h(partial.body)
5
- = table.timestamps
1
+ = table.column :pathname, sort: true, class: 'truncate-chars truncate-chars-30'
2
+ = table.column :filename, sort: true, class: 'truncate-chars truncate-chars-30'
3
+ = table.timestamps(sort: true)
@@ -1,5 +1,3 @@
1
- = table.column :pathname, sortable: true, class: 'truncate-chars truncate-chars-30'
2
- = table.column :filename, sortable: true, class: 'truncate-chars truncate-chars-30'
3
- = table.column(:body, sortable: true) do |partial|
4
- %div{ title: partial.body, class: 'truncate-chars truncate-chars-30'}= h(partial.body)
5
- = table.timestamps
1
+ = table.column :pathname, sort: true, class: 'truncate-chars truncate-chars-30'
2
+ = table.column :filename, sort: true, class: 'truncate-chars truncate-chars-30'
3
+ = table.timestamps(sort: true)
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Cms
3
3
  module Backend
4
- VERSION = '1.3.0'.freeze
4
+ VERSION = '1.3.1'.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_cms2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
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 00:00:00.000000000 Z
11
+ date: 2018-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails