From 24aaa3b33b0722cebc33bff104d61c76d780e55f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?=
Date: Mon, 2 Nov 2009 15:46:54 +0000
Subject: [PATCH] Added missing Root layout
---
static/www/layout/Archive/Archive.skin | 10 +
static/www/layout/Comment/Comment.skin | 66 +++
static/www/layout/File/File.skin | 5 +
static/www/layout/Global/Global.skin | 32 ++
static/www/layout/Image/Image.skin | 30 +
static/www/layout/Membership/Membership.skin | 12 +
static/www/layout/Root/Root.skin | 2 +
static/www/layout/Site/Site.skin | 565 +++++++++++++++++++
static/www/layout/Story/Story.skin | 96 ++++
static/www/layout/Tag/Tag.skin | 2 +
10 files changed, 820 insertions(+)
create mode 100644 static/www/layout/Archive/Archive.skin
create mode 100644 static/www/layout/Comment/Comment.skin
create mode 100644 static/www/layout/File/File.skin
create mode 100644 static/www/layout/Global/Global.skin
create mode 100644 static/www/layout/Image/Image.skin
create mode 100644 static/www/layout/Membership/Membership.skin
create mode 100644 static/www/layout/Root/Root.skin
create mode 100644 static/www/layout/Site/Site.skin
create mode 100644 static/www/layout/Story/Story.skin
create mode 100644 static/www/layout/Tag/Tag.skin
diff --git a/static/www/layout/Archive/Archive.skin b/static/www/layout/Archive/Archive.skin
new file mode 100644
index 00000000..614e2717
--- /dev/null
+++ b/static/www/layout/Archive/Archive.skin
@@ -0,0 +1,10 @@
+<% #main %>
+
+ <% archive.link previous <% gettext "Previous page" %>
+ prefix='
... ' suffix="
" %>
+
+<% archive.stories %>
+
+ <% archive.link next <% gettext "Next page" %>
+ prefix='
... ' suffix="
" %>
+
diff --git a/static/www/layout/Comment/Comment.skin b/static/www/layout/Comment/Comment.skin
new file mode 100644
index 00000000..27fd035e
--- /dev/null
+++ b/static/www/layout/Comment/Comment.skin
@@ -0,0 +1,66 @@
+<% #main %>
+
+<% comment.skin Comment#content %>
+
+ <% comment.link . Link prefix="... " %>
+ <% comment.link edit prefix="... " %>
+ <% comment.link delete prefix="... " %>
+
+<% comment.comments %>
+
+ <% comment.link comment#form prefix="
... " %>
+
+
+<% #edit %>
+<% comment.skin $Story#restore %>
+<% if <% comment.creator %> is null then
+ <% parent.skin <% parent.type suffix=#comment %> %>
+%>
+
+
+
+
+<% #content %>
+
+ <% comment.creator link %>, <% comment.created short %>
+
+<% comment.title %>
+<% comment.text | comment.format %>
+
+<% #comment %>
+<% comment.skin Comment#content %>
+<% comment.comments %>
+
+<% #reply %>
+
+
+ <% comment.skin Comment#content %>
+
+ <% comment.link . Link prefix="... " %>
+ <% comment.link edit prefix="... " %>
+ <% comment.link delete prefix="... " %>
+
+
diff --git a/static/www/layout/File/File.skin b/static/www/layout/File/File.skin
new file mode 100644
index 00000000..f0ee98a9
--- /dev/null
+++ b/static/www/layout/File/File.skin
@@ -0,0 +1,5 @@
+<% #main %>
+<% file.name %>
+
+ (<% file.contentType suffix=", " %><% file.contentLength %>)
+
diff --git a/static/www/layout/Global/Global.skin b/static/www/layout/Global/Global.skin
new file mode 100644
index 00000000..c2bc9495
--- /dev/null
+++ b/static/www/layout/Global/Global.skin
@@ -0,0 +1,32 @@
+<% #xslDeclaration %>
+"?>
+
+
+<% #xslStylesheet %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/www/layout/Image/Image.skin b/static/www/layout/Image/Image.skin
new file mode 100644
index 00000000..99f7cdf2
--- /dev/null
+++ b/static/www/layout/Image/Image.skin
@@ -0,0 +1,30 @@
+<% #main %>
+<% breadcrumbs %>
+<% gettext 'To insert this image into a story, comment or skin copy and
+paste the following code:' %>
<% image.macro %>
+
+
+
+ <% image.creator as="link" %>
+ <% image.created format="short" prefix=" on " %>
+ |
+
+
+
+ <% image.name %>
+ (<% image.contentType %>,
+ <% image.width %>×<% image.height %> pixels,
+ <% image.contentLength %>)
+ |
+
+ <% image.link edit prefix="... " suffix=" " %>
+ <% image.link delete prefix="..." suffix=" " %>
+ <% image.link replace prefix="..." suffix=" " %>
+ |
+
+
+<% image.render | link <% image.url %> %>
+<% image.description %>
+
+<% #preview %>
+<% image.render %>
diff --git a/static/www/layout/Membership/Membership.skin b/static/www/layout/Membership/Membership.skin
new file mode 100644
index 00000000..935fc387
--- /dev/null
+++ b/static/www/layout/Membership/Membership.skin
@@ -0,0 +1,12 @@
+<% #status %>
+<% gettext "Logged in as {0}" <% membership.name | membership.link %> %>
+<% membership.role prefix="(" suffix=")
" %>
+<% site.members.link edit <% gettext "Edit your profile" %> prefix="... "
+suffix="
" %>
+<% site.link subscribe prefix="... " suffix="
" %>
+<% site.members.link updated <% gettext Subscriptions %> prefix="... "
+suffix="
" %>
+<% site.members.link logout prefix="... " %>
+
+<% #login %>
+<% gettext "You're not logged in" %> <% site.members.link login prefix="... " %>
diff --git a/static/www/layout/Root/Root.skin b/static/www/layout/Root/Root.skin
new file mode 100644
index 00000000..4e33737c
--- /dev/null
+++ b/static/www/layout/Root/Root.skin
@@ -0,0 +1,2 @@
+<% #status %>
+System is up and running.
diff --git a/static/www/layout/Site/Site.skin b/static/www/layout/Site/Site.skin
new file mode 100644
index 00000000..24ac5363
--- /dev/null
+++ b/static/www/layout/Site/Site.skin
@@ -0,0 +1,565 @@
+<% #main %>
+<% site.stories %>
+
+<% #preview %>
+<% site.title | site.link %> (<% site.modified short
+prefix="Last update: " default="None so far" %>)
+
+<% #welcome %>
+<% gettext "Welcome to {0}." <% site.title %> %>
+<% gettext "This site was created by {0} on {1}." <% site.creator link %>
+<% site.created long %> %>
+
+<% #navigation %>
+
+
<% site.link . <% gettext Home %> prefix="... " %>
+
<% site.tags.link prefix="... " %>
+
<% site.galleries.link prefix="... " %>
+
+
+
<% site.stories.link create <% gettext "Add story" %> prefix="... " %>
+<% site.stories.link prefix="... " %>
+<% site.images.link prefix="... " %>
+<% site.files.link prefix="... " %>
+<% site.polls.link prefix="... " %>
+<% site.members.link prefix="... " %>
+
+
+
<% site.link edit <% gettext Preferences %> prefix="... " %>
+<% layout.link . <% gettext Layout %> prefix="... " %>
+<% layout.skins.link prefix="... " %>
+<% site.link referrers prefix="... " %>
+<% site.stories.link top <% gettext "Top stories" %> prefix="... " %>
+
+
+
<% root.title prefix="... " | root.link %>
+
+
+<% #search %>
+
+
+<% #robots %>
+User-agent: *
+Disallow: /referrers
+Disallow: /stories/top
+
+<% #page %>
+
+
+
+
+
+<% response.title %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <% response.message prefix=' ' suffix=' ' %>
+ <% response.body %>
+ |
+
+
+ <% site.age prefix="Online for " suffix=" days " %>
+ <% site.modified short prefix="Last modified: " %>
+
+
+
+ <% membership.status %>
+
+ <% root.admin.skin $Admin#navigation %>
+
+
+
+ <% site.skin Site#navigation %>
+
+
+
+ <% site.skin Site#search %>
+
+ <% site.calendar prefix=<% gettext Calendar prefix='' %> suffix=" " %>
+
+
+ <% list postings skin=Story#history %>
+
+
+ <% image /rss.png | site.link rss.xml %>
+
+ <% image /smallchaos.gif | link http://antville.org %>
+ <% image /hop.gif | link http://helma.org %>
+ |
+
+
+
+
+
+
+<% #javascript %>
+var imgWindow = "";
+
+function openPopup(img, width, height) {
+ if (img && width && height) {
+ width = Math.min(width + 36, 640);
+ height = Math.min(height + 30, 480);
+ if (imgWindow.location && !imgWindow.closed)
+ imgWindow.close();
+ imgWindow = window.open(img, "imgWindow" + width + height,
+ "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=" +
+ width + ",height=" + height);
+ // imgWindow.focus();
+ }
+}
+
+<% #values %>
+<% value "background color" #ffffff %>
+<% value "link color" #ff4040 %>
+<% value "active link color" #ff4040 %>
+<% value "visited link color" #ff4040 %>
+
+<% value "big font" "Verdana, Helvetica, Arial, sans-serif" %>
+<% value "big font size" 15px %>
+<% value "big font color" #d50000 %>
+
+<% value "base font" "Verdana, Helvetica, Arial, sans-serif" %>
+<% value "base font size" 13px %>
+<% value "base font color" #000000 %>
+
+<% value "small font" "Verdana, Arial, Helvetica, sans-serif" %>
+<% value "small font size" 11px %>
+<% value "small font color" #959595 %>
+
+<% #stylesheet %>
+table.main {
+ width: 700px;
+}
+
+td.header {
+ height: 53px;
+ padding-left: 40px;
+ font-weight: bold;
+}
+
+td.center {
+ width: 70%;
+ padding: 25px 20px 10px 40px;
+ vertical-align: top;
+}
+
+td.right {
+ width: 30%;
+ padding: 0px 0px 10px 0px;
+ vertical-align: top;
+ border-left: 1px solid #dddddd;
+}
+
+body {
+ background-color: <% value "background color" %>;
+ font-family: <% value "base font" %>;
+ font-size: <% value "base font size" %>;
+ color: <% value "base font color" %>;
+}
+
+td {
+ font-size: <% value "base font size" %>;
+ line-height: 1.2em;
+}
+
+td.header {
+ background-image: url(<% image /webloghead.gif url %>);
+ font-size: 25px;
+ font-weight: bold;
+}
+
+div.boxheader {
+ color: <% value "small font color" %>;
+ overflow: hidden;
+ font-size: 10px;
+ padding-left: 6px;
+ border-top: 1px solid #dddddd;
+}
+
+div.boxline {
+ height:1px;
+ overflow:hidden;
+ border-bottom: 1px solid #dddddd;
+}
+
+div.box {
+ font-size: <% value "small font size" %>;
+ font-family: <% value "small font" %>;
+ color: <% value "small font color" %>;
+ line-height: 1.4em;
+ text-align: right;
+ padding: 0em 0em 0.4em 0.4em;
+ margin: 0em 0em 0.2em 0em;
+}
+
+div.ample { margin-bottom: 5px; }
+
+small, .small {
+ font-family: <% value "small font" %>;
+ font-size: <% value "small font size" %>;
+ color: <% value "small font color" %>;
+}
+
+/* this is for mozilla to right-align tables in boxes */
+div.box table {
+ margin-left: auto;
+ margin-right: 0px;
+}
+
+fieldset {
+ width: 360px;
+ padding-left: 8px;
+ padding-top: 0px;
+ margin-top: 6px;
+ margin-bottom: 6px;
+}
+
+p {
+ margin-top: 6px;
+ margin-bottom: 10px;
+}
+
+form { margin: 0px; }
+
+a {text-decoration: none;}
+a:link {color: <% value "link color" %>;}
+a:visited {color: <% value "visited link color" %>;}
+a:active {color: <% value "active link color" %>;}
+a:hover {text-decoration: underline;}
+
+.message {
+ font-family: <% value "small font" %>;
+ font-size: <% value "small font size" %>;
+ font-weight: bold;
+ padding: 1px;
+ margin-top: 6px;
+ margin-bottom: 6px;
+ color: <% value "big font color" %>;
+}
+
+.message input {
+ font-size:9px;
+ padding:0px;
+ margin:0px;
+}
+
+.historyItem {
+ color: <% value "base font color" %>;
+ font-family: <% value "small font" %>;
+ font-size: <% value "small font size" %>;
+ padding-bottom: 0.3em;
+ width: 202px;
+ overflow: hidden;
+}
+
+.dayHeader {
+ font-family: <% value "small font size" %>;
+ font-size: <% value "small font size" %>;
+ color: <% value "small font color" %>;
+ font-weight: bold;
+ margin-bottom: 20px;
+ margin-top: 10px;
+ text-align: left;
+}
+
+.storyDate {
+ font-family: <% value "small font" %>;
+ font-size: <% value "small font size" %>;
+ color: <% value "small font color" %>;
+ margin-bottom: 6px;
+}
+
+.storyTitle {
+ font-family: <% value "big font" %>;
+ font-size: <% value "big font size" %>;
+ color: <% value "big font color" %>;
+ font-weight: bold;
+}
+
+.listSeparator {
+ width: 50px;
+ height: 1em;
+ border-bottom: 2px dotted #dddddd;
+ margin-top: 10px;
+ margin-bottom: 4px;
+}
+
+.title {
+ font-family: <% value "big font" %>;
+ font-size: <% value "big font size" %>;
+ color: <% value "base font color" %>;
+ font-weight: bold;
+ margin-bottom: 2px;
+}
+
+.reply { padding-left: 40px; }
+
+.formTitle {
+ width: 380px;
+ font-family: <% value "base font size" %>;
+ font-size: <% value "big font size" %>;
+ font-weight: bold;
+ border: 1px solid <% value "base font color" %>;
+}
+
+.formText {
+ width: 380px;
+ font-family: <% value "base font size" %>;
+ font-size: <% value "base font size" %>;
+ font-weight: normal;
+ border: 1px solid <% value "base font color" %>;
+}
+
+.formWide {
+ width: 660px;
+ font-family: <% value "base font size" %>;
+ font-size: <% value "base font size" %>;
+ font-weight: normal;
+}
+
+.listFlag {
+ background-color: #cccccc;
+ padding: 1px;
+ font-family: <% value "small font" %>;
+ font-size: <% value "small font size" %>;
+ color: <% value "base font color" %>;
+}
+
+.pollResultsBar {
+ height: 5px;
+ overflow: hidden;
+ float:left;
+ margin-top: 7px;
+ margin-right: 10px;
+ background-color: <% value "link color" %>;
+ font-size: 0px;
+}
+
+.searchbox {
+ font-size: 11px;
+ margin-top: 3px;
+}
+
+.colorpickerWidget {
+ border: 1px solid #cccccc;
+}
+
+.pagelinkTop {
+ margin-bottom: 18px;
+ padding-bottom:3px;
+ border-bottom:1px solid #dddddd;
+}
+
+.pagelinkBottom {
+ margin-top: 18px;
+ padding-top:3px;
+ border-top:1px solid #dddddd;
+ text-align:right;
+}
+
+div.pageNav {
+ margin-top: 10px;
+ margin-bottom: 0px;
+ font-size: 11px;
+}
+
+div.pageNavSummary {
+ padding: 1px 5px;
+ background-color: #efefef;
+ border-bottom: 1px solid #cccccc;
+ text-align: left;
+}
+
+div.pageNavBar {
+ padding-top: 1px;
+ text-align: right;
+}
+span.pageNavItem {
+ padding-left: 2px;
+ padding-right: 2px;
+}
+
+span.pageNavSelItem {
+ padding-left: 2px;
+ padding-right: 2px;
+ font-weight: bold;
+}
+
+ul { list-style: url(<% image /bullet.gif url %>) circle; }
+
+ul.skinmgrTree {
+ padding-left:15px;
+ margin:20px 0px;
+}
+
+ul.skinmgrTree ul {
+ padding-left:30px;
+ margin:0px;
+}
+ul.skinmgrTree li {
+ list-style:none;
+ margin:7px 0px;
+ padding:0px;
+}
+
+ul.skinmgrTree li.skinset {
+ list-style:square;
+ padding-left:0px;
+}
+ul.skinmgrTree a.selected {
+ font-weight:bold;
+}
+
+ul.skinmgrTree li div {
+ font-family:<% value "base font size" %>;
+ font-size:<% value "small font size" %>;
+ color:<% value "base font color" %>;
+}
+
+.membergroup {
+ font-weight:bold;
+ font-size:<% value "big font size" %>;
+ margin:10px 0px;
+}
+
+.member {
+ margin-left:20px;
+ margin-bottom:5px;
+}
+
+.calendar {
+ text-align: center;
+ color: <% value "small font color" %>;
+ font-family: <% value "small font" %>;
+ font-size: <% value "small font size" %>;
+}
+
+.calendar tbody td, .calendar tfoot td {
+ font-size: <% value "small font size" %>;
+}
+
+.calendar tbody th {
+ font-weight: normal;
+}
+
+.calendar .day {
+ width: 14.27%;
+ text-align: center;
+}
+
+.calendar .left {
+ text-align: center;
+ vertical-align: baseline;
+}
+
+.calendar .right {
+ border: 0;
+ text-align: center;
+ vertical-align: baseline;
+}
+
+.calendar .selected {
+ border: 1px solid <% value "link color" %>;
+}
+
+/* Admin styles */
+
+.pageTitle {
+ font-family:<% value "big font" %>;
+ font-size:<% value "big font size" %>;
+ font-weight:bold;
+ color:<% value "big font color" %>;
+ padding-bottom:10pt;
+}
+
+.label {
+ font-family: <% value "small font" %>;
+ font-size: 7pt;
+ padding: 2px;
+ color: #ffffff;
+ text-transform: uppercase;
+}
+
+.regular {
+ display: none;
+}
+
+.blocked {
+ background-color: #000000;
+}
+
+.trusted, .User {
+ background-color: #0000cc;
+}
+
+.closed {
+ background-color: #cc0000;
+}
+
+.open {
+ color: black;
+ background-color: yellow;
+}
+
+.restricted {
+ background-color: #ffcc00;
+}
+
+.public, .Site {
+ background-color: #006600;
+}
+
+.Root, .privileged {
+ background-color: #ffcc00;
+}
+
+.flagLight {
+ font-family:<% value "small font" %>;
+ font-size:7pt;
+ padding:2px;
+ color:#333333;
+}
+
+.sysmgrListitem {
+ margin-top:15px;
+ border-top:1px solid #dddddd;
+}
+
+div.skin {
+ /*margin: 1px;
+ border: 1px solid gray;*/
+}
+
+div.skin div.title {
+ display: none;
+ padding: 2px;
+ color: gray;
+ font: normal 8px verdana, sans-serif;
+}
diff --git a/static/www/layout/Story/Story.skin b/static/www/layout/Story/Story.skin
new file mode 100644
index 00000000..ea5d74e4
--- /dev/null
+++ b/static/www/layout/Story/Story.skin
@@ -0,0 +1,96 @@
+<% #main %>
+<% story.skin Story#date %>
+<% story.skin Story#content %>
+
+ <% story.link comment#form prefix="... " %>
+ <% story.link edit prefix=" ... " %>
+ <% story.link online prefix=" ... " %>
+
+
+<% story.comments %>
+<% story.referrers %>
+
+<% #edit %>
+<% story.skin $Story#restore %>
+
+
+<% #date %>
+
+
+<% #content %>
+
+ <% story.title %>
+
+
+ <% story.creator link %>
+ <% story.created HH:mm suffix="h" %>
+
+<% story.text | story.format %>
+
+<% #preview %>
+<% story.skin Story#content %>
+
+ <% story.link . Link prefix="... " %>
+ <% story.comments link prefix="(" suffix=")" %>
+ <% story.link comment#form prefix=" ... " %>
+ <% story.link edit prefix=" ... " %>
+
+
+
+<% #embed %>
+<% story.title prefix=''suffix="
" %>
+<% story.text | clip %>
+
+ <% story.link . <% gettext "Read more" prefix=[ suffix=] %> %>
+ <% story.link edit <% gettext Edit %> prefix=" ... " %>
+
+
+<% #comment %>
+<% story.skin Story#date %>
+<% story.skin Story#content %>
+
+<% #rss %>
+<% this.text | this.format %> <% //encoding="xml" | this.macro | this.url %>
+
+<% #history %>
+
+ <% this.summary %>
+
+ by <% this.creator %> (<% this.modified short %>)
+
+
+
+<% #result %>
+
<% this.summary %>
+by <% this.creator %> (<% this.modified short %>)
diff --git a/static/www/layout/Tag/Tag.skin b/static/www/layout/Tag/Tag.skin
new file mode 100644
index 00000000..9df36dd4
--- /dev/null
+++ b/static/www/layout/Tag/Tag.skin
@@ -0,0 +1,2 @@
+<% #preview %>
+<% tag.name | tag.link %>