diff options
| author | karlchenofhell <karlchenofhell@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-02-03 15:20:12 +0000 |
|---|---|---|
| committer | karlchenofhell <karlchenofhell@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-02-03 15:20:12 +0000 |
| commit | f2e6f19b905704c8b462ed3477e3ca6989f74891 (patch) | |
| tree | 3f85e27682e8d2248b1af7fb42e1f56ff1447f7c /htroot/Wiki.html | |
| parent | 10ebcb5e1ea7f72ffbf8db550a09d0f2f889cd45 (diff) | |
- added versioning to Wiki
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3327 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/Wiki.html')
| -rw-r--r-- | htroot/Wiki.html | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/htroot/Wiki.html b/htroot/Wiki.html index 34293f4a1..49ca3dba2 100644 --- a/htroot/Wiki.html +++ b/htroot/Wiki.html @@ -19,7 +19,12 @@ last edited by #[author]# | change date #[date]# | <a href="Wiki.html?page=#[pagename]#&edit=Edit">Edit</a> #(access)#(only granted to admin)::#(/access)#
</p>
</div>
- <p class="Navigation"><a href="Wiki.html">Start Page</a> - <a href="Wiki.html?index=Index">Index</a> - #(access)#<a href="Wiki.html?access=all">Grant Write Access to Everybody</a>::<a href="Wiki.html?access=admin">Grant Write Access to Admin only</a>#(/access)#</p>
+ <p class="Navigation">
+ <a href="Wiki.html">Start Page</a> -
+ <a href="Wiki.html?index=Index">Index</a> -
+ <a href="Wiki.html?page=#[pagename]#&diff=">Versions</a> -
+ #(access)#<a href="Wiki.html?access=all">Grant Write Access to Everybody</a>::<a href="Wiki.html?access=admin">Grant Write Access to Admin only</a>#(/access)#
+ </p>
::
<!-- 1: edit -->
<form action="Wiki.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
@@ -106,6 +111,39 @@ <p class="Navigation">
<a href="Wiki.html">Start Page</a>
</p>
+ ::
+ <!-- 4: Diff -->
+ #(error)#<!-- no error -->
+ <form method="get" action="Wiki.html">
+ <fieldset><legend>Select versions of page '#[page]#</legend>
+ <input type="hidden" name="page" value="#[page]#" />
+ <dl>
+ <dt><label for="old">Compare version from</label>:</dt>
+ <dd>
+ <select id="old" name="old">#{versions}#
+ <option value="#[date]#"#(oldselected)#:: selected="selected"#(/oldselected)#>#[fdate]#</option>#{/versions}#
+ </select>
+ </dd>
+ <dt><label for="new">with version from</label>:</dt>
+ <dd>
+ <select id="new" name="new">
+ <optgroup label="current"><option value="#[curdate]#"#(curselected)#:: selected="selected"#(/curselected)#>#[curfdate]#</option></optgroup>#{versions}#
+ <option value="#[date]#"#(newselected)#:: selected="selected"#(/newselected)#>#[fdate]#</option>#{/versions}#
+ </select>
+ </dd>
+ <dt><input type="submit" name="diff" value="Compare" /></dt>
+ </dl>
+ </fieldset>
+ </form>
+ ::<!-- IO error -->
+ <p class="error">IO Error reading wiki database: #[message]#</p>
+ ::<!-- no entries available for #[name]# -->
+ #(/error)#
+ #[diff]#
+ <p class="Navigation">
+ <a href="Wiki.html">Start Page</a> -
+ <a href="Wiki.html?page=#[page]#">Return to #[page]#</a>
+ </p>
#(/mode)#
<p>Changes will be published as announcement on YaCyNews</p>
|
