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

« back to all changes in this revision

Viewing changes to www/apps/help/__init__.py

  • Committer: mattgiuca
  • Date: 2008-01-31 01:44:30 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:345
Global CSS change: ivlebody no longer has 1em of padding (it has none).
This is because most apps were disabling it (and it had to change anyway for
other reasons -- see below).

Hence, all apps which WERE disabling the padding have had that removed, and
just work by default. (console, browser, tutorial)
All apps which WEREN'T disabling the padding (very few) now have to manually
include an extra div. This has been done on all such apps, and has been
heavily documented (both in the CSS file and doc/app_howto). (help, dummy,
debuginfo).

media/common/ivle.css: 
    The real change here (which isn't yet being used) is that ivlebody is now
    positioned absolutely and takes up all the space on the canvas. This is
    to be used for full-page layouts in console and browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    req.write_html_head_foot = True
56
56
 
57
57
    # Start writing data
 
58
    req.write('<div id="ivle_padding">\n')
58
59
    req.write("<h1>Help</h1>\n")
59
60
 
60
61
    # Write a list of links to all apps with help modules
64
65
            req.write('  <li><a href="%s">%s</a></li>\n'
65
66
                % (os.path.join(util.make_path("help"), appurl), app.name))
66
67
    req.write("</ul>\n")
 
68
    req.write('</div>\n')
67
69
 
68
70
def show_help_app(req, app):
69
71
    """Show help for an application."""
74
76
    req.write_html_head_foot = True
75
77
 
76
78
    # Start writing data
 
79
    req.write('<div id="ivle_padding">\n')
77
80
    req.write("<h1>Help - %s</h1>\n" % app.name)
78
81
 
79
82
    # Print out the contents of the HTML help file
80
83
    req.sendfile(helpfile)
 
84
    req.write('</div>\n')