This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added multiple content type page addition to interface...meh, bad mes…
…sage
- Loading branch information
Josh Adams
committed
Oct 27, 2008
1 parent
01904ab
commit d91a4e8
Showing
15 changed files
with
210 additions
and
20 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
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 |
---|---|---|
@@ -1,9 +1,26 @@ | ||
<% id = rand(Time.now.to_i) -%> | ||
<div class='page_controls'> | ||
<ul> | ||
<li class="direction up"><%= link_to '↑', shift_order_admin_page_path(:id => page.id, :shift => -1), {:style => "text-decoration:none"} -%></li> | ||
<li class="direction down"><%= link_to '↓', shift_order_admin_page_path(:id => page.id, :shift => 1), {:style => "text-decoration:none"} -%></li> | ||
<li><%= link_to("X", admin_page_path(page), :method => :delete, :confirm => 'Are you sure? This will delete this page permanently and all sub-pages will be orphaned!') -%></li> | ||
<li><%= link_to("Add", new_admin_page_path(:parent_id => page.id)) -%></li> | ||
<li> | ||
<ul id='dropdown-<%= id -%>' class='dropdown'> | ||
<li> | ||
Add | ||
<ul> | ||
<% Ansuz::PluginManagerInstance.page_types.each do |name, modules| -%> | ||
<li><%= link_to("Add #{name}", new_admin_page_path(:parent_id => page.id, :page_plugins => modules)) -%></li> | ||
<% end -%> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<div class='clear'></div> | ||
</div> | ||
<script type='text/javascript'> | ||
jQuery(document).ready(function(){ | ||
jQuery("ul#dropdown-<%= id -%>").clickMenu(); | ||
}) | ||
</script> |
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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Ansuz::PluginManagerInstance.register_admin_menu_entry "Ansuz", 'Choose a Theme', '/admin/site_settings/edit' | ||
Ansuz::PluginManagerInstance.register_admin_menu_entry "Pages", 'Manage Pages', '/admin/pages' | ||
Ansuz::PluginManagerInstance.register_admin_menu_entry "Content", 'Manage Pages', '/admin/pages' | ||
Ansuz::PluginManagerInstance.register_admin_menu_entry "Ansuz", 'Site Settings', '/admin/site_settings' | ||
Ansuz::PluginManagerInstance.register_admin_menu_entry "Ansuz", 'List Plugins', '/admin/plugins' | ||
Ansuz::PluginManagerInstance.register_admin_menu_entry "Ansuz", 'Logout', '/admin/account/logout' | ||
Ansuz::PluginManagerInstance.register_admin_menu_entry "Ansuz", 'Visit Site', '/' | ||
|
||
Ansuz::PluginManagerInstance.register_page_type("Custom Page") |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,115 @@ | ||
div.cmDiv | ||
{ | ||
border: 1px solid black; | ||
background-color: #eee; | ||
} | ||
.clickMenu | ||
{ | ||
margin: 0; | ||
padding: 0; | ||
cursor: default; | ||
} | ||
.clickMenu, .clickMenu ul | ||
{ | ||
list-style: none; | ||
} | ||
.clickMenu ul | ||
{ | ||
margin: 0; | ||
padding: 2px; | ||
border: 1px solid black; | ||
background-color: #eee; | ||
min-width: 100px; /* ie doesnt know this :/ */ | ||
//float: left;/*ie again*/ | ||
//width: 100%;/*and again*/ | ||
} | ||
.clickMenu div.outerbox | ||
{ | ||
display: none; | ||
min-width: 106px; /* firefox produces animation-flickering when the box is bigger than this :/ */ | ||
} | ||
.clickMenu div.inner | ||
{ | ||
//top: 20px; /* for ie */ | ||
left: 0; | ||
margin: 0; | ||
} | ||
.clickMenu div.inner div.outerbox | ||
{ | ||
margin: 0; | ||
left: 98px; | ||
//left: 90px; /* for ie */ | ||
top: -3px; | ||
} | ||
.clickMenu li | ||
{ | ||
position: relative; | ||
padding: 0 20px 0 2px; | ||
/*white-space: nowrap; does not really work in ie */ | ||
} | ||
.clickMenu li.main | ||
{ | ||
float: left; | ||
padding: 0 10px; | ||
background-color: #eee; | ||
//height: 20px; /* for ie */ | ||
} | ||
.clickMenu li.main li | ||
{ | ||
z-index: 2; | ||
min-width: 78px; | ||
} | ||
.clickMenu li.hover | ||
{ | ||
z-index: 1 !important; /* the hover z-index has to be below the normal one the hovering items may be drawn over a submenu */ | ||
background-color: #aaa; | ||
} | ||
.clickMenu img.liArrow | ||
{ | ||
position: absolute; | ||
right: 5px; | ||
top: 0.41em; | ||
} | ||
.clickMenu a | ||
{ | ||
text-decoration: none; | ||
color: black; | ||
cursor: default; | ||
} | ||
/* thats for the shadowbox */ | ||
html>body div.outerbox | ||
{ | ||
padding: 0 5px 5px 0; | ||
} | ||
html>body div.shadowbox1 | ||
{ | ||
position: absolute; | ||
right: 0; | ||
bottom: 5px; | ||
width: 5px; | ||
height: 100%; | ||
background: url(myshadow.png) no-repeat right top; | ||
} | ||
html>body div.shadowbox2 | ||
{ | ||
position: absolute; | ||
bottom: 0; | ||
right: 5px; | ||
height: 5px; | ||
width: 100%; | ||
background: url(myshadow.png) left bottom; | ||
} | ||
html>body div.shadowbox3 | ||
{ | ||
position: absolute; | ||
bottom: 0; | ||
right: 0; | ||
height: 5px; | ||
width: 5px; | ||
background: url(myshadow.png) no-repeat right bottom; | ||
} | ||
html>body .innerbox | ||
{ | ||
margin: 0; | ||
display: inherit; | ||
} |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/* Index tree */ | ||
#tree ul { | ||
#tree ul.main_tree { | ||
padding-left:20px; | ||
} | ||
#tree ul li .page_controls{ | ||
#tree ul.main_tree li .page_controls{ | ||
display: block; | ||
float: right; | ||
} | ||
#tree ul li .page_controls{ | ||
#tree ul.main_tree li .page_controls{ | ||
} | ||
#tree ul li .page_controls li{ | ||
#tree ul.main_tree li .page_controls li{ | ||
list-style-type: none; | ||
float: left; | ||
} | ||
#tree ul li .page_controls a{ | ||
#tree ul.main_tree li .page_controls a{ | ||
margin-right: 10px; | ||
} | ||
#tree ul li .page_controls a:hover { | ||
#tree ul.main_tree li .page_controls a:hover { | ||
background-color: #eee; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Include hook code here | ||
require 'content_section' | ||
Ansuz::PluginManagerInstance.register_plugin(Ansuz::JAdams::ContentSection) | ||
Ansuz::PluginManagerInstance.register_page_type("Content Page", ["Ansuz::JAdams::ContentSection"]) |
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