{# 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 head # set modify_perm = 'WIKI_MODIFY' in perm(page.resource) # set is_not_latest = page.exists and page.version != latest_version ${ super() } # if version or page.author == 'trac': # endif # if modify_perm: # endif
# endblock head
# block content # set modify_perm = 'WIKI_MODIFY' in perm(page.resource) # set create_perm = 'WIKI_CREATE' in perm(page.resource) # set admin_perm = 'WIKI_ADMIN' in perm(page.resource) # set is_not_latest = page.exists and page.version != latest_version
# if version:

# with # set version = page.version # set author = authorinfo(page.author) # set date = pretty_dateinfo(page.time) # set diff ${_("diff")} # endset # trans version, author, date, diff Version ${version} (modified by ${author}, ${date}) (${diff}) # endtrans # endwith
${wiki_to_html(context, page.comment or '--')}

# endif
# if page.exists:
${ wiki_to_html(context, text) }
# if not version:
# with # set href = href.wiki(page.name, action='diff', version=page.version) # set last_modification = ( _('Version %(version)s by %(author)s: %(comment)s', version=page.version, author=format_author(page.author), comment=page.comment) if page.comment else _('Version %(version)s by %(author)s', version=page.version, author=format_author(page.author)) ) # set last_modified ${ _("Last modified")} # endset # set date = pretty_dateinfo(page.time) # trans last_modified, date ${last_modified} ${date} # endtrans # endwith ${_("Last modified on %(date)s", date=format_datetime(page.time))}
# endif # else:

# set name ${name_of(page.resource)} # endset # trans name The page ${name} does not exist. You can create it here. # endtrans

# endif
# with # set alist = attachments # set compact = True # set foldable = True # include 'list_of_attachments.html' # endwith # with # set delete_perm = 'WIKI_DELETE' in perm(page.resource) # set rename_perm = 'WIKI_RENAME' in perm(page.resource) # if modify_perm or create_perm or delete_perm:
# if modify_perm or create_perm:
# if is_not_latest and modify_perm: # elif page.exists and modify_perm: # elif not page.exists and create_perm: # if templates:
${_("using the template:")}
# endif # endif
# if page.exists: # with alist = attachments # include 'attach_file_form.html' # endwith # endif # endif # if page.exists and rename_perm:
# endif # if page.exists and delete_perm:
# if page.version == latest_version: # endif
# endif
# endif # endwith # if not page.exists and higher:

${_("You could also create the same page higher in the hierarchy:")}

# for markup in higher:
- ${markup}
# endfor

# endif # if not page.exists and related:

# trans The following pages have a name similar to this page, and may be related: # endtrans

# for markup in related:
- ${markup}
# endfor

# endif # call(note, page) jmacros.wikihelp('TracWiki'): # trans note, page ${note} See ${page} for help on using the wiki. # endtrans # endcall
${ super() } # endblock content