diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-12 16:37:26 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-12 16:37:26 +0000 |
commit | 798c48a1a6ec32274ba031660bdd3eeef462e468 (patch) | |
tree | 9003cd8bb5b3cf9dca4a501a51d329cce0aa7355 /templates | |
parent | 09a97d699eb84e792df110f9716ce31b86ba9c61 (diff) | |
download | ikiwiki-798c48a1a6ec32274ba031660bdd3eeef462e468.tar ikiwiki-798c48a1a6ec32274ba031660bdd3eeef462e468.tar.gz |
- use templates for signin form, error messages
- use FormBuilder for edit page forms (also use template)
- print debug to stderr in cgi mode to avoid breaking http headers
- fix links to page in parentlinks if $url is unset
- reorganise how wikilink is used in templates
- only make recentchanes link if svn is enabled
- change session id cookie to something we control
- add support for logging committer name for web commits from signed in
users (untested)
- probably more changes I forgot
Diffstat (limited to 'templates')
-rw-r--r-- | templates/editpage.tmpl | 21 | ||||
-rw-r--r-- | templates/misc.tmpl | 14 | ||||
-rw-r--r-- | templates/page.tmpl | 5 | ||||
-rw-r--r-- | templates/recentchanges.tmpl | 2 |
4 files changed, 39 insertions, 3 deletions
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl new file mode 100644 index 000000000..8b755749f --- /dev/null +++ b/templates/editpage.tmpl @@ -0,0 +1,21 @@ +<html> +<head><title><TMPL_VAR FORM-TITLE></title></head> +<body> +<TMPL_VAR FORM-START> +<h1><TMPL_VAR INDEXLINK>/ <TMPL_VAR FORM-TITLE></h1> +<TMPL_VAR FIELD-DO> +<TMPL_VAR FIELD-FROM> +<TMPL_IF NAME="PAGE_SELECT"> +Page location: <TMPL_VAR FIELD-PAGE><br> +<TMPL_ELSE> +<TMPL_VAR FIELD-PAGE> +</TMPL_IF> +<TMPL_VAR FIELD-CONTENT><br> +<TMPL_IF NAME="CAN_COMMIT"> +Optional comment about this change:</br> +<TMPL_VAR FIELD-COMMENTS><br> +</TMPL_IF> +<TMPL_VAR FORM-SUBMIT> +<TMPL_VAR FORM-END> +</body> +</html> diff --git a/templates/misc.tmpl b/templates/misc.tmpl new file mode 100644 index 000000000..a8ee1684b --- /dev/null +++ b/templates/misc.tmpl @@ -0,0 +1,14 @@ +<html> +<head><title><TMPL_VAR TITLE></title></head> +<body> + +<h1> +<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE> +</h1> + +<TMPL_VAR PAGEBODY> + +<!-- from <TMPL_VAR NAME=WIKINAME> --> + +</body> +</html> diff --git a/templates/page.tmpl b/templates/page.tmpl index 44cbd3812..619b437b9 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -3,9 +3,8 @@ <body> <h1> -<a href="<TMPL_VAR INDEXLINK>"><TMPL_VAR WIKINAME></a>/ <TMPL_LOOP NAME="PARENTLINKS"> -<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a> / +<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a>/ </TMPL_LOOP> <TMPL_VAR TITLE> </h1> @@ -34,5 +33,7 @@ </p> </TMPL_IF> +<!-- from <TMPL_VAR NAME=WIKINAME> --> + </body> </html> diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl index 4637906e2..ae708ea80 100644 --- a/templates/recentchanges.tmpl +++ b/templates/recentchanges.tmpl @@ -3,7 +3,7 @@ <body> <h1> -<a href="<TMPL_VAR INDEXLINK>"><TMPL_VAR WIKINAME></a>/ <TMPL_VAR TITLE> +<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE> </h1> <hr> |