width: 99%;
min-height: 30em;
}
-.wiki h1 {
- text-align: center;
- font: normal bold 2em sans-serif;
- margin: 0em 0em 0em 0em;
- border-style: none none solid none;
- border-width: 1px;
-}
-.wiki h1 + h2{
- margin: .5em 0em .3em 0em;
-}
-.wiki h2 {
- text-align: left;
- font: normal bold 1.3em sans-serif;
- margin: 1em 0em .3em 0em;
- border-style: none none solid none;
- border-width: 1px; border-color: #AAF;
-}
-.wiki h2 + p { margin: 0em; }
-.wiki h3 {
- text-align: left;
- font-size: 1.1em;
- margin: .6em 0em .3em 0em;
-}
-.wiki h3 + p { margin: 0em; }
-.wiki h4 {
- text-align: left;
- font-size: 1em;
- margin: .6em 0em .3em 0em;
-}
-.wiki h4 + p { margin: 0em; }
-.wiki p {
- margin: .6em 0em;
-}
-.wiki ul {
- text-indent: 0em;
- margin: .3em 0em;
- padding: 0em 4ex;
-}
-.wiki ul ol {font-size: .9em; margin: 0em;}
-.wiki ol {
- text-indent: 0em;
- margin: .3em 0em;
- padding: 0em 4ex;
-}
-.wiki ol ul {font-size: .9em; margin: 0em;}
-.wiki pre {
- background-color: #EEE;
- padding: .5em;
- border-style: solid; border-width: 1px;
- border-color: #AAF;
-}
.article {
float: left;
title="$(egrep -x 'title=.+' "Wiki/$edit.meta" |cut -d= -f2- || echo '(Untitled)')"
cat <<WikiEND
<form class="edit" action="write/scriptedit.cgi?i=$edit" method="post" accept-charset="UTF-8">
- <div id="RIGHT"></div>
<div id="LEFT">
Editing <b>$title</b><br>
- <input type="submit">
+ <input type="submit" value="Submit">
<input type="submit" name="cancel" value="Cancel">
<hr>
</div>
</div>
</div>
</form>
+ <div id="RIGHT">
+ $(stat -c '' Wiki/${edit}.comment.<0000000000-9999999999>_<000-999> && for each in $(ls -c Wiki/${edit}.comment.<0000000000-9999999999>_<000-999>); do
+ author=$(grep -m1 '^author=' "$each" |cut -d= -f2-)
+ echo "<div class='comment'><h1>$author wrote:</h1><div class='wikitext'>"
+ tail -n+2 $each |_wiki
+ echo '</div></div>'
+ done)
+ </div>
WikiEND
elif [ -n "$info" -a -r "Wiki/${info}${rev}" ]; then
<hr>
</div>
<div id="MAIN">
- <div class="wiki">
+ <div class="wiki"><div class="wikitext">
<h1>$title</h1>
$(_wiki Wiki/"${info}${rev}")
- </div>
+ </div></div>
</div>
WikiEND
<form action="/write/wikimeta.cgi?i=$info" method="post" accept-charset="UTF-8">
<b>Comment:</b><br>
<textarea name="comm" rows="6" style="width:99%;"></textarea><br>
- <input type="submit">
+ <input type="submit" value="Submit">
<a class="function" href="#" onclick="javascript:hide_screen('comment');show_screen('comment_button');">Cancel</a>
</form>
</div>
WikiEND
stat -c '' Wiki/${info}.comment.<0000000000-9999999999>_<000-999> && for each in $(ls -c Wiki/${info}.comment.<0000000000-9999999999>_<000-999>); do
author=$(grep -m1 '^author=' "$each" |cut -d= -f2-)
- echo "<div class="comment"><h1>$author wrote:</h1>"
- tail -n-1 $each
- echo '</div>'
+ echo "<div class='comment'><h1>$author wrote:</h1><div class='wikitext'>"
+ tail -n+2 $each |_wiki
+ echo '</div></div>'
done
echo '</div>'
<input type="text" name="title" placeholder="Fill in a title"><br>
<b>Description:</b><br>
<textarea name="desc" rows="6" ></textarea><br>
- <input type="submit">
+ <input type="submit" value="Submit">
<a class="function" href="#" onclick="javascript:hide_screen('add_page');show_screen('addp_button');">Cancel</a>
</form>
</div>
<a name="$info" href="/?p=Wiki&i=$info"><h1>$title</h1></a>
$description<br><br>
<a class="function" href="/?p=Wiki&i=$info">View</a>
- $($LOGIN && echo "<a class='function' href='#' onclick=\"javascript:show_screen('change_$info');hide_screen('display_$info');\">Change Title</a>")
+ $($LOGIN && echo "<a class='function' href='#' onclick=\"javascript:show_screen('change_$info');hide_screen('display_$info');\">Change Info</a>")
</div>
WikiEND
$LOGIN && cat <<WikiEND
<b>Title:</b> <input type="text" name="title" value="$title"><br>
<b>Description:</b><br>
<textarea name="desc" rows="6" style="width:100%;">$description</textarea><br>
- <input type="submit">
+ <input type="submit" value="Submit">
<a class="function" href="#" onclick="javascript:hide_screen('change_$info');show_screen('display_$info');">Cancel</a>
</form>
</div>
<title>Busy</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="busy.css">
+ <link rel="stylesheet" type="text/css" href="wikitext.css">
$([ -r "${page}.css" ] && echo '<link rel="stylesheet" type="text/css" href="'"$page"'.css">')
<style type="text/css"><!-- --></style>
<script type="text/javascript">
--- /dev/null
+/* Copyright 2011 Paul Haensch*/
+/* This file is part of Busy*/
+/**/
+/* Busy is free software: you can redistribute it and/or modify*/
+/* it under the terms of the GNU Affero General Public License as published by*/
+/* the Free Software Foundation, either version 3 of the License, or*/
+/* (at your option) any later version.*/
+/**/
+/* Busy is distributed in the hope that it will be useful,*/
+/* but WITHOUT ANY WARRANTY; without even the implied warranty of*/
+/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the*/
+/* GNU Affero General Public License for more details.*/
+/**/
+/* You should have received a copy of the GNU Affero General Public License*/
+/* along with Busy. If not, see <http://www.gnu.org/licenses/>.*/
+
+.wikitext {
+ padding: 0em; margin: 0em;
+}
+.wikitext h1 {
+ text-align: center;
+ font: normal bold 2em sans-serif;
+ margin: 0em 0em 0em 0em;
+ border-style: none none solid none;
+ border-width: 1px;
+}
+.wikitext h1 + h2{
+ margin: .5em 0em .3em 0em;
+}
+.wikitext h2 {
+ text-align: left;
+ font: normal bold 1.3em sans-serif;
+ margin: 1em 0em .3em 0em;
+ border-style: none none solid none;
+ border-width: 1px; border-color: #AAF;
+}
+.wikitext h2 + p { margin: 0em; }
+.wikitext h3 {
+ text-align: left;
+ font-size: 1.1em;
+ margin: .6em 0em .3em 0em;
+}
+.wikitext h3 + p { margin: 0em; }
+.wikitext h4 {
+ text-align: left;
+ font-size: 1em;
+ margin: .6em 0em .3em 0em;
+}
+.wikitext h4 + p { margin: 0em; }
+.wikitext p {
+ margin: .6em 0em;
+}
+.wikitext ul {
+ text-indent: 0em;
+ margin: .3em 0em;
+ padding: 0em 4ex;
+}
+.wikitext ul ol {font-size: .9em; margin: 0em;}
+.wikitext ol {
+ text-indent: 0em;
+ margin: .3em 0em;
+ padding: 0em 4ex;
+}
+.wikitext ol ul {font-size: .9em; margin: 0em;}
+.wikitext pre {
+ background-color: #EEE;
+ padding: .5em;
+ border-style: solid; border-width: 1px;
+ border-color: #AAF;
+}