{# Copyright (C) 2006-2020 Edgewall Software This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at https://trac.edgewall.org/wiki/TracLicense. This software consists of voluntary contributions made by many individuals. For the exact contribution history, see the revision history and logs, available at https://trac.edgewall.org/. #} # extends 'layout.html'
# block content # set current_href = href.wiki(page.name)

# # set name ${page.name} # endset # if what == 'multiple': # trans from = old_version + 1, to = new_version, name Delete versions ${from} to ${to} of ${name} # endtrans # elif what == 'single': # trans version = new_version, name Delete version ${version} of ${name} # endtrans # else: # trans name Delete ${name} # endtrans # endif

# set history_href = href.wiki(page.name, action='history', version=page.version) # set diff_href = href.wiki(page.name, action='diff', version=new_version, old_version=old_version+1 if what == 'multiple' else None) # set first_modified = pretty_dateinfo(old_date) # set last_modified = pretty_dateinfo(new_date) ${jmacros.form_token_input()} # if what == 'multiple':

# set version ${_("versions %(from)s to %(to)s", from=old_version+1, to=new_version)} # endset # trans version Are you sure you want to delete ${version} of this page? # endtrans
# set num_versions ${ ngettext("%(num)d version", "%(num)d versions", num=num_versions) } # endset # trans num_versions, first_modified, last_modified Removing ${num_versions} of the page, which was first modified ${first_modified} and last modified ${last_modified}. # endtrans

# elif what == 'single':

# set version ${_("version %(number)s", number=new_version)} # endset # trans version Are you sure you want to delete ${version} of this page? # endtrans
# if num_versions == 1: # trans created = last_modified Created ${created}. # endtrans
# trans This is the only version of the page, so the page will be removed completely! # endtrans # else: # trans modified = last_modified Modified ${modified}. # endtrans # endif

# else:

${_("Are you sure you want to completely delete this page?")}
# if num_versions == 1: # set version ${_("version")} # endset # trans version, created = last_modified Removing the one and only ${version} of the page, which was created ${created}. # endtrans # else: # set num_versions ${ ngettext("%(num)d version", "%(num)d versions", num=num_versions) } # endset # trans num_versions, created = first_modified, modified = last_modified Removing all ${num_versions} of the page, which was created ${created} and last modified ${modified}. # endtrans # endif

# endif # if (what == 'page' or num_versions == 1) and attachments:

${_("The following attachments will also be deleted:")}

# for attachment in attachments:
- ${attachment.filename}
# endfor

# endif

${_("This is an irreversible operation.")}

# if new_version: # endif # if old_version: # endif
# call(note, page) jmacros.wikihelp('WikiDeletePage'): # trans note, page ${note} See ${page} for help on deleting wiki pages. # endtrans # endcall
${ super() } # endblock content