optimacms 0.1.47 → 0.1.48

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: 98a13abb9d39daef0ee0fdcf82b2122b4f6709ec
4
- data.tar.gz: b68bb6791d978c9d52727b546b00b80eb437e88f
3
+ metadata.gz: 7a3b72dcd0b59b42609b966ddc806f278ceabae6
4
+ data.tar.gz: 0f66f5e11501cb16557e9f8e8fff2cc7d3ed7f05
5
5
  SHA512:
6
- metadata.gz: 2acac0958ffc5df3492bb24d45552d732d35d9eac0557db0e962fe1d0e803d33ef5837827c777039441efabb7a3e1e25bdeb1cd7d08fda475be900366b42c498
7
- data.tar.gz: 9ceea88a144d429ae8c1e18ca2b3bacc71157e5731a8a7a62a87dff8cd409db8c784a2a21369928f1c282e93cc28a37ebf70d619753e35009dc43bb8773c4ca9
6
+ metadata.gz: b7820c2fbb3780fde47c95faa3945d6dde9bcca02b9c78c5e047cc7eaf78217de71570c83051f0ae5cd3b5451b0e01e8aac29373479790634a6a8e2be4505115
7
+ data.tar.gz: d19cda2b7e2cd045c4d7b19b1639c0384f45728934f4f639a3999477af56bd9762819c11f503cee3e38ca9153b3704bcf213d85dcd0857b0a42e492c1468c63e
@@ -13,15 +13,17 @@
13
13
  %ul.submenu.collapse{id: "submenu#{ind}"}
14
14
  - if m[:submenu]
15
15
  - m[:submenu].each do |sm|
16
- - u = sm[:route] ? send("#{sm[:route]}_path") : '#'
16
+ - u = sm[:route] ? send("#{sm[:route]}_path") : sm[:url]
17
+ - next if u.nil? || u===false
17
18
 
18
19
  %li
19
20
  =link_to sm[:title], u
20
21
 
21
22
 
22
23
 
23
- %li.active
24
- -#
24
+ -#
25
+ %li.active
26
+
25
27
  =link_to '#submenu1', :"data-toggle"=>"collapse", :"aria-expanded"=>"true", :"aria-controls"=>"submenu1" do
26
28
  %span Content
27
29
  %b.arrow.fa.fa-angle-down.for-expanded
@@ -34,7 +36,7 @@
34
36
  -#%li=link_to 'Data Blocks - NOT WORK', 'datablocks_path'
35
37
  %li=link_to 'Media', mediafiles_path
36
38
 
37
- -#%li
39
+ -#%li
38
40
  =link_to '#submenu_system', :"data-toggle"=>"collapse", :"aria-expanded"=>"false", :"aria-controls"=>"submenu_system" do
39
41
  %span System
40
42
  %b.arrow.fa.fa-angle-down.for-expanded
@@ -8,10 +8,10 @@ module Optimacms::Concerns::AdminMenu::AdminMenu
8
8
  module ClassMethods
9
9
  def get_menu_basic
10
10
  [
11
- {title: 'Content', route: nil, submenu: [
12
- {title: 'Pages', route: :pages},
13
- {title: 'Templates', route: :templates},
14
- {title: 'Media', route: :mediafiles}
11
+ {title: 'Content', url: nil, submenu: [
12
+ {title: 'Pages', url: Optimacms::Engine.routes.url_helpers.pages_path},
13
+ {title: 'Templates', url: Optimacms::Engine.routes.url_helpers.templates_path},
14
+ {title: 'Media', url: Optimacms::Engine.routes.url_helpers.mediafiles_path}
15
15
  ]
16
16
  }
17
17
 
@@ -28,11 +28,11 @@ module Optimacms::Concerns::AdminMenu::AdminMenu
28
28
 
29
29
  def get_menu_system
30
30
  [
31
- {title: 'System', route: nil, submenu: [
32
- {title: 'App', route: :app_sys},
33
- {title: 'Maintenance', route: false},
34
- {title: 'Backups', route: false},
35
- {title: 'Info', route: false}
31
+ {title: 'System', url: nil, submenu: [
32
+ {title: 'App', url: Optimacms::Engine.routes.url_helpers.app_sys_path},
33
+ {title: 'Maintenance', url: false},
34
+ {title: 'Backups', url: false},
35
+ {title: 'Info', url: false}
36
36
  ]
37
37
  }
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Optimacms
2
- VERSION = "0.1.47"
2
+ VERSION = "0.1.48"
3
3
  end
@@ -1,5 +1,7 @@
1
1
  class Optimacms::Admin::NewsController < Optimacms::Admin::AdminBaseController
2
2
  def index
3
3
 
4
+ x = 0
5
+
4
6
  end
5
7
  end
@@ -6,12 +6,13 @@ module Optimacms
6
6
  def self.get_menu_custom
7
7
  [
8
8
  {title: 'News', route: nil, submenu: [
9
- {title: 'News', route: :admin_news_index},
10
- {title: 'Categories', route: :templates},
9
+ {title: 'News', url: Rails.application.routes.url_helpers.admin_news_index_path},
10
+ {title: 'Categories', url: Rails.application.routes.url_helpers.admin_news_index_path},
11
11
  ]
12
12
  }
13
13
 
14
14
  ]
15
+
15
16
  end
16
17
 
17
18
  end