Simplify page editor
authorBernie Innocenti <bernie@codewiz.org>
Tue, 12 Oct 2010 13:33:07 +0000 (09:33 -0400)
committerBernie Innocenti <bernie@codewiz.org>
Tue, 12 Oct 2010 13:33:07 +0000 (09:33 -0400)
sys/EditPage
sys/geekigeeki.css
sys/macros/CgiVar.py

index a6deb5e..47ab7d1 100644 (file)
@@ -1,12 +1,12 @@
-**Editing <<HttpGet|q>> for <<CgiVar|REMOTE_USER>> from <<CgiVar|REMOTE_HOST>>**
+Editing **<<CgiVar|QUERY_STRING>>** for **<<CgiVar|REMOTE_USER>>** from **<<CgiVar|REMOTE_HOST>>**:
 <div class="editor">
-<form method="post" enctype="multipart/form-data" action="<<CgiVar|SCRIPT_NAME>>/<<HttpGet|q>>" >
+<form method="post" enctype="multipart/form-data" action="<<CgiVar|SCRIPT_NAME>>/<<CgiVar|QUERY_STRING>>" >
 <input type="hidden" name="a" value="edit">
 <input type="hidden" name="q" value="<<HttpGet|q>>">
-<textarea wrap="off" autofocus="true" spellcheck="true" id="editor" name="savetext" rows="17" cols="100" accesskey="e"><<EDIT_BODY>></textarea>
+<textarea wrap="off" autofocus="true" spellcheck="true" class="editor" name="savetext" rows="17" cols="100" accesskey="e"><<EDIT_BODY>></textarea>
 <label for="file" accesskey="u">Or upload a file:</label> <input type="file" name="file" value="<<HttpPost|file>>" />
 \\
-<input type="input" id="editor" name="changelog" value="Edit page <<HttpGet|q>>" accesskey="c" />
+<label for="changelog" accesskey="s"><u>S</u>ummary:</label>&nbsp;<input type="text" class="changelog" name="changelog" value="Edit page <<CgiVar|QUERY_STRING>>" accesskey="c" />
 \\
 <input type="submit" name="save" value="Save" accesskey="s" />
 <input type="submit" name="preview" value="Preview" accesskey="p" />
index 2776738..f061a4f 100644 (file)
@@ -15,7 +15,10 @@ body {
 a { color: #1010FF; }
 a:visited { color: #501080; }
 a.nonexistent { color: #D04040; }
-a.navlink { color: #000088; font-size: smaller; font-weight: bold}
+a.navlink, a.login { font-size: smaller; font-weight: bold; text-decoration: none; }
+a.navlink:hover, a.login:hover { text-decoration: underline; }
+a.navlink { color: #000088; }
+a.login { color: #bb0000; }
 a.external { font-style: italic; }
 a.heading { text-decoration: none; color: #aaaaaa; font-size: smaller; }
 
@@ -167,7 +170,7 @@ div.nav {
        background-color: #aaccee;*/
        border-color: #888888;
        background-color: #cccccc;
-       border-style: solid;
+       border-style: solid
        border-top-width: 0px;
        border-bottom-width: 2px;
        border-left-width: 0px;
@@ -182,13 +185,22 @@ div.nav {
        margin-right:   0px;
 }
 
-.nav hr {
-       display: none;
+.nav li {
+       display: inline;
 }
 
-.nav .login {
-       font-size: small;
-       color: red;
+.nav ul
+{
+       list-style-type: none;
+       margin: 0;
+       padding: 0;
+       padding-top: 6px;
+       padding-bottom: 6px;
+}
+
+
+.nav hr {
+       display: none;
 }
 
 #footer div {
@@ -337,13 +349,14 @@ pre.notice {
        margin: 0px;
 }
 
-#editor {
+.editor input[type='text'], .editor textarea {
        font-family: monospace;
-       width: 100%;
        color: black;
        background-color: white;
        border: 1px solid #8cacbb;
 }
+.editor textarea.editor { width: 100%; }
+.editor input.changelog { width: 50%; }
 
 /* thumbnails */
 
index 2f0797a..807662c 100644 (file)
@@ -10,5 +10,5 @@ def _macro_CgiVar(*args, **kvargs):
         'REMOTE_USER': remote_user(),
         'REMOTE_HOST': get_hostname(remote_host()),
         'REMOTE_ADDR': remote_host(),
-        'QUERY_STRING': relative_url(query_string()),
+        'QUERY_STRING': query_string(),
     }[args[1]]