~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/dispatch/html.py

  • Committer: mattgiuca
  • Date: 2008-02-28 07:09:49 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:605
settings.js: Updates the user's nickname in the top bar immediately, to avoid
    suspicion that the nickname hasn't been updated.
dispatch/html: To facilitate this, made a <span> around the user's nick.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    if req.user:
90
90
        # Get the user's nickname from the request session
91
91
        nickname = req.user.nick
92
 
        req.write('  <p class="userhello">%s (<span '
93
 
            'class="username">%s</span>) |\n'
 
92
        req.write('  <p class="userhello"><span id="usernick">%s</span> '
 
93
            '(<span class="username">%s</span>) |\n'
94
94
            '    <a href="%s">Settings</a> |\n'
95
95
            '    <a href="%s">Help</a> |\n'
96
96
            '    <a href="%s">Sign out</a>\n'