# HG changeset patch # User Brian Neal # Date 1238987459 0 # Node ID 0dcfcdf50c62590f7327264589c0df24c0dffc16 # Parent df0370bfe3f0167d7d9cfa01f25d4e43bae45f6f Initial import of Madeira project from the private repository. diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/css/theme.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/css/theme.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,284 @@ +body { + font-family: arial, helvetica, sans-serif; + color: #EF7D21; + background-color: #213442; +} + +.centered { text-align: center; } + +A:link { + color: #6B969C; + text-decoration: none; +} + +A:visited { + color: #6B969C; + text-decoration: none; +} + +A:hover { + text-decoration: underline; +} + +h1 { + font: italic 32px georgia, 'times new roman', sans-serif; + margin: 0px; + padding: 0 0 10px 0; +} + +.headline1 { + font: italic 32px georgia, 'times new roman', sans-serif; + margin: 0px; + padding: 0 0 10px 0; +} + +h2 { + font: italic 20px verdana, tahoma, arial, sans-serif; + padding-top: 5px; + color: #6B969C; + border-top: solid 1px #6B969C; +} + +div.madeira-photo-list { + margin: 2em; + text-align: center; +} + +div.madeira-photo-list img { + border: thin dotted #6B969C; + padding: 2px; + margin: 5px; +} + +a.img-link:link { text-decoration: none; background-color: transparent; } +a.img-link:visited { text-decoration: none; background-color: transparent; } +a.img-link:hover { text-decoration: none; background-color: transparent; } + +.header { + margin-top: 10px; + margin-left: 5px; +} + +.content { + margin: 20px 1em 1em 150px; + max-width: 840px; + z-index: 3; + padding: 5px; +} + +.photobkgnd { + margin: 3em; + z-index: 3; + background-color: #888888; + padding: 5px; +} + +.newsflash { + margin: 20px 1em; + border: 3px solid #6B969C; + padding: 5px; + background-color: #2e414f; + color: #EF7D21; +} + +/* +** f'in IE doesn't seem to honor my padding and the float doesn't work. +** solution: make an invisible border...lame. +** It's fine in Firefox. +*/ +.floatLeftBox { + /* padding: 0 1em 1em 0; I wish I could just use this */ + float: left; + border-right: 0.5em solid #213442; + border-bottom: 0.5em solid #213442; +} + +.clearMe { + clear: left; +} + +.cdCoverFloatList { + margin-left: 260px; + text-align: left; +} + +/* For internal links (within the same page) */ +.intLink { + margin-top: 2em; + font-size: small; +} + +label.normal { + width: 9em; + float: left; + text-align: right; + margin: 0 1em 10px 0; + clear: both; + font-weight: bold; +} + +.form-box { + color: black; + background: #ccc; + border-top: black solid 2px; + border-left: black solid 2px; + border-bottom: #eee solid 2px; + border-right: #eee solid 2px; + margin-bottom: 5px; +} + +.form-radio { + margin-left: 10em; +} + +.form-comment { + font-style: italic; + font-size: x-small; + margin-left: 10em; + margin-bottom: 10px; +} + +.submit-button { + color: black; + background: #6B969C; + border: 2px outset; + padding: 3px; +} + +table.input-form th { + vertical-align: top; +} + +ul.errorlist { + margin: 0 0 0 1em; + padding: 2px; +} +.errorlist li { + color: red; +} + +fieldset { + border: 1px solid teal; + margin-top: 2em; +} + +legend { + background: #6B969C; + color: black; + border: 1px solid black; + padding: 2px 12px 2px 12px; +} + +#footer { + clear: both; + list-style-type: none; + margin-top: 30px; + padding-top: 1em; + border-top: solid 1px #6B969C; + font-size: small; + font-style: italic; + text-align: right; +} + +#navleft { + position: absolute; + top: 343px; + left: 10px; + width: 130px; + height: auto; +} + +#navleft ul { + margin: 0 0 0 0; + padding: 0 0 0 0; + font: 12px verdana, tahoma, arial, sans-serif; + font: bold 15px georgia, 'times new roman', sans-serif; + list-style-type: none; + display: inline; +} + +#navleft li { + margin: 0px 0 0; + display: inline; +} + +#navleft a { + display: block; + width: 118px; + padding: 2px 2px 2px 10px; + border: 1px solid #000000; + /* background: #EF7D21; */ + /* color: #213442; */ + background: #6B969C; + color: #EF7D21; + text-decoration: none; +} + +#navleft a:link, #navleft a:active, #navleft a:visited { + color: #213442; +} + +#navleft a:hover { + border: 1px solid #000000; + background: #213442; + background: #EF7D21; + color: #EF7D21; + background: #213442 url(../images/brick.gif); + color: #ffffff; + color: #6B969C; + color: #213442; +} + +div.article-source { + font-style: italic; + padding-bottom: 2px; + margin-bottom: 5px; +} + +div.center-block { + margin: 10px 30px 10px 30px; + border: 1px solid #6B969C; + padding: 3px; +} + +div.center-block h2 { + font: italic 20px verdana, tahoma, arial, sans-serif; + padding-top: 1px; + margin-top: 1px; + color: #6B969C; + border-top: none; + text-align: center; +} + +div.thumb-box { + margin: 20px 1em; + border: 3px solid #6B969C; + padding: 5px; + background-color: #2e414f; + color: #EF7D21; +} + +div.thumb-box img { + border: thin dotted #6B969C; + padding: 2px; + margin: 5px; +} + +div.thumb-box h2 { + font: italic 20px verdana, tahoma, arial, sans-serif; + padding-top: 1px; + margin-top: 1px; + color: #6B969C; + border-top: none; + text-align: center; +} + +table.image-table { + float: left; + margin: 0 5px 20px 0; +} + +table.image-table caption { + font-size: x-small; + caption-side: top; +} diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/css/thickbox.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/css/thickbox.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,163 @@ +/* ----------------------------------------------------------------------------------------------------------------*/ +/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/ +/* ----------------------------------------------------------------------------------------------------------------*/ +/* *{padding: 0; margin: 0;} */ + +/* ----------------------------------------------------------------------------------------------------------------*/ +/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/ +/* ----------------------------------------------------------------------------------------------------------------*/ +#TB_window { + font: 12px Arial, Helvetica, sans-serif; + color: #333333; +} + +#TB_secondLine { + font: 10px Arial, Helvetica, sans-serif; + color:#666666; +} + +#TB_window a:link {color: #666666;} +#TB_window a:visited {color: #666666;} +#TB_window a:hover {color: #000;} +#TB_window a:active {color: #666666;} +#TB_window a:focus{color: #666666;} + +/* ----------------------------------------------------------------------------------------------------------------*/ +/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/ +/* ----------------------------------------------------------------------------------------------------------------*/ +#TB_overlay { + position: fixed; + z-index:100; + top: 0px; + left: 0px; + height:100%; + width:100%; +} + +.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;} +.TB_overlayBG { + background-color:#000; + filter:alpha(opacity=75); + -moz-opacity: 0.75; + opacity: 0.75; +} + +* html #TB_overlay { /* ie6 hack */ + position: absolute; + height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); +} + +#TB_window { + position: fixed; + background: #ffffff; + z-index: 102; + color:#000000; + display:none; + border: 4px solid #525252; + text-align:left; + top:50%; + left:50%; +} + +* html #TB_window { /* ie6 hack */ +position: absolute; +margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); +} + +#TB_window img#TB_Image { + display:block; + margin: 15px 0 0 15px; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + border-top: 1px solid #666; + border-left: 1px solid #666; +} + +#TB_caption{ + height:25px; + padding:7px 30px 10px 25px; + float:left; +} + +#TB_closeWindow{ + height:25px; + padding:11px 25px 10px 0; + float:right; +} + +#TB_closeAjaxWindow{ + padding:7px 10px 5px 0; + margin-bottom:1px; + text-align:right; + float:right; +} + +#TB_ajaxWindowTitle{ + float:left; + padding:7px 0 5px 10px; + margin-bottom:1px; +} + +#TB_title{ + background-color:#e8e8e8; + height:27px; +} + +#TB_ajaxContent{ + clear:both; + padding:2px 15px 15px 15px; + overflow:auto; + text-align:left; + line-height:1.4em; +} + +#TB_ajaxContent.TB_modal{ + padding:15px; +} + +#TB_ajaxContent p{ + padding:5px 0px 5px 0px; +} + +#TB_load{ + position: fixed; + display:none; + height:13px; + width:208px; + z-index:103; + top: 50%; + left: 50%; + margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */ +} + +* html #TB_load { /* ie6 hack */ +position: absolute; +margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); +} + +#TB_HideSelect{ + z-index:99; + position:fixed; + top: 0; + left: 0; + background-color:#fff; + border:none; + filter:alpha(opacity=0); + -moz-opacity: 0; + opacity: 0; + height:100%; + width:100%; +} + +* html #TB_HideSelect { /* ie6 hack */ + position: absolute; + height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); +} + +#TB_iframeContent{ + clear:both; + border:none; + margin-bottom:-1px; + margin-top:1px; + _margin-bottom:1px; +} diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/base.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/base.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,746 @@ +/* + DJANGO Admin styles +*/ + +body { + margin: 0; + padding: 0; + font-size: 12px; + font-family: "Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif; + color: #333; + background: #fff; +} + +/* LINKS */ + +a:link, a:visited { + color: #5b80b2; + text-decoration: none; +} + +a:hover { + color: #036; +} + +a img { + border: none; +} + +a.section:link, a.section:visited { + color: white; + text-decoration: none; +} + +/* GLOBAL DEFAULTS */ + +p, ol, ul, dl { + margin: .2em 0 .8em 0; +} + +p { + padding: 0; + line-height: 140%; +} + +h1,h2,h3,h4,h5 { + font-weight: bold; +} + +h1 { + font-size: 18px; + color: #666; + padding: 0 6px 0 0; + margin: 0 0 .2em 0; +} + +h2 { + font-size: 16px; + margin: 1em 0 .5em 0; +} + +h2.subhead { + font-weight: normal; + margin-top: 0; +} + +h3 { + font-size: 14px; + margin: .8em 0 .3em 0; + color: #666; + font-weight: bold; +} + +h4 { + font-size: 12px; + margin: 1em 0 .8em 0; + padding-bottom: 3px; +} + +h5 { + font-size: 10px; + margin: 1.5em 0 .5em 0; + color: #666; + text-transform: uppercase; + letter-spacing: 1px; +} + +ul li { + list-style-type: square; + padding: 1px 0; +} + +ul.plainlist { + margin-left: 0 !important; +} + +ul.plainlist li { + list-style-type: none; +} + +li ul { + margin-bottom: 0; +} + +li, dt, dd { + font-size: 11px; + line-height: 14px; +} + +dt { + font-weight: bold; + margin-top: 4px; +} + +dd { + margin-left: 0; +} + +form { + margin: 0; + padding: 0; +} + +fieldset { + margin: 0; + padding: 0; +} + +blockquote { + font-size: 11px; + color: #777; + margin-left: 2px; + padding-left: 10px; + border-left: 5px solid #ddd; +} + +code, pre { + font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace; + background: inherit; + color: #666; + font-size: 11px; +} + +pre.literal-block { + margin: 10px; + background: #eee; + padding: 6px 8px; +} + +code strong { + color: #930; +} + +hr { + clear: both; + color: #eee; + background-color: #eee; + height: 1px; + border: none; + margin: 0; + padding: 0; + font-size: 1px; + line-height: 1px; +} + +/* TEXT STYLES & MODIFIERS */ + +.small { + font-size: 11px; +} + +.tiny { + font-size: 10px; +} + +p.tiny { + margin-top: -2px; +} + +.mini { + font-size: 9px; +} + +p.mini { + margin-top: -3px; +} + +.help, p.help { + font-size: 10px !important; + color: #999; +} + +p img, h1 img, h2 img, h3 img, h4 img, td img { + vertical-align: middle; +} + +.quiet, a.quiet:link, a.quiet:visited { + color: #999 !important; + font-weight: normal !important; +} + +.quiet strong { + font-weight: bold !important; +} + +.float-right { + float: right; +} + +.float-left { + float: left; +} + +.clear { + clear: both; +} + +.align-left { + text-align: left; +} + +.align-right { + text-align: right; +} + +.example { + margin: 10px 0; + padding: 5px 10px; + background: #efefef; +} + +.nowrap { + white-space: nowrap; +} + +/* TABLES */ + +table { + border-collapse: collapse; + border-color: #ccc; +} + +td, th { + font-size: 11px; + line-height: 13px; + border-bottom: 1px solid #eee; + vertical-align: top; + padding: 5px; + font-family: "Lucida Grande", Verdana, Arial, sans-serif; +} + +th { + text-align: left; + font-size: 12px; + font-weight: bold; +} + +thead th, +tfoot td { + color: #666; + padding: 2px 5px; + font-size: 11px; + background: #e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-x; + border-left: 1px solid #ddd; + border-bottom: 1px solid #ddd; +} + +tfoot td { + border-bottom: none; + border-top: 1px solid #ddd; +} + +thead th:first-child, +tfoot td:first-child { + border-left: none !important; +} + +thead th.optional { + font-weight: normal !important; +} + +fieldset table { + border-right: 1px solid #eee; +} + +tr.row-label td { + font-size: 9px; + padding-top: 2px; + padding-bottom: 0; + border-bottom: none; + color: #666; + margin-top: -1px; +} + +tr.alt { + background: #f6f6f6; +} + +.row1 { + background: #EDF3FE; +} + +.row2 { + background: white; +} + +/* SORTABLE TABLES */ + +thead th a:link, thead th a:visited { + color: #666; + display: block; +} + +table thead th.sorted { + background-position: bottom left !important; +} + +table thead th.sorted a { + padding-right: 13px; +} + +table thead th.ascending a { + background: url(../img/admin/arrow-down.gif) right .4em no-repeat; +} + +table thead th.descending a { + background: url(../img/admin/arrow-up.gif) right .4em no-repeat; +} + +/* ORDERABLE TABLES */ + +table.orderable tbody tr td:hover { + cursor: move; +} + +table.orderable tbody tr td:first-child { + padding-left: 14px; + background-image: url(../img/admin/nav-bg-grabber.gif); + background-repeat: repeat-y; +} + +table.orderable-initalized .order-cell, body>tr>td.order-cell { + display: none; +} + +/* FORM DEFAULTS */ + +input, textarea, select { + margin: 2px 0; + padding: 2px 3px; + vertical-align: middle; + font-family: "Lucida Grande", Verdana, Arial, sans-serif; + font-weight: normal; + font-size: 11px; +} + +textarea { + vertical-align: top !important; +} + +input[type=text], input[type=password], textarea, select, .vTextField { + border: 1px solid #ccc; +} + +/* FORM BUTTONS */ + +.button, input[type=submit], input[type=button], .submit-row input { + background: white url(../img/admin/nav-bg.gif) bottom repeat-x; + padding: 3px; + color: black; + border: 1px solid #bbb; + border-color: #ddd #aaa #aaa #ddd; +} + +.button:active, input[type=submit]:active, input[type=button]:active { + background-image: url(../img/admin/nav-bg-reverse.gif); + background-position: top; +} + +.button.default, input[type=submit].default, .submit-row input.default { + border: 2px solid #5b80b2; + background: #7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x; + font-weight: bold; + color: white; + float: right; +} + +.button.default:active, input[type=submit].default:active { + background-image: url(../img/admin/default-bg-reverse.gif); + background-position: top; +} + +/* MODULES */ + +.module { + border: 1px solid #ccc; + margin-bottom: 5px; + background: white; +} + +.module p, .module ul, .module h3, .module h4, .module dl, .module pre { + padding-left: 10px; + padding-right: 10px; +} + +.module blockquote { + margin-left: 12px; +} + +.module ul, .module ol { + margin-left: 1.5em; +} + +.module h3 { + margin-top: .6em; +} + +.module h2, .module caption, .inline-group h2 { + margin: 0; + padding: 2px 5px 3px 5px; + font-size: 11px; + text-align: left; + font-weight: bold; + background: #7CA0C7 url(../img/admin/default-bg.gif) top left repeat-x; + color: white; +} + +.module table { + border-collapse: collapse; +} + +/* MESSAGES & ERRORS */ + +ul.messagelist { + padding: 0 0 5px 0; + margin: 0; +} + +ul.messagelist li { + font-size: 12px; + display: block; + padding: 4px 5px 4px 25px; + margin: 0 0 3px 0; + border-bottom: 1px solid #ddd; + color: #666; + background: #ffc url(../img/admin/icon_success.gif) 5px .3em no-repeat; +} + +.errornote { + font-size: 12px !important; + display: block; + padding: 4px 5px 4px 25px; + margin: 0 0 3px 0; + border: 1px solid red; + color: red; + background: #ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat; +} + +ul.errorlist { + margin: 0 !important; + padding: 0 !important; +} + +.errorlist li { + font-size: 12px !important; + display: block; + padding: 4px 5px 4px 25px; + margin: 0 0 3px 0; + border: 1px solid red; + color: white; + background: red url(../img/admin/icon_alert.gif) 5px .3em no-repeat; +} + +td ul.errorlist { + margin: 0 !important; + padding: 0 !important; +} + +td ul.errorlist li { + margin: 0 !important; +} + +.errors { + background: #ffc; +} + +.errors input, .errors select { + border: 1px solid red; +} + +div.system-message { + background: #ffc; + margin: 10px; + padding: 6px 8px; + font-size: .8em; +} + +div.system-message p.system-message-title { + padding: 4px 5px 4px 25px; + margin: 0; + color: red; + background: #ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat; +} + +.description { + font-size: 12px; + padding: 5px 0 0 12px; +} + +/* BREADCRUMBS */ + +div.breadcrumbs { + background: white url(../img/admin/nav-bg-reverse.gif) 0 -10px repeat-x; + padding: 2px 8px 3px 8px; + font-size: 11px; + color: #999; + border-top: 1px solid white; + border-bottom: 1px solid #ccc; + text-align: left; +} + +/* ACTION ICONS */ + +.addlink { + padding-left: 12px; + background: url(../img/admin/icon_addlink.gif) 0 .2em no-repeat; +} + +.changelink { + padding-left: 12px; + background: url(../img/admin/icon_changelink.gif) 0 .2em no-repeat; +} + +.deletelink { + padding-left: 12px; + background: url(../img/admin/icon_deletelink.gif) 0 .25em no-repeat; +} + +a.deletelink:link, a.deletelink:visited { + color: #CC3434; +} + +a.deletelink:hover { + color: #993333; +} + +/* OBJECT TOOLS */ + +.object-tools { + font-size: 10px; + font-weight: bold; + font-family: Arial,Helvetica,sans-serif; + padding-left: 0; + float: right; + position: relative; + margin-top: -2.4em; + margin-bottom: -2em; +} + +.form-row .object-tools { + margin-top: 5px; + margin-bottom: 5px; + float: none; + height: 2em; + padding-left: 3.5em; +} + +.object-tools li { + display: block; + float: left; + background: url(../img/admin/tool-left.gif) 0 0 no-repeat; + padding: 0 0 0 8px; + margin-left: 2px; + height: 16px; +} + +.object-tools li:hover { + background: url(../img/admin/tool-left_over.gif) 0 0 no-repeat; +} + +.object-tools a:link, .object-tools a:visited { + display: block; + float: left; + color: white; + padding: .1em 14px .1em 8px; + height: 14px; + background: #999 url(../img/admin/tool-right.gif) 100% 0 no-repeat; +} + +.object-tools a:hover, .object-tools li:hover a { + background: #5b80b2 url(../img/admin/tool-right_over.gif) 100% 0 no-repeat; +} + +.object-tools a.viewsitelink, .object-tools a.golink { + background: #999 url(../img/admin/tooltag-arrowright.gif) top right no-repeat; + padding-right: 28px; +} + +.object-tools a.viewsitelink:hover, .object-tools a.golink:hover { + background: #5b80b2 url(../img/admin/tooltag-arrowright_over.gif) top right no-repeat; +} + +.object-tools a.addlink { + background: #999 url(../img/admin/tooltag-add.gif) top right no-repeat; + padding-right: 28px; +} + +.object-tools a.addlink:hover { + background: #5b80b2 url(../img/admin/tooltag-add_over.gif) top right no-repeat; +} + +/* OBJECT HISTORY */ + +table#change-history { + width: 100%; +} + +table#change-history tbody th { + width: 16em; +} + +/* PAGE STRUCTURE */ + +#container { + position: relative; + width: 100%; + min-width: 760px; + padding: 0; +} + +#content { + margin: 10px 15px; +} + +#header { + width: 100%; +} + +#content-main { + float: left; + width: 100%; +} + +#content-related { + float: right; + width: 18em; + position: relative; + margin-right: -19em; +} + +#footer { + clear: both; + padding: 10px; +} + +/* COLUMN TYPES */ + +.colMS { + margin-right: 20em !important; +} + +.colSM { + margin-left: 20em !important; +} + +.colSM #content-related { + float: left; + margin-right: 0; + margin-left: -19em; +} + +.colSM #content-main { + float: right; +} + +.popup .colM { + width: 95%; +} + +.subcol { + float: left; + width: 46%; + margin-right: 15px; +} + +.dashboard #content { + width: 500px; +} + +/* HEADER */ + +#header { + background: #417690; + color: #ffc; + overflow: hidden; +} + +#header a:link, #header a:visited { + color: white; +} + +#header a:hover { + text-decoration: underline; +} + +#branding h1 { + padding: 0 10px; + font-size: 18px; + margin: 8px 0; + font-weight: normal; + color: #f4f379; +} + +#branding h2 { + padding: 0 10px; + font-size: 14px; + margin: -8px 0 8px 0; + font-weight: normal; + color: #ffc; +} + +#user-tools { + position: absolute; + top: 0; + right: 0; + padding: 1.2em 10px; + font-size: 11px; + text-align: right; +} + +/* SIDEBAR */ + +#content-related h3 { + font-size: 12px; + color: #666; + margin-bottom: 3px; +} + +#content-related h4 { + font-size: 11px; +} + +#content-related .module h2 { + background: #eee url(../img/admin/nav-bg.gif) bottom left repeat-x; + color: #666; +} + diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/changelists.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/changelists.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,211 @@ +/* CHANGELISTS */ + +#changelist { + position: relative; + width: 100%; +} + +#changelist table { + width: 100%; +} + +.change-list .filtered table { + border-right: 1px solid #ddd; +} + +.change-list .filtered { + min-height: 400px; +} + +.change-list .filtered { + background: white url(../img/admin/changelist-bg.gif) top right repeat-y !important; +} + +.change-list .filtered table, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull { + margin-right: 160px !important; + width: auto !important; +} + +.change-list .filtered table tbody th { + padding-right: 1em; +} + +#changelist .toplinks { + border-bottom: 1px solid #ccc !important; +} + +#changelist .paginator { + color: #666; + border-top: 1px solid #eee; + border-bottom: 1px solid #eee; + background: white url(../img/admin/nav-bg.gif) 0 180% repeat-x; + overflow: hidden; +} + +.change-list .filtered .paginator { + border-right: 1px solid #ddd; +} + +/* CHANGELIST TABLES */ + +#changelist table thead th { + white-space: nowrap; +} + +#changelist table tbody td { + border-left: 1px solid #ddd; +} + +#changelist table tfoot { + color: #666; +} + +/* TOOLBAR */ + +#changelist #toolbar { + padding: 3px; + border-bottom: 1px solid #ddd; + background: #e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-x; + color: #666; +} + +#changelist #toolbar form input { + font-size: 11px; + padding: 1px 2px; +} + +#changelist #toolbar form #searchbar { + padding: 2px; +} + +#changelist #changelist-search img { + vertical-align: middle; +} + +/* FILTER COLUMN */ + +#changelist-filter { + position: absolute; + top: 0; + right: 0; + z-index: 1000; + width: 160px; + border-left: 1px solid #ddd; + background: #efefef; + margin: 0; +} + +#changelist-filter h2 { + font-size: 11px; + padding: 2px 5px; + border-bottom: 1px solid #ddd; +} + +#changelist-filter h3 { + font-size: 12px; + margin-bottom: 0; +} + +#changelist-filter ul { + padding-left: 0; + margin-left: 10px; +} + +#changelist-filter li { + list-style-type: none; + margin-left: 0; + padding-left: 0; +} + +#changelist-filter a { + color: #999; +} + +#changelist-filter a:hover { + color: #036; +} + +#changelist-filter li.selected { + border-left: 5px solid #ccc; + padding-left: 5px; + margin-left: -10px; +} + +#changelist-filter li.selected a { + color: #5b80b2 !important; +} + +/* DATE DRILLDOWN */ + +.change-list ul.toplinks { + display: block; + background: white url(../img/admin/nav-bg-reverse.gif) 0 -10px repeat-x; + border-top: 1px solid white; + float: left; + padding: 0 !important; + margin: 0 !important; + width: 100%; +} + +.change-list ul.toplinks li { + float: left; + width: 9em; + padding: 3px 6px; + font-weight: bold; + list-style-type: none; +} + +.change-list ul.toplinks .date-back a { + color: #999; +} + +.change-list ul.toplinks .date-back a:hover { + color: #036; +} + +/* PAGINATOR */ + +.paginator { + font-size: 11px; + padding-top: 10px; + padding-bottom: 10px; + line-height: 22px; + margin: 0; + border-top: 1px solid #ddd; +} + +.paginator a:link, .paginator a:visited { + padding: 2px 6px; + border: solid 1px #ccc; + background: white; + text-decoration: none; +} + +.paginator a.showall { + padding: 0 !important; + border: none !important; +} + +.paginator a.showall:hover { + color: #036 !important; + background: transparent !important; +} + +.paginator .end { + border-width: 2px !important; + margin-right: 6px; +} + +.paginator .this-page { + padding: 2px 6px; + font-weight: bold; + font-size: 13px; + vertical-align: top; +} + +.paginator a:hover { + color: white; + background: #5b80b2; + border-color: #036; +} + diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/dashboard.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/dashboard.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,24 @@ +/* DASHBOARD */ + +.dashboard .module table th { + width: 100%; +} + +.dashboard .module table td { + white-space: nowrap; +} + +.dashboard .module table td a { + display: block; + padding-right: .6em; +} + +/* RECENT ACTIONS MODULE */ + +.module ul.actionlist { + margin-left: 0; +} + +ul.actionlist li { + list-style-type: none; +} diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/forms.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/forms.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,327 @@ +@import url('widgets.css'); + +/* FORM ROWS */ + +.form-row { + overflow: hidden; + padding: 8px 12px; + font-size: 11px; + border-bottom: 1px solid #eee; +} + +.form-row img, .form-row input { + vertical-align: middle; +} + +form .form-row p { + padding-left: 0; + font-size: 11px; +} + +/* FORM LABELS */ + +form h4 { + margin: 0 !important; + padding: 0 !important; + border: none !important; +} + +label { + font-weight: normal !important; + color: #666; + font-size: 12px; +} + +.required label, label.required { + font-weight: bold !important; + color: #333 !important; +} + +/* RADIO BUTTONS */ + +form ul.radiolist li { + list-style-type: none; +} + +form ul.radiolist label { + float: none; + display: inline; +} + +form ul.inline { + margin-left: 0; + padding: 0; +} + +form ul.inline li { + float: left; + padding-right: 7px; +} + +/* ALIGNED FIELDSETS */ + +.aligned label { + display: block; + padding: 3px 10px 0 0; + float: left; + width: 8em; +} + +.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField { + width: 350px; +} + +form .aligned p, form .aligned ul { + margin-left: 7em; + padding-left: 30px; +} + +form .aligned table p { + margin-left: 0; + padding-left: 0; +} + +form .aligned p.help { + padding-left: 38px; +} + +.aligned .vCheckboxLabel { + float: none !important; + display: inline; + padding-left: 4px; +} + +.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField { + width: 610px; +} + +.checkbox-row p.help { + margin-left: 0; + padding-left: 0 !important; +} + +fieldset .field-box { + float: left; + margin-right: 20px; +} + +/* WIDE FIELDSETS */ + +.wide label { + width: 15em !important; +} + +form .wide p { + margin-left: 15em; +} + +form .wide p.help { + padding-left: 38px; +} + +.colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField { + width: 450px; +} + +/* COLLAPSED FIELDSETS */ + +fieldset.collapsed * { + display: none; +} + +fieldset.collapsed h2, fieldset.collapsed { + display: block !important; +} + +fieldset.collapsed h2 { + background-image: url(../img/admin/nav-bg.gif); + background-position: bottom left; + color: #999; +} + +fieldset.collapsed .collapse-toggle { + padding: 3px 5px !important; + background: transparent; + display: inline !important; +} + +/* MONOSPACE TEXTAREAS */ + +fieldset.monospace textarea { + font-family: "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace; +} + +/* SUBMIT ROW */ + +.submit-row { + padding: 5px 7px; + text-align: right; + background: white url(../img/admin/nav-bg.gif) 0 100% repeat-x; + border: 1px solid #ccc; + margin: 5px 0; + overflow: hidden; +} + +.submit-row input { + margin: 0 0 0 5px; +} + +.submit-row p { + margin: 0.3em; +} + +.submit-row p.deletelink-box { + float: left; +} + +.submit-row .deletelink { + background: url(../img/admin/icon_deletelink.gif) 0 50% no-repeat; + padding-left: 14px; +} + +/* CUSTOM FORM FIELDS */ + +.vSelectMultipleField { + vertical-align: top !important; +} + +.vCheckboxField { + border: none; +} + +.vDateField, .vTimeField { + margin-right: 2px; +} + +.vURLField { + width: 30em; +} + +.vLargeTextField, .vXMLLargeTextField { + width: 48em; +} + +.flatpages-flatpage #id_content { + height: 40.2em; +} + +.module table .vPositiveSmallIntegerField { + width: 2.2em; +} + +.vTextField { + width: 20em; +} + +.vIntegerField { + width: 5em; +} + +.vForeignKeyRawIdAdminField { + width: 5em; +} + +/* INLINES */ + +.inline-group { + padding: 0; + border: 1px solid #ccc; + margin: 10px 0; +} + +.inline-group .aligned label { + width: 8em; +} + +.inline-related { + position: relative; +} + +.inline-related h3 { + margin: 0; + color: #666; + padding: 3px 5px; + font-size: 11px; + background: #e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-x; + border-bottom: 1px solid #ddd; +} + +.inline-related h3 span.delete { + padding-left: 20px; + position: absolute; + top: 2px; + right: 10px; +} + +.inline-related h3 span.delete label { + margin-left: 2px; + font-size: 11px; +} + +.inline-related fieldset { + margin: 0; + background: #fff; + border: none; +} + +.inline-related fieldset.module h3 { + margin: 0; + padding: 2px 5px 3px 5px; + font-size: 11px; + text-align: left; + font-weight: bold; + background: #bcd; + color: #fff; +} + +.inline-related.tabular fieldset.module table { + width: 100%; +} + +.last-related fieldset { + border: none; +} + +.inline-group .tabular tr.has_original td { + padding-top: 2em; +} + +.inline-group .tabular tr td.original { + padding: 2px 0 0 0; + width: 0; + _position: relative; +} + +.inline-group .tabular th.original { + width: 0px; + padding: 0; +} + +.inline-group .tabular td.original p { + position: absolute; + left: 0; + height: 1.1em; + padding: 2px 7px; + overflow: hidden; + font-size: 9px; + font-weight: bold; + color: #666; + _width: 700px; +} + +.inline-group ul.tools { + padding: 0; + margin: 0; + list-style: none; +} + +.inline-group ul.tools li { + display: inline; + padding: 0 5px; +} + +.inline-group ul.tools a.add { + background: url(../img/admin/icon_addlink.gif) 0 50% no-repeat; + padding-left: 14px; +} + diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/global.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/global.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,142 @@ +body { margin:0; padding:0; font-size:12px; font-family:"Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif; color:#333; background:#fff; } + +/* LINKS */ +a:link, a:visited { color: #5b80b2; text-decoration:none; } +a:hover { color: #036; } +a img { border:none; } +a.section:link, a.section:visited { color: white; text-decoration:none; } + +/* GLOBAL DEFAULTS */ +p, ol, ul, dl { margin:.2em 0 .8em 0; } +p { padding:0; line-height:140%; } + +h1,h2,h3,h4,h5 { font-weight:bold; } +h1 { font-size:18px; color:#666; padding:0 6px 0 0; margin:0 0 .2em 0; } +h2 { font-size:16px; margin:1em 0 .5em 0; } +h2.subhead { font-weight:normal;margin-top:0; } +h3 { font-size:14px; margin:.8em 0 .3em 0; color:#666; font-weight:bold; } +h4 { font-size:12px; margin:1em 0 .8em 0; padding-bottom:3px; } +h5 { font-size:10px; margin:1.5em 0 .5em 0; color:#666; text-transform:uppercase; letter-spacing:1px; } + +ul li { list-style-type:square; padding:1px 0; } +ul.plainlist { margin-left:0 !important; } +ul.plainlist li { list-style-type:none; } +li ul { margin-bottom:0; } +li, dt, dd { font-size:11px; line-height:14px; } +dt { font-weight:bold; margin-top:4px; } +dd { margin-left:0; } + +form { margin:0; padding:0; } +fieldset { margin:0; padding:0; } + +blockquote { font-size:11px; color:#777; margin-left:2px; padding-left:10px; border-left:5px solid #ddd; } +code, pre { font-family:"Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace; background:inherit; color:#666; font-size:11px; } +pre.literal-block { margin:10px; background:#eee; padding:6px 8px; } +code strong { color:#930; } +hr { clear:both; color:#eee; background-color:#eee; height:1px; border:none; margin:0; padding:0; font-size:1px; line-height:1px; } + +/* TEXT STYLES & MODIFIERS */ +.small { font-size:11px; } +.tiny { font-size:10px; } +p.tiny { margin-top:-2px; } +.mini { font-size:9px; } +p.mini { margin-top:-3px; } +.help, p.help { font-size:10px !important; color:#999; } +p img, h1 img, h2 img, h3 img, h4 img, td img { vertical-align:middle; } +.quiet, a.quiet:link, a.quiet:visited { color:#999 !important;font-weight:normal !important; } +.quiet strong { font-weight:bold !important; } +.float-right { float:right; } +.float-left { float:left; } +.clear { clear:both; } +.align-left { text-align:left; } +.align-right { text-align:right; } +.example { margin:10px 0; padding:5px 10px; background:#efefef; } +.nowrap { white-space:nowrap; } + +/* TABLES */ +table { border-collapse:collapse; border-color:#ccc; } +td, th { font-size:11px; line-height:13px; border-bottom:1px solid #eee; vertical-align:top; padding:5px; font-family:"Lucida Grande", Verdana, Arial, sans-serif; } +th { text-align:left; font-size:12px; font-weight:bold; } +thead th, +tfoot td { color:#666; padding:2px 5px; font-size:11px; background:#e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-x; border-left:1px solid #ddd; border-bottom:1px solid #ddd; } +tfoot td { border-bottom:none; border-top:1px solid #ddd; } +thead th:first-child, +tfoot td:first-child { border-left:none !important; } +thead th.optional { font-weight:normal !important; } +fieldset table { border-right:1px solid #eee; } +tr.row-label td { font-size:9px; padding-top:2px; padding-bottom:0; border-bottom:none; color:#666; margin-top:-1px; } +tr.alt { background:#f6f6f6; } +.row1 { background:#EDF3FE; } +.row2 { background:white; } + +/* SORTABLE TABLES */ +thead th a:link, thead th a:visited { color:#666; display:block; } +table thead th.sorted { background-position:bottom left !important; } +table thead th.sorted a { padding-right:13px; } +table thead th.ascending a { background:url(../img/admin/arrow-down.gif) right .4em no-repeat; } +table thead th.descending a { background:url(../img/admin/arrow-up.gif) right .4em no-repeat; } + +/* ORDERABLE TABLES */ +table.orderable tbody tr td:hover { cursor:move; } +table.orderable tbody tr td:first-child { padding-left:14px; background-image:url(../img/admin/nav-bg-grabber.gif); background-repeat:repeat-y; } +table.orderable-initalized .order-cell, body>tr>td.order-cell { display:none; } + +/* FORM DEFAULTS */ +input, textarea, select { margin:2px 0; padding:2px 3px; vertical-align:middle; font-family:"Lucida Grande", Verdana, Arial, sans-serif; font-weight:normal; font-size:11px; } +textarea { vertical-align:top !important; } +input[type=text], input[type=password], textarea, select, .vTextField { border:1px solid #ccc; } + +/* FORM BUTTONS */ +input[type=submit], input[type=button], .submit-row input { background:white url(../img/admin/nav-bg.gif) bottom repeat-x; padding:3px; color:black; border:1px solid #bbb; border-color:#ddd #aaa #aaa #ddd; } +input[type=submit]:active, input[type=button]:active { background-image:url(../img/admin/nav-bg-reverse.gif); background-position:top; } +input[type=submit].default, .submit-row input.default { border:2px solid #5b80b2; background:#7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x; font-weight:bold; color:white; float:right; } +input[type=submit].default:active { background-image:url(../img/admin/default-bg-reverse.gif); background-position:top; } + +/* MODULES */ +.module { border:1px solid #ccc; margin-bottom:5px; background:white; } +.module p, .module ul, .module h3, .module h4, .module dl, .module pre { padding-left:10px; padding-right:10px; } +.module blockquote { margin-left:12px; } +.module ul, .module ol { margin-left:1.5em; } +.module h3 { margin-top:.6em; } +.module h2, .module caption, .inline-group h2 { margin:0; padding:2px 5px 3px 5px; font-size:11px; text-align:left; font-weight:bold; background:#7CA0C7 url(../img/admin/default-bg.gif) top left repeat-x; color:white; } +.module table { border-collapse: collapse; } + +/* MESSAGES & ERRORS */ +ul.messagelist { padding:0 0 5px 0; margin:0; } +ul.messagelist li { font-size:12px; display:block; padding:4px 5px 4px 25px; margin:0 0 3px 0; border-bottom:1px solid #ddd; color:#666; background:#ffc url(../img/admin/icon_success.gif) 5px .3em no-repeat; } +.errornote { font-size:12px !important; display:block; padding:4px 5px 4px 25px; margin:0 0 3px 0; border:1px solid red; color:red;background:#ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat; } +ul.errorlist { margin:0 !important; padding:0 !important; } +.errorlist li { font-size:12px !important; display:block; padding:4px 5px 4px 25px; margin:0 0 3px 0; border:1px solid red; color:white; background:red url(../img/admin/icon_alert.gif) 5px .3em no-repeat; } +td ul.errorlist { margin:0 !important; padding:0 !important; } +td ul.errorlist li { margin:0 !important; } +.errors { background:#ffc; } +.errors input, .errors select { border:1px solid red; } +div.system-message { background: #ffc; margin: 10px; padding: 6px 8px; font-size: .8em; } +div.system-message p.system-message-title { padding:4px 5px 4px 25px; margin:0; color:red; background:#ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat; } +.description { font-size:12px; padding:5px 0 0 12px; } + +/* BREADCRUMBS */ +div.breadcrumbs { background:white url(../img/admin/nav-bg-reverse.gif) 0 -10px repeat-x; padding:2px 8px 3px 8px; font-size:11px; color:#999; border-top:1px solid white; border-bottom:1px solid #ccc; text-align:left; } + +/* ACTION ICONS */ +.addlink { padding-left:12px; background:url(../img/admin/icon_addlink.gif) 0 .2em no-repeat; } +.changelink { padding-left:12px; background:url(../img/admin/icon_changelink.gif) 0 .2em no-repeat; } +.deletelink { padding-left:12px; background:url(../img/admin/icon_deletelink.gif) 0 .25em no-repeat; } +a.deletelink:link, a.deletelink:visited { color:#CC3434; } +a.deletelink:hover { color:#993333; } + +/* OBJECT TOOLS */ +.object-tools { font-size:10px; font-weight:bold; font-family:Arial,Helvetica,sans-serif; padding-left:0; float:right; position:relative; margin-top:-2.4em; margin-bottom:-2em; } +.form-row .object-tools { margin-top:5px; margin-bottom:5px; float:none; height:2em; padding-left:3.5em; } +.object-tools li { display:block; float:left; background:url(../img/admin/tool-left.gif) 0 0 no-repeat; padding:0 0 0 8px; margin-left:2px; height:16px; } +.object-tools li:hover { background:url(../img/admin/tool-left_over.gif) 0 0 no-repeat; } +.object-tools a:link, .object-tools a:visited { display:block; float:left; color:white; padding:.1em 14px .1em 8px; height:14px; background:#999 url(../img/admin/tool-right.gif) 100% 0 no-repeat; } +.object-tools a:hover, .object-tools li:hover a { background:#5b80b2 url(../img/admin/tool-right_over.gif) 100% 0 no-repeat; } +.object-tools a.viewsitelink, .object-tools a.golink { background:#999 url(../img/admin/tooltag-arrowright.gif) top right no-repeat; padding-right:28px; } +.object-tools a.viewsitelink:hover, .object-tools a.golink:hover { background:#5b80b2 url(../img/admin/tooltag-arrowright_over.gif) top right no-repeat; } +.object-tools a.addlink { background:#999 url(../img/admin/tooltag-add.gif) top right no-repeat; padding-right:28px; } +.object-tools a.addlink:hover { background:#5b80b2 url(../img/admin/tooltag-add_over.gif) top right no-repeat; } + +/* OBJECT HISTORY */ +table#change-history { width:100%; } +table#change-history tbody th { width:16em; } diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/ie.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/ie.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,51 @@ +/* IE 6 & 7 */ + +/* Proper fixed width for dashboard in IE6 */ + +.dashboard #content { + *width: 768px; +} + +.dashboard #content-main { + *width: 535px; +} + +/* IE 6 ONLY */ + +/* Keep header from flowing off the page */ + +#container { + _position: static; +} + +/* Put the right sidebars back on the page */ + +.colMS #content-related { + _margin-right: 0; + _margin-left: 10px; + _position: static; +} + +/* Put the left sidebars back on the page */ + +.colSM #content-related { + _margin-right: 10px; + _margin-left: -115px; + _position: static; +} + +.form-row { + _height: 1%; +} + +/* Fix right margin for changelist filters in IE6 */ + +#changelist-filter ul { + _margin-right: -10px; +} + +/* IE ignores min-height, but treats height as if it were min-height */ + +.change-list .filtered { + _height: 400px; +} \ No newline at end of file diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/layout.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/layout.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,29 @@ +/* PAGE STRUCTURE */ +#container { position:relative; width:100%; min-width:760px; padding:0; } +#content { margin:10px 15px; } +#header { width:100%; } +#content-main { float:left; width:100%; } +#content-related { float:right; width:18em; position:relative; margin-right:-19em; } +#footer { clear:both; padding:10px; } + +/* COLUMN TYPES */ +.colMS { margin-right:20em !important; } +.colSM { margin-left:20em !important; } +.colSM #content-related { float:left; margin-right:0; margin-left:-19em; } +.colSM #content-main { float:right; } +.popup .colM { width:95%; } +.subcol { float:left; width:46%; margin-right:15px; } +.dashboard #content { width:500px; } + +/* HEADER */ +#header { background:#417690; color:#ffc; overflow:hidden; } +#header a:link, #header a:visited { color:white; } +#header a:hover { text-decoration:underline; } +#branding h1 { padding:0 10px; font-size:18px; margin:8px 0; font-weight:normal; color:#f4f379; } +#branding h2 { padding:0 10px; font-size:14px; margin:-8px 0 8px 0; font-weight:normal; color:#ffc; } +#user-tools { position:absolute; top:0; right:0; padding:1.2em 10px; font-size:11px; text-align:right; } + +/* SIDEBAR */ +#content-related h3 { font-size:12px; color:#666; margin-bottom:3px; } +#content-related h4 { font-size:11px; } +#content-related .module h2 { background:#eee url(../img/admin/nav-bg.gif) bottom left repeat-x; color:#666; } \ No newline at end of file diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/login.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/login.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,54 @@ +/* LOGIN FORM */ + +body.login { + background: #eee; +} + +.login #container { + background: white; + border: 1px solid #ccc; + width: 28em; + min-width: 300px; + margin-left: auto; + margin-right: auto; + margin-top: 100px; +} + +.login #content-main { + width: 100%; +} + +.login form { + margin-top: 1em; +} + +.login .form-row { + padding: 4px 0; + float: left; + width: 100%; +} + +.login .form-row label { + float: left; + width: 9em; + padding-right: 0.5em; + line-height: 2em; + text-align: right; + font-size: 1em; + color: #333; +} + +.login .form-row #id_username, .login .form-row #id_password { + width: 14em; +} + +.login span.help { + font-size: 10px; + display: block; +} + +.login .submit-row { + clear: both; + padding: 1em 0 0 9.4em; +} + diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/null.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/null.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,1 @@ +/* Nothing to see here. Dummy file to feed to the high pass filter which hides CSS from IE5/win. Details: http://tantek.com/CSS/Examples/highpass.html */ \ No newline at end of file diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/patch-iewin.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/patch-iewin.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,8 @@ +* html #container { position:static; } /* keep header from flowing off the page */ +* html .colMS #content-related { margin-right:0; margin-left:10px; position:static; } /* put the right sidebars back on the page */ +* html .colSM #content-related { margin-right:10px; margin-left:-115px; position:static; } /* put the left sidebars back on the page */ +* html .form-row { height:1%; } +* html .dashboard #content { width:768px; } /* proper fixed width for dashboard in IE6 */ +* html .dashboard #content-main { width:535px; } /* proper fixed width for dashboard in IE6 */ +* html #changelist-filter ul { margin-right:-10px; } /* fix right margin for changelist filters in IE6 */ +* html .change-list .filtered { height:400px; } /* IE ignores min-height, but treats height as if it were min-height */ \ No newline at end of file diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/rtl.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/rtl.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,195 @@ +body { + direction: rtl; +} + +/* LOGIN */ + +.login .form-row { + float: right; +} + +.login .form-row label { + float: right; + padding-left: 0.5em; + padding-right: 0; + text-align: left; +} + +.login .submit-row { + clear: both; + padding: 1em 9.4em 0 0; +} + +/* GLOBAL */ + +th { + text-align: right; +} + +.module h2, .module caption { + text-align: right; +} + +.addlink, .changelink { + padding-left: 0px; + padding-right: 12px; + background-position: 100% 0.2em; +} + +.deletelink { + padding-left: 0px; + padding-right: 12px; + background-position: 100% 0.25em; +} + +.object-tools { + float: left; +} + +/* LAYOUT */ + +#user-tools { + right: auto; + left: 0; + text-align: left; +} + +div.breadcrumbs { + text-align: right; +} + +#content-main { + float: right; +} + +#content-related { + float: left; + margin-left: -19em; + margin-right: auto; +} + +.colMS { + margin-left: 20em !important; + margin-right: 10px !important; +} + +/* dashboard styles */ + +.dashboard .module table td a { + padding-left: .6em; + padding-right: 12px; +} + +/* changelists styles */ + +.change-list .filtered { + background: white url(../img/admin/changelist-bg_rtl.gif) top left repeat-y !important; +} + +.change-list .filtered table { + border-left: 1px solid #ddd; + border-right: 0px none; +} + +#changelist-filter { + right: auto; + left: 0; + border-left: 0px none; + border-right: 1px solid #ddd; +} + +.change-list .filtered table, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull { + margin-right: 0px !important; + margin-left: 160px !important; +} + +#changelist-filter li.selected { + border-left: 0px none; + padding-left: 0px; + margin-left: 0; + border-right: 5px solid #ccc; + padding-right: 5px; + margin-right: -10px; +} + +/* FORMS */ + +.aligned label { + padding: 0 0 3px 1em; + float: right; +} + +.submit-row { + text-align: left +} + +.submit-row p.deletelink-box { + float: right; +} + +.submit-row .deletelink { + background: url(../img/admin/icon_deletelink.gif) 0 50% no-repeat; + padding-right: 14px; +} + +.vDateField, .vTimeField { + margin-left: 2px; +} + +form ul.inline li { + float: right; + padding-right: 0; + padding-left: 7px; +} + +input[type=submit].default, .submit-row input.default { + float: left; +} + +fieldset .field-box { + float: right; + margin-left: 20px; +} + +.errorlist li { + background-position: 100% .3em; + padding: 4px 25px 4px 5px; +} + +.errornote { + background-position: 100% .3em; + padding: 4px 25px 4px 5px; +} + +/* WIDGETS */ + +.calendarnav-previous { + top: 0; + left: auto; + right: 0; +} + +.calendarnav-next { + top: 0; + right: auto; + left: 0; +} + +.calendar caption, .calendarbox h2 { + text-align: center; +} + +.selector { + float: right; +} + +.selector .selector-filter { + text-align: right; +} + +/* MISC */ + +.inline-related h2 { + text-align: right +} + diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/css/widgets.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/css/widgets.css Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,506 @@ +/* SELECTOR (FILTER INTERFACE) */ + +.selector { + width: 580px; + float: left; +} + +.selector select { + width: 270px; + height: 17.2em; +} + +.selector-available, .selector-chosen { + float: left; + width: 270px; + text-align: center; + margin-bottom: 5px; +} + +.selector-available h2, .selector-chosen h2 { + border: 1px solid #ccc; +} + +.selector .selector-available h2 { + background: white url(../img/admin/nav-bg.gif) bottom left repeat-x; + color: #666; +} + +.selector .selector-filter { + background: white; + border: 1px solid #ccc; + border-width: 0 1px; + padding: 3px; + color: #999; + font-size: 10px; + margin: 0; + text-align: left; +} + +.selector .selector-chosen .selector-filter { + padding: 4px 5px; +} + +.selector .selector-available input { + width: 230px; +} + +.selector ul.selector-chooser { + float: left; + width: 22px; + height: 50px; + background: url(../img/admin/chooser-bg.gif) top center no-repeat; + margin: 8em 3px 0 3px; + padding: 0; +} + +.selector-chooser li { + margin: 0; + padding: 3px; + list-style-type: none; +} + +.selector select { + margin-bottom: 5px; + margin-top: 0; +} + +.selector-add, .selector-remove { + width: 16px; + height: 16px; + display: block; + text-indent: -3000px; +} + +.selector-add { + background: url(../img/admin/selector-add.gif) top center no-repeat; + margin-bottom: 2px; +} + +.selector-remove { + background: url(../img/admin/selector-remove.gif) top center no-repeat; +} + +a.selector-chooseall, a.selector-clearall { + display: block; + width: 6em; + text-align: left; + margin-left: auto; + margin-right: auto; + font-weight: bold; + color: #666; + padding: 3px 0 3px 18px; +} + +a.selector-chooseall:hover, a.selector-clearall:hover { + color: #036; +} + +a.selector-chooseall { + width: 7em; + background: url(../img/admin/selector-addall.gif) left center no-repeat; +} + +a.selector-clearall { + background: url(../img/admin/selector-removeall.gif) left center no-repeat; +} + + +/* STACKED SELECTORS */ + +.stacked { + float: left; + width: 500px; +} + +.stacked select { + width: 480px; + height: 10.1em; +} + +.stacked .selector-available, .stacked .selector-chosen { + width: 480px; +} + +.stacked .selector-available { + margin-bottom: 0; +} + +.stacked .selector-available input { + width: 442px; +} + +.stacked ul.selector-chooser { + height: 22px; + width: 50px; + margin: 0 0 3px 40%; + background: url(../img/admin/chooser_stacked-bg.gif) top center no-repeat; +} + +.stacked .selector-chooser li { + float: left; + padding: 3px 3px 3px 5px; +} + +.stacked .selector-chooseall, .stacked .selector-clearall { + display: none; +} + +.stacked .selector-add { + background-image: url(../img/admin/selector_stacked-add.gif); +} + +.stacked .selector-remove { + background-image: url(../img/admin/selector_stacked-remove.gif); +} + + +/* DATE AND TIME */ + +p.datetime { + line-height: 20px; + margin: 0; + padding: 0; + color: #666; + font-size: 11px; + font-weight: bold; +} + +.datetime span { + font-size: 11px; + color: #ccc; + font-weight: normal; + white-space: nowrap; +} + +table p.datetime { + font-size: 10px; + margin-left: 0; + padding-left: 0; +} + +/* FILE UPLOADS */ + +p.file-upload { + line-height: 20px; + margin: 0; + padding: 0; + color: #666; + font-size: 11px; + font-weight: bold; +} + +.file-upload a { + font-weight: normal; +} + +.file-upload .deletelink { + margin-left: 5px; +} + +/* CALENDARS & CLOCKS */ + +.calendarbox, .clockbox { + margin: 5px auto; + font-size: 11px; + width: 16em; + text-align: center; + background: white; + position: relative; +} + +.clockbox { + width: auto; +} + +.calendar { + margin: 0; + padding: 0; +} + +.calendar table { + margin: 0; + padding: 0; + border-collapse: collapse; + background: white; + width: 99%; +} + +.calendar caption, .calendarbox h2 { + margin: 0; + font-size: 11px; + text-align: center; + border-top: none; +} + +.calendar th { + font-size: 10px; + color: #666; + padding: 2px 3px; + text-align: center; + background: #e1e1e1 url(../img/admin/nav-bg.gif) 0 50% repeat-x; + border-bottom: 1px solid #ddd; +} + +.calendar td { + font-size: 11px; + text-align: center; + padding: 0; + border-top: 1px solid #eee; + border-bottom: none; +} + +.calendar td.selected a { + background: #C9DBED; +} + +.calendar td.nonday { + background: #efefef; +} + +.calendar td.today a { + background: #ffc; +} + +.calendar td a, .timelist a { + display: block; + font-weight: bold; + padding: 4px; + text-decoration: none; + color: #444; +} + +.calendar td a:hover, .timelist a:hover { + background: #5b80b2; + color: white; +} + +.calendar td a:active, .timelist a:active { + background: #036; + color: white; +} + +.calendarnav { + font-size: 10px; + text-align: center; + color: #ccc; + margin: 0; + padding: 1px 3px; +} + +.calendarnav a:link, #calendarnav a:visited, #calendarnav a:hover { + color: #999; +} + +.calendar-shortcuts { + background: white; + font-size: 10px; + line-height: 11px; + border-top: 1px solid #eee; + padding: 3px 0 4px; + color: #ccc; +} + +.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next { + display: block; + position: absolute; + font-weight: bold; + font-size: 12px; + background: #C9DBED url(../img/admin/default-bg.gif) bottom left repeat-x; + padding: 1px 4px 2px 4px; + color: white; +} + +.calendarnav-previous:hover, .calendarnav-next:hover { + background: #036; +} + +.calendarnav-previous { + top: 0; + left: 0; +} + +.calendarnav-next { + top: 0; + right: 0; +} + +.calendar-cancel { + margin: 0 !important; + padding: 0; + font-size: 10px; + background: #e1e1e1 url(../img/admin/nav-bg.gif) 0 50% repeat-x; + border-top: 1px solid #ddd; +} + +.calendar-cancel a { + padding: 2px; + color: #999; +} + +ul.timelist, .timelist li { + list-style-type: none; + margin: 0; + padding: 0; +} + +.timelist a { + padding: 2px; +} + +/* INLINE ORDERER */ + +ul.orderer { + position: relative; + padding: 0 !important; + margin: 0 !important; + list-style-type: none; +} + +ul.orderer li { + list-style-type: none; + display: block; + padding: 0; + margin: 0; + border: 1px solid #bbb; + border-width: 0 1px 1px 0; + white-space: nowrap; + overflow: hidden; + background: #e2e2e2 url(../img/admin/nav-bg-grabber.gif) repeat-y; +} + +ul.orderer li:hover { + cursor: move; + background-color: #ddd; +} + +ul.orderer li a.selector { + margin-left: 12px; + overflow: hidden; + width: 83%; + font-size: 10px !important; + padding: 0.6em 0; +} + +ul.orderer li a:link, ul.orderer li a:visited { + color: #333; +} + +ul.orderer li .inline-deletelink { + position: absolute; + right: 4px; + margin-top: 0.6em; +} + +ul.orderer li.selected { + background-color: #f8f8f8; + border-right-color: #f8f8f8; +} + +ul.orderer li.deleted { + background: #bbb url(../img/admin/deleted-overlay.gif); +} + +ul.orderer li.deleted a:link, ul.orderer li.deleted a:visited { + color: #888; +} + +ul.orderer li.deleted .inline-deletelink { + background-image: url(../img/admin/inline-restore.png); +} + +ul.orderer li.deleted:hover, ul.orderer li.deleted a.selector:hover { + cursor: default; +} + +/* EDIT INLINE */ + +.inline-deletelink { + display: block; + text-indent: -9999px; + background: transparent url(../img/admin/inline-delete.png) no-repeat; + width: 15px; + height: 15px; + margin: 0.4em 0; + border: 0px none; +} + +.inline-deletelink:hover { + background-position: -15px 0; + cursor: pointer; +} + +.editinline button.addlink { + border: 0px none; + color: #5b80b2; + font-size: 100%; + cursor: pointer; +} + +.editinline button.addlink:hover { + color: #036; + cursor: pointer; +} + +.editinline table .help { + text-align: right; + float: right; + padding-left: 2em; +} + +.editinline tfoot .addlink { + white-space: nowrap; +} + +.editinline table thead th:last-child { + border-left: none; +} + +.editinline tr.deleted { + background: #ddd url(../img/admin/deleted-overlay.gif); +} + +.editinline tr.deleted .inline-deletelink { + background-image: url(../img/admin/inline-restore.png); +} + +.editinline tr.deleted td:hover { + cursor: default; +} + +.editinline tr.deleted td:first-child { + background-image: none !important; +} + +/* EDIT INLINE - STACKED */ + +.editinline-stacked { + min-width: 758px; +} + +.editinline-stacked .inline-object { + margin-left: 210px; + background: white; +} + +.editinline-stacked .inline-source { + float: left; + width: 200px; + background: #f8f8f8; +} + +.editinline-stacked .inline-splitter { + float: left; + width: 9px; + background: #f8f8f8 url(../img/admin/inline-splitter-bg.gif) 50% 50% no-repeat; + border-right: 1px solid #ccc; +} + +.editinline-stacked .controls { + clear: both; + background: #e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-x; + padding: 3px 4px; + font-size: 11px; + border-top: 1px solid #ddd; +} + diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/arrow-down.gif Binary file media/django/img/admin/arrow-down.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/arrow-up.gif Binary file media/django/img/admin/arrow-up.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/changelist-bg.gif Binary file media/django/img/admin/changelist-bg.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/changelist-bg_rtl.gif Binary file media/django/img/admin/changelist-bg_rtl.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/chooser-bg.gif Binary file media/django/img/admin/chooser-bg.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/chooser_stacked-bg.gif Binary file media/django/img/admin/chooser_stacked-bg.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/default-bg-reverse.gif Binary file media/django/img/admin/default-bg-reverse.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/default-bg.gif Binary file media/django/img/admin/default-bg.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/deleted-overlay.gif Binary file media/django/img/admin/deleted-overlay.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon-no.gif Binary file media/django/img/admin/icon-no.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon-unknown.gif Binary file media/django/img/admin/icon-unknown.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon-yes.gif Binary file media/django/img/admin/icon-yes.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_addlink.gif Binary file media/django/img/admin/icon_addlink.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_alert.gif Binary file media/django/img/admin/icon_alert.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_calendar.gif Binary file media/django/img/admin/icon_calendar.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_changelink.gif Binary file media/django/img/admin/icon_changelink.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_clock.gif Binary file media/django/img/admin/icon_clock.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_deletelink.gif Binary file media/django/img/admin/icon_deletelink.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_error.gif Binary file media/django/img/admin/icon_error.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_searchbox.png Binary file media/django/img/admin/icon_searchbox.png has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/icon_success.gif Binary file media/django/img/admin/icon_success.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/inline-delete-8bit.png Binary file media/django/img/admin/inline-delete-8bit.png has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/inline-delete.png Binary file media/django/img/admin/inline-delete.png has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/inline-restore-8bit.png Binary file media/django/img/admin/inline-restore-8bit.png has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/inline-restore.png Binary file media/django/img/admin/inline-restore.png has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/inline-splitter-bg.gif Binary file media/django/img/admin/inline-splitter-bg.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/nav-bg-grabber.gif Binary file media/django/img/admin/nav-bg-grabber.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/nav-bg-reverse.gif Binary file media/django/img/admin/nav-bg-reverse.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/nav-bg.gif Binary file media/django/img/admin/nav-bg.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/selector-add.gif Binary file media/django/img/admin/selector-add.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/selector-addall.gif Binary file media/django/img/admin/selector-addall.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/selector-remove.gif Binary file media/django/img/admin/selector-remove.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/selector-removeall.gif Binary file media/django/img/admin/selector-removeall.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/selector-search.gif Binary file media/django/img/admin/selector-search.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/selector_stacked-add.gif Binary file media/django/img/admin/selector_stacked-add.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/selector_stacked-remove.gif Binary file media/django/img/admin/selector_stacked-remove.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tool-left.gif Binary file media/django/img/admin/tool-left.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tool-left_over.gif Binary file media/django/img/admin/tool-left_over.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tool-right.gif Binary file media/django/img/admin/tool-right.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tool-right_over.gif Binary file media/django/img/admin/tool-right_over.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tooltag-add.gif Binary file media/django/img/admin/tooltag-add.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tooltag-add_over.gif Binary file media/django/img/admin/tooltag-add_over.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tooltag-arrowright.gif Binary file media/django/img/admin/tooltag-arrowright.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/admin/tooltag-arrowright_over.gif Binary file media/django/img/admin/tooltag-arrowright_over.gif has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/gis/move_vertex_off.png Binary file media/django/img/gis/move_vertex_off.png has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/img/gis/move_vertex_on.png Binary file media/django/img/gis/move_vertex_on.png has changed diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/js/SelectBox.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/js/SelectBox.js Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,111 @@ +var SelectBox = { + cache: new Object(), + init: function(id) { + var box = document.getElementById(id); + var node; + SelectBox.cache[id] = new Array(); + var cache = SelectBox.cache[id]; + for (var i = 0; (node = box.options[i]); i++) { + cache.push({value: node.value, text: node.text, displayed: 1}); + } + }, + redisplay: function(id) { + // Repopulate HTML select box from cache + var box = document.getElementById(id); + box.options.length = 0; // clear all options + for (var i = 0, j = SelectBox.cache[id].length; i < j; i++) { + var node = SelectBox.cache[id][i]; + if (node.displayed) { + box.options[box.options.length] = new Option(node.text, node.value, false, false); + } + } + }, + filter: function(id, text) { + // Redisplay the HTML select box, displaying only the choices containing ALL + // the words in text. (It's an AND search.) + var tokens = text.toLowerCase().split(/\s+/); + var node, token; + for (var i = 0; (node = SelectBox.cache[id][i]); i++) { + node.displayed = 1; + for (var j = 0; (token = tokens[j]); j++) { + if (node.text.toLowerCase().indexOf(token) == -1) { + node.displayed = 0; + } + } + } + SelectBox.redisplay(id); + }, + delete_from_cache: function(id, value) { + var node, delete_index = null; + for (var i = 0; (node = SelectBox.cache[id][i]); i++) { + if (node.value == value) { + delete_index = i; + break; + } + } + var j = SelectBox.cache[id].length - 1; + for (var i = delete_index; i < j; i++) { + SelectBox.cache[id][i] = SelectBox.cache[id][i+1]; + } + SelectBox.cache[id].length--; + }, + add_to_cache: function(id, option) { + SelectBox.cache[id].push({value: option.value, text: option.text, displayed: 1}); + }, + cache_contains: function(id, value) { + // Check if an item is contained in the cache + var node; + for (var i = 0; (node = SelectBox.cache[id][i]); i++) { + if (node.value == value) { + return true; + } + } + return false; + }, + move: function(from, to) { + var from_box = document.getElementById(from); + var to_box = document.getElementById(to); + var option; + for (var i = 0; (option = from_box.options[i]); i++) { + if (option.selected && SelectBox.cache_contains(from, option.value)) { + SelectBox.add_to_cache(to, {value: option.value, text: option.text, displayed: 1}); + SelectBox.delete_from_cache(from, option.value); + } + } + SelectBox.redisplay(from); + SelectBox.redisplay(to); + }, + move_all: function(from, to) { + var from_box = document.getElementById(from); + var to_box = document.getElementById(to); + var option; + for (var i = 0; (option = from_box.options[i]); i++) { + if (SelectBox.cache_contains(from, option.value)) { + SelectBox.add_to_cache(to, {value: option.value, text: option.text, displayed: 1}); + SelectBox.delete_from_cache(from, option.value); + } + } + SelectBox.redisplay(from); + SelectBox.redisplay(to); + }, + sort: function(id) { + SelectBox.cache[id].sort( function(a, b) { + a = a.text.toLowerCase(); + b = b.text.toLowerCase(); + try { + if (a > b) return 1; + if (a < b) return -1; + } + catch (e) { + // silently fail on IE 'unknown' exception + } + return 0; + } ); + }, + select_all: function(id) { + var box = document.getElementById(id); + for (var i = 0; i < box.options.length; i++) { + box.options[i].selected = 'selected'; + } + } +} diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/js/SelectFilter.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/js/SelectFilter.js Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,81 @@ +/* +SelectFilter - Turns a multiple-select box into a filter interface. + +Requires SelectBox.js and addevent.js. +*/ + +function findForm(node) { + // returns the node of the form containing the given node + if (node.tagName.toLowerCase() != 'form') { + return findForm(node.parentNode); + } + return node; +} + +var SelectFilter = { + init: function(field_id) { + var from_box = document.getElementById(field_id); + from_box.id += '_from'; // change its ID + // Create the INPUT input box + var input_box = document.createElement('input'); + input_box.id = field_id + '_input'; + input_box.setAttribute('type', 'text'); + from_box.parentNode.insertBefore(input_box, from_box); + from_box.parentNode.insertBefore(document.createElement('br'), input_box.nextSibling); + // Create the TO box + var to_box = document.createElement('select'); + to_box.id = field_id + '_to'; + to_box.setAttribute('multiple', 'multiple'); + to_box.setAttribute('size', from_box.size); + from_box.parentNode.insertBefore(to_box, from_box.nextSibling); + to_box.setAttribute('name', from_box.getAttribute('name')); + from_box.setAttribute('name', from_box.getAttribute('name') + '_old'); + // Give the filters a CSS hook + from_box.setAttribute('class', 'filtered'); + to_box.setAttribute('class', 'filtered'); + // Set up the JavaScript event handlers for the select box filter interface + addEvent(input_box, 'keyup', function(e) { SelectFilter.filter_key_up(e, field_id); }); + addEvent(input_box, 'keydown', function(e) { SelectFilter.filter_key_down(e, field_id); }); + addEvent(from_box, 'dblclick', function() { SelectBox.move(field_id + '_from', field_id + '_to'); }); + addEvent(from_box, 'focus', function() { input_box.focus(); }); + addEvent(to_box, 'dblclick', function() { SelectBox.move(field_id + '_to', field_id + '_from'); }); + addEvent(findForm(from_box), 'submit', function() { SelectBox.select_all(field_id + '_to'); }); + SelectBox.init(field_id + '_from'); + SelectBox.init(field_id + '_to'); + // Move selected from_box options to to_box + SelectBox.move(field_id + '_from', field_id + '_to'); + }, + filter_key_up: function(event, field_id) { + from = document.getElementById(field_id + '_from'); + // don't submit form if user pressed Enter + if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) { + from.selectedIndex = 0; + SelectBox.move(field_id + '_from', field_id + '_to'); + from.selectedIndex = 0; + return false; + } + var temp = from.selectedIndex; + SelectBox.filter(field_id + '_from', document.getElementById(field_id + '_input').value); + from.selectedIndex = temp; + return true; + }, + filter_key_down: function(event, field_id) { + from = document.getElementById(field_id + '_from'); + // right arrow -- move across + if ((event.which && event.which == 39) || (event.keyCode && event.keyCode == 39)) { + var old_index = from.selectedIndex; + SelectBox.move(field_id + '_from', field_id + '_to'); + from.selectedIndex = (old_index == from.length) ? from.length - 1 : old_index; + return false; + } + // down arrow -- wrap around + if ((event.which && event.which == 40) || (event.keyCode && event.keyCode == 40)) { + from.selectedIndex = (from.length == from.selectedIndex + 1) ? 0 : from.selectedIndex + 1; + } + // up arrow -- wrap around + if ((event.which && event.which == 38) || (event.keyCode && event.keyCode == 38)) { + from.selectedIndex = (from.selectedIndex == 0) ? from.length - 1 : from.selectedIndex - 1; + } + return true; + } +} diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/js/SelectFilter2.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/js/SelectFilter2.js Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,113 @@ +/* +SelectFilter2 - Turns a multiple-select box into a filter interface. + +Different than SelectFilter because this is coupled to the admin framework. + +Requires core.js, SelectBox.js and addevent.js. +*/ + +function findForm(node) { + // returns the node of the form containing the given node + if (node.tagName.toLowerCase() != 'form') { + return findForm(node.parentNode); + } + return node; +} + +var SelectFilter = { + init: function(field_id, field_name, is_stacked, admin_media_prefix) { + var from_box = document.getElementById(field_id); + from_box.id += '_from'; // change its ID + from_box.className = 'filtered'; + + // Remove

