| <!--! |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" |
| xmlns:py="http://genshi.edgewall.org/" |
| xmlns:xi="http://www.w3.org/2001/XInclude" py:strip=""> |
| <py:match path="div[@id='content']" once="true"><div py:attrs="select('@*')"> |
| ${select('*|text()')} |
| <div class="span12"> |
| <form py:if="'WIKI_DELETE' in perm(page.resource) and |
| (not changes[0].diffs or new_version == latest_version)" |
| method="get" action="${href.wiki(page.name)}"> |
| <input type="hidden" name="action" value="delete" /> |
| <input type="hidden" name="version" value="$new_version" /> |
| <input type="hidden" name="old_version" value="$old_version" /> |
| <div class="control-group"> |
| <div class="controls"> |
| <py:choose> |
| <input py:when="new_version - old_version > 1" type="submit" name="delete_version" value="${_('Delete version %(old_version)d to version %(version)d', old_version=(old_version + 1), version=new_version)}" class="btn" /> |
| <input py:otherwise="" type="submit" name="delete_version" value="${_('Delete version %(version)d', version=new_version)}" class="btn" /> |
| </py:choose> |
| </div> |
| </div> |
| </form> |
| </div> |
| </div></py:match> |
| <py:with vars="resource = page.resource"> |
| <xi:include href="bh_diff_view.html" /> |
| </py:with> |
| </html> |