ecm_cms2_backend 1.0.5 → 1.1.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: 60d927d36790c1b55cab6ff13c23fd8009e4ce51
4
- data.tar.gz: fa96a4b00f247d74066036ac67295ed1376946b4
3
+ metadata.gz: 80496e499fcebdac4d825c387b25fb5d939ad09e
4
+ data.tar.gz: 9473e29ecdc52b9fc8e2d38d1ad69012872641b5
5
5
  SHA512:
6
- metadata.gz: 5d73e9390ae7b2735ae22daa125a8829a3afa3b892224358c583759f0b11bdc3a1af2e7ae02bb2b23a1dee8c7411de24c9452dba23382c9d091d077291962ad7
7
- data.tar.gz: df1483a43bcc09a314472b753f6442fbf6fac5181c39ea09225839457c1ffa61969b74518c75e1006ee7f19a1b1007349dd73de7ac583e8b19727e7465213047
6
+ metadata.gz: cdf2c4eea39083a0446ced2dbd20fb632e04ffad9142aaaeeb33d3a2dce914e1335598f14d9cd8b2b0169c02c6ba2f5f98d851bb8719e7d35b2bd3c9450b097f
7
+ data.tar.gz: 13a64e4423e1edf9512e075cfce64467c7390db3e16f026aa7a2d64fc9515650c5ab67e509c6b6cfa558a26de7964c7ea8566257b356eac24b3c48bd17fc60be
@@ -1,4 +1,6 @@
1
1
  class Ecm::Cms::Backend::NavigationItemsController < Itsf::Backend::Resource::BaseController
2
+ include Controller::AwesomeNestedSetConcern
3
+
2
4
  def self.resource_class
3
5
  Ecm::Cms::NavigationItem
4
6
  end
@@ -5,3 +5,4 @@
5
5
  = table.column(:ecm_cms_page) do |navigation_item|
6
6
  - link_to navigation_item.ecm_cms_page.title, page_path(navigation_item.ecm_cms_page) if navigation_item.ecm_cms_page.present?
7
7
  = table.timestamps
8
+ = table.awesome_nested_set_actions scope: ->(navigation_item) { navigation_item.root.ecm_cms_navigation.to_param }
data/config/routes.rb CHANGED
@@ -11,7 +11,9 @@ Ecm::Cms::Backend::Engine.routes.draw do
11
11
 
12
12
  resources :content_boxes
13
13
  resources :navigations
14
- resources :navigation_items
14
+ resources :navigation_items do
15
+ post :reposition, on: :member
16
+ end
15
17
  resources :pages
16
18
  resources :partials
17
19
  resources :templates
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Cms
3
3
  module Backend
4
- VERSION = '1.0.5'.freeze
4
+ VERSION = '1.1.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_cms2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.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: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails