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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-01-12 16:13:31 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:203
browser: Removed all directory-listing specific HTML from the Python-generated
    html. This can't be static because different handlers need different
    content inside the page body (eg. binary files don't use a table).
    The JavaScript now clears a lot more of the page and rebuilds the entire
    directory listing table dynamically.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
</div>
54
54
<!-- End topbar -->
55
55
 
56
 
<!-- Centre section - files and side panel -->
57
 
<!-- Using a table-based layout, for reasons of sanity -->
58
 
<table id="middle"><tr>
59
 
 
60
 
<!-- File table -->
61
 
<td id="filetable">
62
 
 
63
 
<div id="filetablediv">
64
 
 
65
 
<table width="100%%">
66
 
<thead>
67
 
<tr class="rowhead">
68
 
    <th class="col-check"></th>
69
 
    <th colspan="3" class="col-filename"><a href="javascript:alert(&quot;Sort by name&quot;)" title="Sort by name">Filename</a>
70
 
        <img src="%s/images/interface/sortdown.png" alt="*" /></th>
71
 
    <th class="col-size"><a href="javascript:alert(&quot;Sort by file size&quot;)" title="Sort by file size">Size</a></th>
72
 
    <th class="col-date"><a href="javascript:alert(&quot;Sort by date modified&quot;)" title="Sort by date modified">Modified</a></th>
73
 
</tr>
74
 
</thead>
75
 
<tbody id="files">
76
 
</tbody>
77
 
</table>
78
 
</div>
79
 
</td>
80
 
<!-- End filetable -->
81
 
 
82
 
<!-- Side panel -->
83
 
 
84
 
<td id="sidepanel">
85
 
</td>
86
 
<!-- End sidepanel -->
87
 
 
88
 
</tr></table>
89
 
<!-- End middle -->
90
 
 
91
 
<!-- Bottom status bar -->
92
 
 
93
 
<div id="statusbar">
94
 
<table>
95
 
<tr><td>5 files, 14 kB</td></tr>
96
 
</table>
97
 
</div>
98
 
<!-- End statusbar -->
 
56
<!-- Body. The JavaScript places content here relevant to the path -->
 
57
<div id="filesbody">
 
58
</div>
 
59
<!-- End body -->
99
60
 
100
61
</body>
101
62
</html>
102
 
""" %
103
 
    # All the %ses above refer to the location of the IVLE media directory
104
 
    util.make_path("media")
105
 
)
 
63
""")
106
64