diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-15 02:22:08 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-15 02:22:08 +0000 |
commit | d4c61b72813b880d86b316770f2e3819a6428202 (patch) | |
tree | c33e8cae60810b3109400e97dc86fad8baa47027 /templates/editpage.tmpl | |
parent | d9592637a962651f06f221839bbc2cfcc6789c83 (diff) | |
download | ikiwiki-d4c61b72813b880d86b316770f2e3819a6428202.tar ikiwiki-d4c61b72813b880d86b316770f2e3819a6428202.tar.gz |
* Many changes to make ikiwiki very resistant to write failures
including out of disk space situations. ikiwiki should never leave
truncated files, and if the error occurs during a web-based file edit,
the user will be given an opportunity to retry.
Inspired by the many ways Moin Moin destroys itself when out of disk. :-)
* Fix syslogging of errors.
Diffstat (limited to 'templates/editpage.tmpl')
-rw-r--r-- | templates/editpage.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl index f63a4b089..68b7d1942 100644 --- a/templates/editpage.tmpl +++ b/templates/editpage.tmpl @@ -21,6 +21,18 @@ Conflict markers have been inserted into the page content. Reconcile the conflict and commit again to save your changes. </p> </TMPL_IF> +<TMPL_IF NAME="FAILED_SAVE"> +<p> +<b>Failed to save your changes.</b> +</p> +<p> +Your changes were not able to be saved to disk. The system gave the error: +<blockquote> +<TMPL_VAR ERROR_MESSAGE> +</blockquote> +Your changes are preserved below, and you can try again to save them. +</p> +</TMPL_IF> <TMPL_VAR FORM-START> <div class="header"> <span><TMPL_VAR INDEXLINK>/ <TMPL_VAR FORM-TITLE></span> |