From 4d19dde6efd5d0063b769bbd3d5bb3a213f42502 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 7 Aug 2011 13:55:44 +0000 Subject: [PATCH] News Engine implemented svn path=/trunk/; revision=5 --- Home.css | 60 +++++++-------------------------------------- Home.page | 49 ++++++++++++++++++++++++++++-------- write/introedit.cgi | 12 ++++++--- 3 files changed, 56 insertions(+), 65 deletions(-) diff --git a/Home.css b/Home.css index 2e3926b..a0e47e0 100644 --- a/Home.css +++ b/Home.css @@ -15,63 +15,21 @@ /* along with Busy. If not, see .*/ div#INTRO { - float: top; margin: .5em; padding: 0em .5em .5em .5em; background-color: #F7F7F7; - border-style: solid dashed dashed dashed; + border-style: solid solid solid solid; border-width: 1px; border-color: #AAF; } - -#introtext h1 { - text-align: center; - font: normal bold 2em sans-serif; - margin: 0em 0em 0em 0em; - border-style: none none solid none; +div.NEWS { + margin: 1em .5em; + padding: 0em .5em .5em .5em; + background-color: #F7F7F7; + border-style: solid dashed dashed dashed; border-width: 1px; -} -#introtext h1 + h2{ - margin: .5em 0em .3em 0em; -} -#introtext h2 { - text-align: left; - font: normal bold 1.5em sans-serif; - margin: .3em 0em .3em 0em; - border-style: none none solid none; - border-width: 1px; border-color: #AAF; -} -#introtext h2 + p { margin: 0em; } -#introtext h3 { - text-align: left; - font-size: 1.2em; - margin: .6em 0em .3em 0em; -} -#introtext h3 + p { margin: 0em; } -#introtext h4 { - text-align: left; - font-size: 1em; - margin: .6em 0em .3em 0em; -} -#introtext h4 + p { margin: 0em; } -#introtext p { - margin: .6em 0em; -} -#introtext ul { - text-indent: 0em; - margin: .3em 0em; - padding: 0em 4ex; -} -#introtext ul ol {font-size: .9em; margin: 0em;} -#introtext ol { - text-indent: 0em; - margin: .3em 0em; - padding: 0em 4ex; -} -#introtext ol ul {font-size: .9em; margin: 0em;} -#introtext pre { - background-color: #EEE; - padding: .5em; - border-style: solid; border-width: 1px; border-color: #AAF; } + +.wikitext h2 { font-size: 1.5em; margin: .3em 0em; } +.wikitext h3 { font-size: 1.2em; } diff --git a/Home.page b/Home.page index 6eef229..5c44184 100644 --- a/Home.page +++ b/Home.page @@ -6,28 +6,57 @@ cat <
-
+
$([ -r "Home/intro" ] && _wiki "Home/intro") $($ADM && echo "
Edit" ) -
+
HomeEND $ADM && cat <
HomeEND -cat <' + +$ADM && cat < + Add News + + +HomeEND - $(stat -c '' Home/<0000000000-9999999999>-<000-999>.news && for each in $(ls -c News/<0000000000-9999999999>-<000-999>); do - echo '
' - _wiki "$each" - echo '
' - done) +stat -c '' Home/<0000000000-9999999999>_<000-999>.news && for each in $(ls -c Home/<0000000000-9999999999>_<000-999>.news); do + info="$(sed 's:Home/::;s:.news::' <<<"$each")" + cat < +
+ $([ -r "$each" ] && _wiki "$each") + $($ADM && echo "
Edit" ) +
+HomeEND + $ADM && cat <