~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-03 23:53:52 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:394
Fixed display of the "DebugInfo" warning. Due to the new layout, this was
covering over the buttons. How annoying.
Now moved the warning to ivleheader_tabs so it shares the same layer as the
buttons. CSS'd accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
    else:
101
101
        req.write('  <p class="userhello">Not logged in.</p>')
102
102
 
 
103
    # ivleheader_tabs is a separate div, so it can be positioned absolutely
 
104
    req.write('</div>\n<div id="ivleheader_tabs">\n')
 
105
 
103
106
    # If the "debuginfo" app is installed, display a warning to the admin to
104
107
    # make sure it is removed in production.
105
108
    if "debuginfo" in conf.apps.app_url:
106
109
        req.write("  <p><small>Warning: debuginfo is enabled. Remove this "
107
110
            "app from conf.apps.app_url when placed into production."
108
111
            "</small></p>\n")
109
 
    # ivleheader_tabs is a separate div, so it can be positioned absolutely
110
 
    req.write('</div>\n<div id="ivleheader_tabs">\n')
111
112
 
112
113
    if req.username:
113
114
        # Only print app tabs if logged in