2008-09-07 | Paul Boddie | file changeset files shortlog | Added links to translation issues, hopefully fixed in future MoinMoin versions. | moin-1.6 |
paul@34 | 1 | """ |
paul@34 | 2 | MoinMoin - LoginHint |
paul@34 | 3 | |
paul@34 | 4 | Usage: |
paul@34 | 5 | [[LoginHint(Please login using the link at the top border!)]] |
paul@34 | 6 | |
paul@34 | 7 | @copyright: 2006 Thomas Waldmann |
paul@34 | 8 | @license: GNU GPL, see COPYING for details |
paul@34 | 9 | """ |
paul@34 | 10 | hint_style = "background-color: orange; text-align: center;" |
paul@34 | 11 | |
paul@34 | 12 | def execute(macro, args): |
paul@34 | 13 | request = macro.request |
paul@34 | 14 | if request.user.valid: |
paul@34 | 15 | hint = '' |
paul@34 | 16 | else: |
paul@34 | 17 | f = request.formatter |
paul@34 | 18 | hint = (f.div(1, id="LoginHint", style=hint_style) + |
paul@34 | 19 | f.text(args) + |
paul@34 | 20 | f.div(0)) |
paul@34 | 21 | return hint |
paul@34 | 22 |