<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %> <%@ page import="com.ecyrd.jspwiki.*" %> <% /* see commonheader.jsp */ String prefDateFormat = (String) session.getAttribute("prefDateFormat"); String prefTimeZone = (String) session.getAttribute("prefTimeZone"); /* cookie settings */ int size = 10; //default #revisions shown per page String s; s = (String)request.getParameter("size"); if( s != null ) size = Integer.parseInt(s); //String dateformat = "EEE, dd-MMM-yyyy [hh:mm]"; WikiContext c = WikiContext.findContext( pageContext ); int latestVersion = 0; try { latestVersion = c.getPage().getVersion(); } catch( Exception e ) { /* dont care */ } int start = latestVersion; s = (String)request.getParameter("start"); if( s != null ) start = Integer.parseInt(s); %> <%-- part 1 : normal wiki pages --%>
Page name
Parent page
Page last modified
Current page version No versions.
Page feed ">" border="0" alt="[RSS]"/>
Rename page
" method="post" accept-charset=""> "/> " size="40"/>
Update referrers?
Delete page
" method="post" accept-charset="" onsubmit="return confirmDelete()">
Page revision history Only one version
<% if( (start == -1) || ((currentPage.getVersion() >= start) && (currentPage.getVersion() < start+size)) ) { %> <% String changeNote = (String)currentPage.getAttribute(WikiPage.CHANGENOTE); if( changeNote != null ) { changeNote = TextUtil.replaceEntities(changeNote); %> <% } %> <% } %>
Version Date Author Size Changes ...
to previous | to last
 <%=changeNote%>
<%-- versionhistory --%>

body

body
<%-- part 2 : attachments --%>
Attachment Name /
Last modified by
Current version No versions.
Page feed [RSS]
Upload new version
<%-- Do NOT change the order of wikiname and content, otherwise the servlet won't find its parts. --%> <%-- In order to update this attachment with a newer version, please select a file name (click "Choose" button), then click on "Update". --%>
Change note:
Delete attachment
Page Revision History Only one version
<% if( (start == -1) || ((currentPage.getVersion() >= start) && (currentPage.getVersion() < start+size)) ) { %> <% String changeNote = (String)currentPage.getAttribute(WikiPage.CHANGENOTE); if( changeNote != null ) { %> <% } %> <% } %>
Version Date Author Size
 <%=changeNote%>
<%-- versionhistory --%>
This page does not exist. Why don't you go and create it?