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

« back to all changes in this revision

Viewing changes to www/dispatch/html.py

  • Committer: mattgiuca
  • Date: 2008-01-11 07:39:40 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:186
Added a bit of "chrome" (some CSS styling and minor touching up of the HTML).
In particular, the main header has been moved around a bit, with the "hello"
message and tabs moved to the right, and the tabs converted from a bullet list
to actual tabs.

dispatch: html, login: Minor changes to HTML layout.
ivle.css: Wrote a few styles to change the appearance of the whole program.
browser.css: A few styles were removed from here and brought into the main css
file. Minor changes to be compatible with ivle.css.

browser: Removed all the sample content (which in actuality will be generated
by JavaScript).

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
""")
71
71
 
72
72
    if req.username:
73
 
        req.write("""<p>Hello, %s. <a href="%s">Logout</a></p>\n""" %
 
73
        req.write('<p class="userhello">Hello, %s. '
 
74
            '<a href="%s">Logout</a></p>\n' %
74
75
            (req.username, util.make_path('logout')))
75
76
    else:
76
 
        req.write("<p>Not logged in.</p>")
 
77
        req.write('<p class="userhello">Not logged in.</p>')
 
78
 
 
79
    print_apps_list(req)
77
80
 
78
81
    # If the "debuginfo" app is installed, display a warning to the admin to
79
82
    # make sure it is removed in production.
80
83
    if "debuginfo" in conf.apps.app_url:
81
 
        req.write("<p>Warning: debuginfo is enabled. Remove this app from "
82
 
            "conf.apps.app_url when placed into production.</p>\n")
83
 
 
84
 
    print_apps_list(req)
 
84
        req.write("<p><small>Warning: debuginfo is enabled. Remove this app "
 
85
            "from conf.apps.app_url when placed into production."
 
86
            "</small></p>\n")
85
87
 
86
88
def write_html_foot(req):
87
89
    """Writes the HTML footer, given a request object.