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

« back to all changes in this revision

Viewing changes to www/apps/tutorial/__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:
109
109
    if req.uri[-1] != os.sep:
110
110
        req.throw_redirect(make_tutorial_path())
111
111
    req.write_html_head_foot = True
112
 
    req.write('<div id="tutorialbody">\n')
 
112
    req.write('<div id="ivle_padding">\n')
113
113
    req.write("<h1>IVLE Tutorials</h1>\n")
114
114
    req.write("""<p>Welcome to the IVLE tutorial system.
115
115
  Please select a subject from the list below to take a tutorial problem sheet
162
162
    # Now all the errors are out the way, we can begin writing
163
163
    req.title = "Tutorial - %s" % subject
164
164
    req.write_html_head_foot = True
165
 
    req.write('<div id="tutorialbody">\n')
 
165
    req.write('<div id="ivle_padding">\n')
166
166
    req.write("<h1>IVLE Tutorials - %s</h1>\n" % cgi.escape(subject))
167
167
    req.write("<h2>Worksheets</h2>\n<ul>\n")
168
168
    for worksheet in worksheets:
200
200
    # Now all the errors are out the way, we can begin writing
201
201
    req.title = "Tutorial - %s" % worksheetname
202
202
    req.write_html_head_foot = True
203
 
    req.write('<div id="tutorialbody">\n')
 
203
    req.write('<div id="ivle_padding">\n')
204
204
    req.write("<h1>IVLE Tutorials - %s</h1>\n<h2>%s</h2>\n"
205
205
        % (cgi.escape(subject), cgi.escape(worksheetname)))
206
206
    # Write each element