, because it just gets in the way. + var ps = from_box.parentNode.getElementsByTagName('p'); + for (var i=0; i or

+ var selector_div = quickElement('div', from_box.parentNode); + selector_div.className = is_stacked ? 'selector stacked' : 'selector'; + + //
+ var selector_available = quickElement('div', selector_div, ''); + selector_available.className = 'selector-available'; + quickElement('h2', selector_available, interpolate(gettext('Available %s'), [field_name])); + var filter_p = quickElement('p', selector_available, ''); + filter_p.className = 'selector-filter'; + quickElement('img', filter_p, '', 'src', admin_media_prefix + 'img/admin/selector-search.gif'); + filter_p.appendChild(document.createTextNode(' ')); + var filter_input = quickElement('input', filter_p, '', 'type', 'text'); + filter_input.id = field_id + '_input'; + selector_available.appendChild(from_box); + var choose_all = quickElement('a', selector_available, gettext('Choose all'), 'href', 'javascript: (function(){ SelectBox.move_all("' + field_id + '_from", "' + field_id + '_to"); })()'); + choose_all.className = 'selector-chooseall'; + + //
    + var selector_chooser = quickElement('ul', selector_div, ''); + selector_chooser.className = 'selector-chooser'; + var add_link = quickElement('a', quickElement('li', selector_chooser, ''), gettext('Add'), 'href', 'javascript: (function(){ SelectBox.move("' + field_id + '_from","' + field_id + '_to");})()'); + add_link.className = 'selector-add'; + var remove_link = quickElement('a', quickElement('li', selector_chooser, ''), gettext('Remove'), 'href', 'javascript: (function(){ SelectBox.move("' + field_id + '_to","' + field_id + '_from");})()'); + remove_link.className = 'selector-remove'; + + //
    + var selector_chosen = quickElement('div', selector_div, ''); + selector_chosen.className = 'selector-chosen'; + quickElement('h2', selector_chosen, interpolate(gettext('Chosen %s'), [field_name])); + var selector_filter = quickElement('p', selector_chosen, gettext('Select your choice(s) and click ')); + selector_filter.className = 'selector-filter'; + quickElement('img', selector_filter, '', 'src', admin_media_prefix + (is_stacked ? 'img/admin/selector_stacked-add.gif':'img/admin/selector-add.gif'), 'alt', 'Add'); + var to_box = quickElement('select', selector_chosen, '', 'id', field_id + '_to', 'multiple', 'multiple', 'size', from_box.size, 'name', from_box.getAttribute('name')); + to_box.className = 'filtered'; + var clear_all = quickElement('a', selector_chosen, gettext('Clear all'), 'href', 'javascript: (function() { SelectBox.move_all("' + field_id + '_to", "' + field_id + '_from");})()'); + clear_all.className = 'selector-clearall'; + + from_box.setAttribute('name', from_box.getAttribute('name') + '_old'); + + // Set up the JavaScript event handlers for the select box filter interface + addEvent(filter_input, 'keyup', function(e) { SelectFilter.filter_key_up(e, field_id); }); + addEvent(filter_input, 'keydown', function(e) { SelectFilter.filter_key_down(e, field_id); }); + addEvent(from_box, 'dblclick', function() { SelectBox.move(field_id + '_from', field_id + '_to'); }); + addEvent(to_box, 'dblclick', function() { SelectBox.move(field_id + '_to', field_id + '_from'); }); + addEvent(findForm(from_box), 'submit', function() { SelectBox.select_all(field_id + '_to'); }); + SelectBox.init(field_id + '_from'); + SelectBox.init(field_id + '_to'); + // Move selected from_box options to to_box + SelectBox.move(field_id + '_from', field_id + '_to'); + }, + filter_key_up: function(event, field_id) { + from = document.getElementById(field_id + '_from'); + // don't submit form if user pressed Enter + if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) { + from.selectedIndex = 0; + SelectBox.move(field_id + '_from', field_id + '_to'); + from.selectedIndex = 0; + return false; + } + var temp = from.selectedIndex; + SelectBox.filter(field_id + '_from', document.getElementById(field_id + '_input').value); + from.selectedIndex = temp; + return true; + }, + filter_key_down: function(event, field_id) { + from = document.getElementById(field_id + '_from'); + // right arrow -- move across + if ((event.which && event.which == 39) || (event.keyCode && event.keyCode == 39)) { + var old_index = from.selectedIndex; + SelectBox.move(field_id + '_from', field_id + '_to'); + from.selectedIndex = (old_index == from.length) ? from.length - 1 : old_index; + return false; + } + // down arrow -- wrap around + if ((event.which && event.which == 40) || (event.keyCode && event.keyCode == 40)) { + from.selectedIndex = (from.length == from.selectedIndex + 1) ? 0 : from.selectedIndex + 1; + } + // up arrow -- wrap around + if ((event.which && event.which == 38) || (event.keyCode && event.keyCode == 38)) { + from.selectedIndex = (from.selectedIndex == 0) ? from.length - 1 : from.selectedIndex - 1; + } + return true; + } +} diff -r df0370bfe3f0 -r 0dcfcdf50c62 media/django/js/admin/CollapsedFieldsets.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/django/js/admin/CollapsedFieldsets.js Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,85 @@ +// Finds all fieldsets with class="collapse", collapses them, and gives each +// one a "Show" link that uncollapses it. The "Show" link becomes a "Hide" +// link when the fieldset is visible. + +function findForm(node) { + // returns the node of the form containing the given node + if (node.tagName.toLowerCase() != 'form') { + return findForm(node.parentNode); + } + return node; +} + +var CollapsedFieldsets = { + collapse_re: /\bcollapse\b/, // Class of fieldsets that should be dealt with. + collapsed_re: /\bcollapsed\b/, // Class that fieldsets get when they're hidden. + collapsed_class: 'collapsed', + init: function() { + var fieldsets = document.getElementsByTagName('fieldset'); + var collapsed_seen = false; + for (var i = 0, fs; fs = fieldsets[i]; i++) { + // Collapse this fieldset if it has the correct class, and if it + // doesn't have any errors. (Collapsing shouldn't apply in the case + // of error messages.) + if (fs.className.match(CollapsedFieldsets.collapse_re) && !CollapsedFieldsets.fieldset_has_errors(fs)) { + collapsed_seen = true; + // Give it an additional class, used by CSS to hide it. + fs.className += ' ' + CollapsedFieldsets.collapsed_class; + // (Show) + var collapse_link = document.createElement('a'); + collapse_link.className = 'collapse-toggle'; + collapse_link.id = 'fieldsetcollapser' + i; + collapse_link.onclick = new Function('CollapsedFieldsets.show('+i+'); return false;'); + collapse_link.href = '#'; + collapse_link.innerHTML = gettext('Show'); + var h2 = fs.getElementsByTagName('h2')[0]; + h2.appendChild(document.createTextNode(' (')); + h2.appendChild(collapse_link); + h2.appendChild(document.createTextNode(')')); + } + } + if (collapsed_seen) { + // Expand all collapsed fieldsets when form is submitted. + addEvent(findForm(document.getElementsByTagName('fieldset')[0]), 'submit', function() { CollapsedFieldsets.uncollapse_all(); }); + } + }, + fieldset_has_errors: function(fs) { + // Returns true if any fields in the fieldset have validation errors. + var divs = fs.getElementsByTagName('div'); + for (var i=0; i +// + +var DateTimeShortcuts = { + calendars: [], + calendarInputs: [], + clockInputs: [], + calendarDivName1: 'calendarbox', // name of calendar
    that gets toggled + calendarDivName2: 'calendarin', // name of
    that contains calendar + calendarLinkName: 'calendarlink',// name of the link that is used to toggle + clockDivName: 'clockbox', // name of clock
    that gets toggled + clockLinkName: 'clocklink', // name of the link that is used to toggle + admin_media_prefix: '', + init: function() { + // Deduce admin_media_prefix by looking at the + +{% endblock %} +{% block content %} +

    Show Dates

    + +

    Upcoming Shows

    +{% if upcoming %} + {% for show in upcoming %} +

    + {% if show.flyer %} + + {{ show.flyer.caption }} + {% endif %} + {{ show.date|date:"F d, Y" }} + {% if show.time %}{{ show.time|time:"h:i A" }}{% endif %}
    + + {% if show.title and show.url %} + {{ show.title }}
    + {% else %} + {% if show.title %} + {{ show.title }}
    + {% endif %} + {% endif %} + + {% if show.venue %} + {% if show.venue.url %} + {{ show.venue.name }}, + {% else %} + {{ show.venue }}, + {% endif %} + {% if show.venue.address %} + {{ show.venue.address }}, + {% endif %} + {% if show.venue.city.state %} + {{ show.venue.city.name }}, {{ show.venue.city.state.name }} + {% else %} + {{ show.venue.city.name }} + {% endif %} +
    + {% if show.venue.phone %} + {{ show.venue.phone }} +
    + {% endif %} + {% endif %} + + {% if show.bands.all %} + With: + {% for band in show.bands.all %} + {% if band.url %} + {{ band.name }} + {% else %} + {{ band.name }} + {% endif %} + {% if not forloop.last %} + • + {% endif %} + {% endfor %} +
    + {% endif %} + + {% if show.notes %} + {{ show.notes|safe }} + {% endif %} +

    + {% endfor %} +{% else %} +None at this time. +{% endif %} +
    + +{% if flyerGigs %} +
    +

    Flyers

    + + +
    + {% for gig in flyerGigs %} + + + +
    {{ gig.venue.name}}, {{ gig.date|date:"F 'y" }}
    + + {{ gig.date|date: +
    + {% endfor %} +
    +
    +

    To see all our flyers in full size, check out our show flyer gallery.

    +
    +{% endif %} + +{% if previous %} +

    Previous Shows

    +
    + + + {% for show in previous %} + + + + + + {% endfor %} +
    DateVenueBands
    {{ show.date|date:"M d, Y" }} + {% if show.title and show.url %} + {{ show.title }}, + {% else %} + {% if show.title %} + {{ show.title }}, + {% endif %} + {% endif %} + {% if show.venue.url %} + {{ show.venue.name }}, + {% else %} + {{ show.venue.name }}, + {% endif %} + {{ show.venue.city.name }}, {{ show.venue.city.state.abbrev }} + + {% for band in show.bands.all %} + {% if band.url %} + {{ band.name }} + {% else %} + {{ band.name }} + {% endif %} + {% if not forloop.last %} + • + {% endif %} + {% endfor %} +
    +
    +{% endif %} + +{% if stats %} +

    Past Show Statistics

    + + + + + + +
    Number of shows:{{ stats.count }}
    Number of unique venues:{{ stats.venues }}
    Number of unique cities:{{ stats.cities }}
    Number of unique states:{{ stats.states }}
    Number of unique bands:{{ stats.bands }}
    +{% endif %} + +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/index.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,63 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira{% endblock %} +{% block custom_css %} + +{% endblock %} +{% block custom_js %} + + +{% endblock %} +{% load markup %} +{% block content %} +

    The Madeira

    +{{ config.intro_photo.title }} +{{ config.intro_text|textile }} +
    + +{% if upcomingDates %} +
    +

    Upcoming Shows...

    + +
    +{% for gig in upcomingDates %} + {% if gig.flyer %} + + {% endif %} +{% endfor %} +
    + + {{ gig.flyer.caption }} +
    {{ gig.flyer.caption }}
    +
    + +
      +{% for show in upcomingDates %} +
    • {{ show.date|date:"l, F d" }}: {{ show.venue.name }}, {{ show.venue.city.name }}{% if show.venue.city.state %}, {{ show.venue.city.state.name }} +{% endif %}
    • +{% endfor %} +
    +
    See all upcoming shows...
    +
    +{% endif %} + +
    + + + + + + + + + + +

    The Madeira Releases:

    + Carpe Noctem Cover +
    Available Now: Carpe Noctem!
    +
    Sandstorm CD Cover
    Ruins EP Cover
    Sandstorm
    Ruins
    +
    + +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/mail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/mail.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,21 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Mailing List{% endblock %} +{% block content %} +

    Madeira Mailing List

    +

    Get on the Madeira mailing list to receive updates about upcoming shows, releases, and website updates. +This is a low volume list. We do not share your email address with anyone.

    +
    Mailing List +
    + + {% for field in form %} + + + + + {% endfor %} + +
    {{ field.label_tag }}{% if field.field.required %}*{% endif %}:{{ field }} + {% if field.errors %}{{ field.errors }}{% endif %}
    +
    +
    +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/mail_confirm.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/mail_confirm.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,6 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Mailing List Confirmation{% endblock %} +{% block content %} +

    Madeira Mailing List Confirmation

    +

    Your email address, {{ email }}, has been successfully {{ action }}.

    +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/mail_not_found.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/mail_not_found.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,7 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Mailing List Confirmation{% endblock %} +{% block content %} +

    Madeira Mailing List

    +

    Sorry, we did not find that email address in our database.

    +

    Back to contact page.

    +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/mail_thanks.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/mail_thanks.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,9 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Mailing List Confirmation{% endblock %} +{% block content %} +

    Madeira Mailing List

    +

    Thanks for subscribing to our email list! You should shortly receive a confirmation email +with instructions on how to complete the subscription process.

    +

    Please check your spam folders for this email. Sometimes it ends up in there. +Thanks.

    +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/mail_unsubscribe.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/mail_unsubscribe.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,8 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Mailing List Confirmation{% endblock %} +{% block content %} +

    Madeira Mailing List

    +

    We're sorry to see you unsubscribing from our email list! You should shortly receive a confirmation email +with instructions on how to complete the removal process. Please check your spam folders for +this email.

    +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/news.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/news.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,31 @@ +{% extends 'band/base.html' %} +{% load markup %} +{% block title %}The Madeira | News{% endblock %} +{% block content %} +

    News

    +{% if news %} + {% for story in news %} +

    {{ story.date|date:"F d, Y" }}  + {% if story.title %} + • {{ story.title }} + {% endif %} +

    +
    + {% if story.photo %} + {{ story.photo_caption }} + {% endif %} + {% if story.markup_enabled %} + {{ story.text|textile }} + {% else %} + {{ story.text|safe|linebreaks }} + {% endif %} + {% if story.author %} +

    -- {{ story.author }}

    + {% endif %} +
    + {% endfor %} +{% else %} +No news at this time. +{% endif %} +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/photo_detail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/photo_detail.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,23 @@ +{% extends 'band/base.html' %} +{% load markup %} +{% block title %}The Madeira | Photos: {{ gallery.title }}{% endblock %} +{% block custom_css %} + +{% endblock %} +{% block custom_js %} + + +{% endblock %} +{% block content %} +

    Madeira Photos: {{ gallery.title }}

    +{{ gallery.description|textile }} + +
    +{% for photo in gallery.photos.all %} + + {{ photo.caption }} +{% endfor %} +
    +
    Photo gallery index
    + +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/photos.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/photos.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,30 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Photo Galleries{% endblock %} +{% block custom_css %} + +{% endblock %} +{% block custom_js %} + + +{% endblock %} +{% block content %} +

    Madeira Photo Galleries

    +{% if galleries %} + +{% else %} +No photo galleries available at this time. +{% endif %} +{% if randomPhotos %} +
    +

    Random Photos:

    + {% for photo in randomPhotos %} + + {{ photo.caption }} + {% endfor %} +
    +{% endif %} +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/press.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/press.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,44 @@ +{% extends 'band/base.html' %} +{% load markup %} +{% block title %}The Madeira | Press{% endblock %} +{% block content %} +

    Madeira Press, Articles, & Reviews

    +{% if articles %} +   +

    Contents

    + + + {% for article in articles %} +   +

    {{ article.title }}

    + {% if article.markup_enabled %} + {{ article.text|textile }} + {% else %} + {{ article.text|safe|linebreaks }} + {% endif %} +
    + {{ article.source|safe|linebreaks }} +
    + {% if article.url %} + Original article + {% endif %} + {% if article.pdf and article.url %} + | + {% endif %} + {% if article.pdf %} + Original article as PDF + + Adobe Reader + {% endif %} +

    Top

    + {% endfor %} + +{% else %} +No articles at this time. +{% endif %} +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/press_detail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/press_detail.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,28 @@ +{% extends 'band/base.html' %} +{% load markup %} +{% block title %}The Madeira | Press{% endblock %} +{% block content %} +

    Madeira Press, Articles, & Reviews

    +

    {{ article.title }}

    +{% if article.markup_enabled %} + {{ article.text|textile }} +{% else %} + {{ article.text|safe|linebreaks }} +{% endif %} +
    +{{ article.source|safe|linebreaks }} +
    +{% if article.url %} +Original article +{% endif %} +{% if article.pdf and article.url %} +| +{% endif %} +{% if article.pdf %} +Original article as PDF + + Adobe Reader +{% endif %} +

    Press index

    +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/songs.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/songs.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,20 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Songs{% endblock %} +{% block content %} +

    Madeira Songs

    +{% if mp3Sets %} +

    Check out some Madeira MP3 downloads!

    + {% for set in mp3Sets %} +

    {{ set.title }}

    + {{ set.text|safe|linebreaks }} +
      + {% for mp3 in set.mp3_set.all %} +
    • {{ mp3.title }} + ({{ mp3.file.size|filesizeformat }}){% if mp3.desc %} - {{ mp3.desc }}{% endif %}
    • + {% endfor %} +
    + {% endfor %} +{% else %} +No downloads available at this time. +{% endif %} +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/video_detail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/video_detail.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,17 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Videos: {{ vidset.title }}{% endblock %} +{% block content %} +

    Madeira Videos: {{ vidset.title }}

    +{{ vidset.text|safe|linebreaks }} + +
    + +{% for video in vidset.video_set.all %} + +{% endfor %} +
    {{ video.title }}{{ video.embed_code|safe }}
    +
    +
    +
    Videos index
    + +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/band/videos.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/band/videos.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,14 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | Videos{% endblock %} +{% block content %} +

    Madeira Videos

    +{% if vidsets %} + +{% else %} +No videos available at this time. +{% endif %} +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/templates/flatpages/default.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/flatpages/default.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,5 @@ +{% extends 'band/base.html' %} +{% block title %}The Madeira | {{ flatpage.title }}{% endblock %} +{% block content %} +{{ flatpage.content }} +{% endblock %} diff -r df0370bfe3f0 -r 0dcfcdf50c62 mysite/urls.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/urls.py Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,16 @@ +from django.conf.urls.defaults import * +from django.contrib import admin +from mysite import settings + +admin.autodiscover() + +urlpatterns = patterns('', + (r'^', include('mysite.band.urls')), + (r'^admin/', include(admin.site.urls)), + (r'^photologue/', include('mysite.photologue.urls')), +) + +if settings.DEBUG: + urlpatterns += patterns('', + (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), + )