A collection of macros for the MoinMoin wiki software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
635 B

# -*- coding: iso-8859-1 -*-
u'''
MoinMoin - PageRevision macro Version 0.1
Displays the revision number of the current MoinMoin page
<<PageRevision>>
Repository for the macro:
https://git.cpi.imtek.uni-freiburg.de/holgi/PageRevisionMacro
@copyright: 2018 by Holger Frey
@license: Beerware license
'''
from MoinMoin import wikiutil
def macro_PageRevision(macro):
request = macro.request
_ = request.getText
revision = request.page.current_rev() or ''
html = '<em>%s, revision %s</em>' % (request.page.page_name, str(revision))
return macro.formatter.rawHTML(html)