2008-03-21 | Paul Boddie | raw annotate files changeset graph | Remove edit signature. |
1 """ 2 MoinMoin - LoginHint 3 4 Usage: 5 [[LoginHint(Please login using the link at the top border!)]] 6 7 @copyright: 2006 Thomas Waldmann 8 @license: GNU GPL, see COPYING for details 9 """ 10 hint_style = "background-color: orange; text-align: center;" 11 12 def execute(macro, args): 13 request = macro.request 14 if request.user.valid: 15 hint = '' 16 else: 17 f = request.formatter 18 hint = (f.div(1, id="LoginHint", style=hint_style) + 19 f.text(args) + 20 f.div(0)) 21 return hint 22