imagine_cms 3.0.6 → 3.0.7
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.
@@ -90,7 +90,7 @@ a:active { text-decoration: underline; color: #506D91; }
|
|
90
90
|
a:visited { text-decoration: underline; color: #506D91; }
|
91
91
|
a:hover { text-decoration: underline; color: #000000; }
|
92
92
|
|
93
|
-
img { border: none; margin: 0; padding: 0; }
|
93
|
+
img { display: inline; border: none; margin: 0; padding: 0; }
|
94
94
|
|
95
95
|
.clearer { clear: both; line-height: 0; height: 0; }
|
96
96
|
|
@@ -136,3 +136,7 @@ div.auto_complete ul strong.highlight {
|
|
136
136
|
color: white;
|
137
137
|
background-color: #506D91;
|
138
138
|
}
|
139
|
+
|
140
|
+
|
141
|
+
table.imagine-management tr:hover { background-color: #fff8c6; }
|
142
|
+
table.imagine-management th { background-color: #dedede; text-transform: uppercase; }
|
@@ -1,4 +1,8 @@
|
|
1
1
|
<%- if params[:action] != 'preview_template' -%>
|
2
|
+
<style type="text/css">
|
3
|
+
#mainCCSToolbar { font-family: Arial; font-size: 12px; font-weight: normal; text-transform: none; line-height: 1.2; color: black; }
|
4
|
+
#mainCCSToolbar a { text-transform: none; font-weight: normal; color: black; }
|
5
|
+
</style>
|
2
6
|
<table id="mainCCSToolbar" cellpadding="0" cellspacing="0" border="0" width="100%" style="display: none">
|
3
7
|
<%- if [ 'content', 'cms' ].include?(controller.controller_name) && params[:action] != 'preview_template' -%>
|
4
8
|
<tr>
|
@@ -3,23 +3,26 @@
|
|
3
3
|
@subnav_sections = []
|
4
4
|
|
5
5
|
if is_logged_in_user?
|
6
|
-
|
6
|
+
if user_has_permission?(:manage_cms)
|
7
|
+
@nav_sections << [ 'Pages', { :controller => '/management/cms', :action => 'pages' } ]
|
8
|
+
@nav_sections << [ 'Templates', { :controller => '/management/cms', :action => 'templates' } ]
|
9
|
+
@nav_sections << [ 'Snippets', { :controller => '/management/cms', :action => 'snippets' } ]
|
10
|
+
end
|
11
|
+
if user_has_permission?(:manage_users)
|
12
|
+
@nav_sections << [ 'Users', { :controller => '/management/users', :action => 'index' } ]
|
13
|
+
end
|
7
14
|
end
|
8
15
|
-%>
|
9
|
-
<!DOCTYPE html
|
10
|
-
|
11
|
-
|
12
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
16
|
+
<!DOCTYPE html>
|
17
|
+
<html>
|
13
18
|
<head>
|
14
19
|
<title><%= controller.controller_path.split('/').concat([ params[:action] ]).map { |s| s.titlecase }.join(' > ') %></title>
|
15
|
-
<%#= javascript_tag 'var djConfig = { isDebug: true };' %>
|
16
20
|
<%- if is_logged_in_user? -%>
|
17
21
|
<script src="/assets/dojo/dojo.js" type="text/javascript"></script>
|
18
22
|
<script src="/assets/codepress/codepress.js" type="text/javascript"></script>
|
19
23
|
<%- end -%>
|
20
24
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
21
|
-
<%= stylesheet_link_tag "
|
22
|
-
<%#= stylesheet_link_tag 'print', :media => 'print' %>
|
25
|
+
<%= stylesheet_link_tag "management", :media => "all" %>
|
23
26
|
<%= javascript_include_tag "application" %>
|
24
27
|
<%= csrf_meta_tag %>
|
25
28
|
</head>
|
@@ -31,14 +34,14 @@
|
|
31
34
|
<%- if is_logged_in_user? -%>
|
32
35
|
<!-- Header Navigation -->
|
33
36
|
<div style="float: left; padding-top: 2px;">
|
34
|
-
<a href="/manage"><img src="/assets/
|
37
|
+
<a href="/manage"><img src="/assets/management/start.gif" width="44" height="14" alt="Start" /></a>
|
35
38
|
</div>
|
36
39
|
<div style="float: left; padding-left: 20px;">
|
37
40
|
<%= raw @nav_sections.map { |nav| link_to(nav[0], nav[1], :style => 'color: white') }.join(' | ') %>
|
38
41
|
</div>
|
39
42
|
<div style="float: right">
|
40
|
-
<%= link_to 'Change password', { :controller => '/
|
41
|
-
<%= link_to 'Log out', { :controller => '/
|
43
|
+
<%= link_to 'Change password', { :controller => '/management/users', :action => 'edit', :id => session[:user_id] }, :style => 'color: white'%> |
|
44
|
+
<%= link_to 'Log out', { :controller => '/management/user', :action => 'logout' }, :style => 'color: white' %>
|
42
45
|
</div>
|
43
46
|
<%- end -%>
|
44
47
|
</td>
|
@@ -1,15 +1,24 @@
|
|
1
|
-
<%-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
@nav_sections << [ 'Users', { :controller => '/manage/users' } ] if user_has_permission?(:manage_users)
|
6
|
-
end
|
7
|
-
-%>
|
1
|
+
<%- if user_has_permission?(:manage_cms) || user_has_permission(:manage_users) -%>
|
2
|
+
<h2>
|
3
|
+
Manage Your Site
|
4
|
+
</h2>
|
8
5
|
|
9
|
-
<
|
10
|
-
<
|
11
|
-
|
12
|
-
|
13
|
-
</
|
6
|
+
<p>
|
7
|
+
<ul>
|
8
|
+
<%- if user_has_permission? :manage_cms -%>
|
9
|
+
<li><%= link_to 'CMS', :controller => '/management/cms', :action => 'index' %>
|
10
|
+
- Manage content management system</li>
|
11
|
+
<%- end -%>
|
12
|
+
<%- if user_has_permission? :manage_users -%>
|
13
|
+
<li><%= link_to 'Users', :controller => '/management/users', :action => 'index' %>
|
14
|
+
- Grant management access to employees</li>
|
15
|
+
<%- end -%>
|
16
|
+
</ul>
|
17
|
+
</p>
|
18
|
+
<%- end -%>
|
14
19
|
|
15
|
-
<p>
|
20
|
+
<p>
|
21
|
+
<ul>
|
22
|
+
<li><%= link_to 'Change your password', :controller => '/management/users', :action => 'edit', :id => session[:user_id] %></li>
|
23
|
+
</ul>
|
24
|
+
</p>
|
data/lib/imagine_cms/version.rb
CHANGED