return response;
}
private HtmlPage makeHtml(String name, WikiPage page, FitNesseContext context, Request request) {
WikiPage pageVersion = page.getVersion(version);
HtmlPage html = context.pageFactory.newPage();
html.setTitle("Version " + version + ": " + name);
html.setPageTitle(new PageTitle("Version " + version, PathParser.parse(resource), pageVersion.getData().getAttribute(PageData.PropertySUITES)));
// TODO: subclass actions for specific rollback behaviour.
html.setNavTemplate("versionNav.vm");
html.put("rollbackVersion", version);
html.put("localPath", name);
List<VersionInfo> versions = new ArrayList<VersionInfo>(page.getVersions());
Collections.sort(versions);
Collections.reverse(versions);
String nextVersion = selectNextVersion(versions, version);
html.put("nextVersion", nextVersion);
String previousVersion = selectPreviousVersion(versions, version);
html.put("previousVersion", previousVersion);
html.setMainTemplate("wikiPage");
html.put("content", new VersionRenderer(pageVersion, request));
return html;
}