optimacms 0.1.34 → 0.1.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/optimacms/admin/admin_base_controller.rb +9 -3
- data/app/controllers/optimacms/admin/app_sys_controller.rb +19 -0
- data/app/controllers/optimacms/admin/common_controller.rb +14 -0
- data/app/controllers/optimacms/admin/pages_controller.rb +1 -1
- data/app/views/optimacms/admin/app_sys/index.html.haml +2 -0
- data/app/views/optimacms/admin/common/res.html.haml +9 -0
- data/app/views/optimacms/admin/pages/index.html.haml +10 -0
- data/app/views/optimacms/admin/shared/_leftmenu.html.haml +14 -1
- data/config/routes.rb +9 -0
- data/lib/optimacms/sys/app_functions.rb +12 -0
- data/lib/optimacms/version.rb +1 -1
- data/test/dummy/log/development.log +3177 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38988f238025c66a2d5ce6aa29d9aa44fa8c12f6
|
4
|
+
data.tar.gz: 2d52afa77828c9cf7eb7e479fed6ede2805dd630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5807d02977790f7f5b462b7502b11dfffaea57f98c75d1e9fbbe684114af78e70a5e6618f04489dfdd12747221a12d9cd3a4aab9a6ed28a15c36bae5cc217237
|
7
|
+
data.tar.gz: 3a58168544a0d1d9f2f940aab414d93f2d56ff7dcc024d11d79cca73f07d539ea10ee8e4d85fbf1fe9350909b22c2071fdadac7d498fec31fbf94b6d1f719996
|
@@ -13,9 +13,6 @@ module Optimacms
|
|
13
13
|
|
14
14
|
|
15
15
|
#### modal
|
16
|
-
|
17
|
-
|
18
|
-
|
19
16
|
def set_layout_modal_old
|
20
17
|
if @modal==1
|
21
18
|
self.class.layout false
|
@@ -24,6 +21,8 @@ module Optimacms
|
|
24
21
|
end
|
25
22
|
|
26
23
|
|
24
|
+
### devise
|
25
|
+
|
27
26
|
def after_sign_in_path_for(resource)
|
28
27
|
if resource.is_a?(CmsAdminUser)
|
29
28
|
dashboard_path
|
@@ -34,6 +33,13 @@ module Optimacms
|
|
34
33
|
end
|
35
34
|
|
36
35
|
|
36
|
+
### redirects
|
37
|
+
def redirect_to_res(res)
|
38
|
+
v_res = res ? 1 : 0
|
39
|
+
redirect_to res_common_path(res: v_res)
|
40
|
+
end
|
41
|
+
|
37
42
|
end
|
43
|
+
|
38
44
|
end
|
39
45
|
end
|
@@ -44,6 +44,7 @@
|
|
44
44
|
= link_to 'Title', '#'
|
45
45
|
%th Name
|
46
46
|
%th URL
|
47
|
+
%th Template
|
47
48
|
%th Commands
|
48
49
|
|
49
50
|
- @items.each do |item|
|
@@ -59,6 +60,15 @@
|
|
59
60
|
=item.name
|
60
61
|
%td
|
61
62
|
=item.url
|
63
|
+
%td
|
64
|
+
- if item.template
|
65
|
+
=link_to edit_template_path(item.template) do
|
66
|
+
=item.template.title
|
67
|
+
%br
|
68
|
+
=item.template.basepath
|
69
|
+
- else
|
70
|
+
N/A
|
71
|
+
|
62
72
|
%td
|
63
73
|
=link_to 'Edit', (item.is_folder? ? editfolder_page_path(item) : edit_page_path(item))
|
64
74
|
=link_to 'Delete', page_path(item), :method => :delete, data: { confirm: 'Are you sure?' }
|
@@ -14,7 +14,7 @@
|
|
14
14
|
%li=link_to 'Pages', pages_path
|
15
15
|
%li=link_to 'Templates', templates_path
|
16
16
|
-#%li=link_to 'Layouts', layouts_path
|
17
|
-
%li=link_to 'Data Blocks', 'datablocks_path'
|
17
|
+
%li=link_to 'Data Blocks - NOT WORK', 'datablocks_path'
|
18
18
|
%li=link_to 'Media', mediafiles_path
|
19
19
|
|
20
20
|
%li
|
@@ -26,3 +26,16 @@
|
|
26
26
|
%ul#submenu2.submenu.collapse
|
27
27
|
%li=link_to 'News', "#"
|
28
28
|
%li=link_to 'Categories', "#"
|
29
|
+
|
30
|
+
|
31
|
+
%li
|
32
|
+
=link_to '#submenu_system', :"data-toggle"=>"collapse", :"aria-expanded"=>"false", :"aria-controls"=>"submenu_system" do
|
33
|
+
%span System
|
34
|
+
%b.arrow.fa.fa-angle-down.for-expanded
|
35
|
+
%b.arrow.fa.fa-angle-left.for-collapsed
|
36
|
+
|
37
|
+
%ul#submenu_system.submenu_system.collapse
|
38
|
+
%li=link_to 'App', app_sys_path
|
39
|
+
%li=link_to 'Maintenance', "#"
|
40
|
+
%li=link_to 'Backups', "#"
|
41
|
+
%li=link_to 'Info', "#"
|
data/config/routes.rb
CHANGED
@@ -6,6 +6,8 @@ Optimacms::Engine.routes.draw do
|
|
6
6
|
|
7
7
|
get '/' => 'dashboard#index', as: :dashboard
|
8
8
|
|
9
|
+
get '/res' => 'common#res', as: :res_common
|
10
|
+
|
9
11
|
resources :pages do
|
10
12
|
collection do
|
11
13
|
post 'search'
|
@@ -46,6 +48,13 @@ Optimacms::Engine.routes.draw do
|
|
46
48
|
match '/media_elfinder' => 'mediafiles#elfinder', via: [:get, :post]
|
47
49
|
|
48
50
|
|
51
|
+
resources :app_sys do
|
52
|
+
collection do
|
53
|
+
get :restart
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
|
49
58
|
|
50
59
|
end
|
51
60
|
|
data/lib/optimacms/version.rb
CHANGED