-**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="<<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> <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" />
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; }
font-weight: bold;
color: #3377FF;
border: #5599EE;
- background-color: #C2E2FF;
+ background-color: #D0F0FF;
clear: both;
margin-bottom: 0.2em;
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;
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 {
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 */
}
@media print {
- #footer { display: none }
- .nav { display: none }
+ body {
+ background: white;
+ font-size: 12pt;
+ }
+ h1 { font-size: 14pt; }
+ h2 { font-size: 13pt; }
+ h3 { font-size: 12pt; border: none; }
+ h4 { font-size: 12pt; border: none; }
+ h5 { font-size: 12pt; border: none; }
+ a { text-color: #225; text-decoration: underline; }
+ .heading:link, .heading:visited { display: none; }
+ #footer { display: none; }
+ .nav { display: none; }
+ .noprint { display: none; }
+ div.wiki { font-size: smaller; }
}
#acl bernie:read,write All:read
+#FIXME: couldn't we just return any env variable?
+# Would there be any security issues?
def _macro_CgiVar(*args, **kvargs):
+ if args[1].startswith('HTTP_'):
+ return os.environ.get(args[1], '')
return {
+ 'SCRIPT_NAME': script_name(),
'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]]