-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved navigation view and styling out into their own files so that it…
… may be included elsewhere
- Loading branch information
1 parent
2a4e6b6
commit b482b79
Showing
5 changed files
with
76 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
ul#navigation { | ||
margin: -15px 0; | ||
padding: 0; | ||
list-style: none; | ||
float: right; | ||
font-size: 0.8em; | ||
} | ||
ul#navigation li { | ||
float: left; | ||
margin-left: 10px; | ||
} | ||
ul#navigation li a { | ||
display: block; | ||
height: 16px; | ||
padding: 3px 0 0 18px; | ||
color: #278FD5; | ||
text-decoration: none; | ||
background-repeat: no-repeat; | ||
} | ||
ul#navigation li a:hover { | ||
text-decoration: underline; | ||
} | ||
ul#navigation li#nav-pages a { | ||
background-image: url(../images/hush_cms/page.png); | ||
} | ||
ul#navigation li#nav-posts a { | ||
background-image: url(../images/hush_cms/newspaper.png); | ||
} | ||
ul#navigation li#nav-calendars a { | ||
background-image: url(../images/hush_cms/calendar.png); | ||
} | ||
ul#navigation li#nav-files a { | ||
background-image: url(../images/hush_cms/image.png); | ||
} | ||
ul#navigation li#nav-snippets a { | ||
background-image: url(../images/hush_cms/note.png); | ||
} | ||
ul#navigation li#nav-comments a { | ||
background-image: url(../images/hush_cms/comments.png); | ||
} | ||
ul#navigation li#nav-logout a { | ||
background-image: url(../images/hush_cms/door_open.png); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
%ul#navigation | ||
%li#nav-pages= link_to 'Pages', hush_cms_admin_pages_path | ||
%li#nav-posts= link_to 'Posts', hush_cms_admin_post_categories_path | ||
%li#nav-files= link_to 'Files', hush_cms_admin_files_path | ||
%li#nav-calendars= link_to 'Calendars', hush_cms_admin_calendars_path | ||
%li#nav-snippets= link_to 'Snippets', hush_cms_admin_snippets_path | ||
|
||
- if HushCMS::PostCategory.any_with_comments? | ||
%li#nav-comments= link_to "Comments#{HushCMS::Comment.unapproved.count > 0 ? " (#{HushCMS::Comment.unapproved.count})" : ''}", hush_cms_admin_comments_path | ||
|
||
- HushCMS.navigation.each do |name, path| | ||
%li{:id => "nav-#{name.slugify}"}= link_to name, path | ||
|
||
%li#nav-logout= link_to 'Logout', hush_cms_admin_logout_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
%title Hush CMS Administration | ||
%meta{'http-equiv' => 'content-type', 'content' => 'text/html;charset=utf-8'} | ||
%meta{'http-equiv' => 'Content-Style-Type', 'content' => 'text/css'} | ||
= stylesheet_link_tag 'hush_cms_admin', 'hush_cms_admin_extensions', 'hush_cms_date_picker' | ||
= stylesheet_link_tag 'hush_cms_admin', 'hush_cms_admin_navigation', 'hush_cms_admin_extensions', 'hush_cms_date_picker' | ||
/[if IE] | ||
= stylesheet_link_tag 'hush_cms_ie_admin' | ||
= include_tiny_mce_js_if_needed | ||
|
@@ -13,22 +13,10 @@ | |
|
||
%body | ||
#container | ||
%ul#navigation | ||
%li#nav-pages= link_to 'Pages', hush_cms_admin_pages_path | ||
%li#nav-posts= link_to 'Posts', hush_cms_admin_post_categories_path | ||
%li#nav-files= link_to 'Files', hush_cms_admin_files_path | ||
%li#nav-calendars= link_to 'Calendars', hush_cms_admin_calendars_path | ||
%li#nav-snippets= link_to 'Snippets', hush_cms_admin_snippets_path | ||
|
||
- if HushCMS::PostCategory.any_with_comments? | ||
%li#nav-comments= link_to "Comments#{HushCMS::Comment.unapproved.count > 0 ? " (#{HushCMS::Comment.unapproved.count})" : ''}", hush_cms_admin_comments_path | ||
|
||
- HushCMS.navigation.each do |name, path| | ||
%li{:id => "nav-#{name.slugify}"}= link_to name, path | ||
|
||
%li#nav-logout= link_to 'Logout', hush_cms_admin_logout_path | ||
= render :partial => 'hush_cms_admin/shared/navigation' | ||
|
||
%h1= @title | ||
|
||
#links | ||
- if @links && [email protected]? | ||
%ul | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters