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

« back to all changes in this revision

Viewing changes to bin/ivle-showenrolment

  • Committer: Matt Giuca
  • Date: 2009-02-25 10:05:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1119.
  • Revision ID: matt.giuca@gmail.com-20090225100526-c93kqtmjiqy65p2n
tutorial.css: Styled the H1 inside the page to look like a regular h1, not our
    special golden h1 (which doesn't work except at the top of the page).

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
if user.enrolments.count() > 0:
42
42
    print 'IVLE enrolment for %s (%s):' % (user.login, user.fullname)
43
 
    print '    Code       Name Year Semester     Role'
44
 
    print '-------- ---------- ---- -------- --------'
 
43
    print '    Code       Name Semester Year'
 
44
    print '-------- ---------- -------- ----'
45
45
    for e in user.enrolments:
46
 
        print '%8s %10s %4s %8s %8s' % (
 
46
        print '%8s %10s %8s %4s' % (
47
47
                e.offering.subject.code, e.offering.subject.short_name,
48
 
                e.offering.semester.year, e.offering.semester.semester,
49
 
                e.role
 
48
                e.offering.semester.semester, e.offering.semester.year
50
49
                )
51
50
else:
52
51
    print '%s (%s) is not enrolled in any IVLE offerings' % (