~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/master.kid

  • Committer: Robey Pointer
  • Date: 2006-12-12 03:50:13 UTC
  • Revision ID: robey@lag.net-20061212035013-gtyh3npcck6ezy53
figured out what the merge points logic was about, and yes it was important, and yes i was using it in a totally wrong way before, and yes i had incompetently tried to roll my own equivalent without fully understanding it.  so switch to merge points.

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}, ${history}, ${scan_url} -->
 
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="revlink(revid, text)">
 
49
    <a title="Show revision" href="${tg.url([ '/revision', revid ])}" class="revlink"> ${text} </a>
 
50
</span>
 
51
 
 
52
</head>
 
53
 
 
54
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
 
55
 
 
56
    <div py:replace="[item.text]+item[:]"/>
 
57
 
 
58
        <!-- End of main_content -->
 
59
</body>
 
60
 
 
61
</html>