~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/master.kid

  • Committer: Guillermo Gonzalez
  • Date: 2008-08-22 16:07:30 UTC
  • mto: (217.1.9 logging)
  • mto: This revision was merged to the branch mainline in revision 226.
  • Revision ID: guillo.gonzo@gmail.com-20080822160730-tp6iqlotpxbieb1a
 * refactor of logging-related functions (setup_logging and make_handler) into (new) trace module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
 
<?python import sitetemplate ?>
3
 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="sitetemplate">
4
 
 
5
 
<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">
6
 
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
7
 
    <title py:replace="''">Your title goes here</title>
8
 
    <meta py:replace="item[:]"/>
9
 
    <style type="text/css" media="screen">
10
 
@import "/static/css/style.css";
11
 
    </style>
12
 
 
13
 
<!-- define common navbar -->
14
 
<span py:def="navbar()">
15
 
    <!-- requires: ${revid}, ${buttons} -->
16
 
    <div class="navbar">
17
 
        <div class="bar">
18
 
            <table>
19
 
                <tr><td>
20
 
                    <span class="buttons">
21
 
                        <span py:for="label, url in buttons">
22
 
                            <a href="${url}"> ${label} </a>
23
 
                        </span>
24
 
                    </span>
25
 
                </td><td align="right">
26
 
                    <span class="navbuttons">
27
 
                        <span py:for="label, l_revid in history.scan_range(revid)">
28
 
                            <a py:if="l_revid" href="${tg.url([ scan_url, l_revid ])}"> ${label} </a>
29
 
                            <span py:if="not l_revid"> ${label} </span>
30
 
                        </span>
31
 
                    </span>
32
 
                </td></tr>
33
 
            </table>
34
 
        </div>
35
 
        <div class="navposition">
36
 
            <table>
37
 
                <tr>
38
 
                    <td> </td>
39
 
                    <td class="navposition" align="right">
40
 
                        changes: ${history.get_sequence(revid) + 1} / ${history.count}
41
 
                    </td>
42
 
                </tr>
43
 
            </table>
44
 
        </div>
45
 
    </div>
46
 
</span>
47
 
 
48
 
</head>
49
 
 
50
 
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
51
 
 
52
 
    <div py:replace="[item.text]+item[:]"/>
53
 
 
54
 
        <!-- End of main_content -->
55
 
</body>
56
 
 
57
 
</html>