~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/master.kid

  • Committer: Martin Pool
  • Date: 2011-11-23 08:33:12 UTC
  • mto: This revision was merged to the branch mainline in revision 461.
  • Revision ID: mbp@canonical.com-20111123083312-4stzhfv5843jxv2k
Bump version to 1.18.1; compatible with bzr 2.5

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}, ${pagesize} -->
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_title, l_revid in history.scan_range(revid, pagesize)">
28
 
                            <a py:if="l_revid" href="${tg.url([ scan_url, l_revid ])}" title="${l_title}"> ${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
 
<span py:def="revision_link(revid, revno)">
49
 
    <a title="Show revision info" href="${tg.url([ '/revision', revid ])}">
50
 
        <span class="revno"> ${revno} </span>
51
 
    </a>
52
 
    <a title="Show changelog" href="${tg.url([ '/changes', revid ])}" class="log"> (log) </a>
53
 
    <a title="Show revision info" href="${tg.url([ '/revision', revid ])}">
54
 
        <span class="revid"> ${util.clean_revid(revid)} </span>
55
 
    </a>
56
 
</span>
57
 
 
58
 
</head>
59
 
 
60
 
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
61
 
 
62
 
    <div py:replace="[item.text]+item[:]"/>
63
 
 
64
 
        <!-- End of main_content -->
65
 
</body>
66
 
 
67
 
</html>