# 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:
# 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