This repository has been archived by the owner on Mar 27, 2022. 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.
Requests for page paths from the root (that exist) are redirected to /pages/#{path}. Added some assets from the Cedar Ridge site in prep for use. Improved page editing index.
- Loading branch information
Showing
21 changed files
with
433 additions
and
27 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
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,3 +1,5 @@ | ||
<h1>Pages</h1> | ||
|
||
<%= render :partial => 'list' %> | ||
|
||
<p style="margin-left:35px;"><%= link_to 'new root page', new_page_path, :class => 'discreet' %></p> |
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ def self.up | |
t.remove :song_id | ||
t.integer :page_id | ||
end | ||
Setting.update_all | ||
end | ||
|
||
def self.down | ||
|
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,120 @@ | ||
<attach event="ondocumentready" handler="parseStylesheets" /> | ||
<script> | ||
/** | ||
* Whatever:hover - V1.42.060206 - hover & active | ||
* ------------------------------------------------------------ | ||
* (c) 2005 - Peter Nederlof | ||
* Peterned - http://www.xs4all.nl/~peterned/ | ||
* License - http://creativecommons.org/licenses/LGPL/2.1/ | ||
* | ||
* Whatever:hover is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* Whatever:hover is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* Credits and thanks to: | ||
* Arnoud Berendsen, Martin Reurings, Robert Hanson | ||
* | ||
* howto: body { behavior:url("csshover.htc"); } | ||
* ------------------------------------------------------------ | ||
*/ | ||
|
||
var csshoverReg = /(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i, | ||
currentSheet, doc = window.document, hoverEvents = [], activators = { | ||
onhover:{on:'onmouseover', off:'onmouseout'}, | ||
onactive:{on:'onmousedown', off:'onmouseup'} | ||
} | ||
|
||
function parseStylesheets() { | ||
if(!/MSIE (5|6)/.test(navigator.userAgent)) return; | ||
window.attachEvent('onunload', unhookHoverEvents); | ||
var sheets = doc.styleSheets, l = sheets.length; | ||
for(var i=0; i<l; i++) | ||
parseStylesheet(sheets[i]); | ||
} | ||
function parseStylesheet(sheet) { | ||
if(sheet.imports) { | ||
try { | ||
var imports = sheet.imports, l = imports.length; | ||
for(var i=0; i<l; i++) parseStylesheet(sheet.imports[i]); | ||
} catch(securityException){} | ||
} | ||
|
||
try { | ||
var rules = (currentSheet = sheet).rules, l = rules.length; | ||
for(var j=0; j<l; j++) parseCSSRule(rules[j]); | ||
} catch(securityException){} | ||
} | ||
|
||
function parseCSSRule(rule) { | ||
var select = rule.selectorText, style = rule.style.cssText; | ||
if(!csshoverReg.test(select) || !style) return; | ||
|
||
var pseudo = select.replace(/[^:]+:([a-z-]+).*/i, 'on$1'); | ||
var newSelect = select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi, '.$2' + pseudo); | ||
var className = (/\.([a-z0-9_-]*on(hover|active))/i).exec(newSelect)[1]; | ||
var affected = select.replace(/:(hover|active).*$/, ''); | ||
var elements = getElementsBySelect(affected); | ||
if(elements.length == 0) return; | ||
|
||
currentSheet.addRule(newSelect, style); | ||
for(var i=0; i<elements.length; i++) | ||
new HoverElement(elements[i], className, activators[pseudo]); | ||
} | ||
|
||
function HoverElement(node, className, events) { | ||
if(!node.hovers) node.hovers = {}; | ||
if(node.hovers[className]) return; | ||
node.hovers[className] = true; | ||
hookHoverEvent(node, events.on, function() { node.className += ' ' + className; }); | ||
hookHoverEvent(node, events.off, function() { node.className = node.className.replace(new RegExp('\\s+'+className, 'g'),''); }); | ||
} | ||
function hookHoverEvent(node, type, handler) { | ||
node.attachEvent(type, handler); | ||
hoverEvents[hoverEvents.length] = { | ||
node:node, type:type, handler:handler | ||
}; | ||
} | ||
|
||
function unhookHoverEvents() { | ||
for(var e,i=0; i<hoverEvents.length; i++) { | ||
e = hoverEvents[i]; | ||
e.node.detachEvent(e.type, e.handler); | ||
} | ||
} | ||
|
||
function getElementsBySelect(rule) { | ||
var parts, nodes = [doc]; | ||
parts = rule.split(' '); | ||
for(var i=0; i<parts.length; i++) { | ||
nodes = getSelectedNodes(parts[i], nodes); | ||
} return nodes; | ||
} | ||
function getSelectedNodes(select, elements) { | ||
var result, node, nodes = []; | ||
var identify = (/\#([a-z0-9_-]+)/i).exec(select); | ||
if(identify) { | ||
var element = doc.getElementById(identify[1]); | ||
return element? [element]:nodes; | ||
} | ||
|
||
var classname = (/\.([a-z0-9_-]+)/i).exec(select); | ||
var tagName = select.replace(/(\.|\#|\:)[a-z0-9_-]+/i, ''); | ||
var classReg = classname? new RegExp('\\b' + classname[1] + '\\b'):false; | ||
for(var i=0; i<elements.length; i++) { | ||
result = tagName? elements[i].all.tags(tagName):elements[i].all; | ||
for(var j=0; j<result.length; j++) { | ||
node = result[j]; | ||
if(classReg && !classReg.test(node.className)) continue; | ||
nodes[nodes.length] = node; | ||
} | ||
} | ||
|
||
return nodes; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
Correctly handle PNG transparency in Win IE 5.5 & 6. | ||
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006. | ||
Use in <HEAD> with DEFER keyword wrapped in conditional comments: | ||
<!--[if lt IE 7]> | ||
<script defer type="text/javascript" src="pngfix.js"></script> | ||
<![endif]--> | ||
*/ | ||
|
||
function fix_ie_pngs() { | ||
|
||
var arVersion = navigator.appVersion.split("MSIE") | ||
var version = parseFloat(arVersion[1]) | ||
|
||
if ((version >= 5.5) && (document.body.filters)) | ||
{ | ||
for(var i=0; i<document.images.length; i++) | ||
{ | ||
var img = document.images[i] | ||
var imgName = img.src.toUpperCase() | ||
if (imgName.substring(imgName.length-3, imgName.length) == "PNG") | ||
{ | ||
var imgID = (img.id) ? "id='" + img.id + "' " : "" | ||
var imgClass = (img.className) ? "class='" + img.className + "' " : "" | ||
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " | ||
var imgStyle = "display:inline-block;" + img.style.cssText | ||
if (img.align == "left") imgStyle = "float:left;" + imgStyle | ||
if (img.align == "right") imgStyle = "float:right;" + imgStyle | ||
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle | ||
var strNewHTML = "<span " + imgID + imgClass + imgTitle | ||
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" | ||
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" | ||
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" | ||
img.outerHTML = strNewHTML | ||
i = i-1 | ||
} | ||
} | ||
} | ||
} | ||
|
||
fix_ie_pngs(); |
Oops, something went wrong.