~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/master.kid

  • Committer: Launchpad Patch Queue Manager
  • Date: 2008-06-10 16:58:38 UTC
  • mfrom: (156.1.7 fix_deprecated_methods)
  • Revision ID: launchpad@pqm.canonical.com-20080610165838-0hdfo2tkh0xxgi25
[r=mwhudson] Changes from Martin Albisetti to remove dependence on
        deprecated-in-1.5-and-gone-in-1.6 bzrlib methods

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 "${tg.url('/static/css/style.css')}";
 
11
    </style>
 
12
 
 
13
<!-- !define common navbar -->
 
14
<span py:def="navbar()" py:strip="True">
 
15
    <!-- !requires: ${navigation: start_revid, revid, revid_list, pagesize, buttons, scan_url}, ${branch}, ${history} -->
 
16
    <div class="bar" py:if="navigation is not None">
 
17
        <!-- form must go OUTSIDE the table, or safari will add extra padding :( -->
 
18
        <form action="${branch.url('/changes', start_revid=getattr(navigation, 'start_revid', None),
 
19
              file_id=getattr(navigation, 'file_id', None))}"><table><tr>
 
20
            <td><span class="buttons">
 
21
                <!-- ! navbar buttons never change, from now on.  i decree it! -->
 
22
                <a href="${branch.context_url('/changes', clear=1)}"> changes </a>
 
23
                <a href="${branch.context_url('/files', clear=1)}"> files </a>
 
24
                <span class="search"> search: <input type="text" name="q" /> </span>
 
25
            </span></td>
 
26
            <td align="right" py:if="hasattr(navigation, 'revid_list')">
 
27
                <span py:if="hasattr(navigation, 'feed')" class="rbuttons feed">
 
28
                    <a href="${branch.url('/atom')}">
 
29
                    <img src="${tg.url('/static/images/feed-icon-16x16.gif')}" /></a>
 
30
                </span>
 
31
                <span class="navbuttons">
 
32
                        <span py:if="navigation.prev_page_revid">
 
33
                        <a href="${navigation.prev_page_url}" title="Previous page"> &#171; </a>
 
34
                    </span>
 
35
                        <span py:if="not navigation.prev_page_revid"> &#171; </span>
 
36
                    revision ${history.get_revno(revid)}
 
37
                    (<span py:if="navigation.pagesize > 1">page </span>${navigation.page_position} / ${navigation.page_count})
 
38
                        <span py:if="navigation.next_page_revid">
 
39
                    <a href="${navigation.next_page_url}" title="Next page"> &#187; </a>
 
40
                    </span>
 
41
                        <span py:if="not navigation.next_page_revid"> &#187; </span>
 
42
                </span>
 
43
            </td>
 
44
        </tr></table></form>
 
45
    </div>
 
46
</span>
 
47
 
 
48
<span py:def="revision_link(revid, text, **overrides)" py:strip="True">
 
49
    <a title="Show revision ${history.get_revno(revid)}"
 
50
       href="${branch.url([ '/revision', revid ], **util.get_context(**overrides))}"> ${text} </a>
 
51
</span>
 
52
 
 
53
 
 
54
<!-- ! expand button functions: -->
 
55
 
 
56
        <span py:strip="True" py:def="use_collapse_buttons()">
 
57
                <!-- this is totally matty's fault.  i don't like javacsript. ;) -->
 
58
                <script type="text/javascript" src="${tg.url('/static/javascript/collapse.js')}"></script>
 
59
        </span>
 
60
        
 
61
        <span py:strip="True" py:def="collapse_all_button(group, normal='block')">
 
62
            <a class="hide-all collapse-${group}-hideall"
 
63
               href="javascript:collapseAllDisplay('${group}','none')">
 
64
                <img src="${tg.url('/static/images/nav-small-down.gif')}"
 
65
                     width="10" height="10" alt="collapse"
 
66
                     class="collapse-triangle" />collapse all</a>
 
67
            <a class="hide-all collapse-${group}-showall"
 
68
               href="javascript:collapseAllDisplay('${group}','${normal}')">
 
69
                <img src="${tg.url('/static/images/nav-small-right.gif')}"
 
70
                     width="10" height="10" alt="expand"
 
71
                     class="collapse-triangle" />expand all</a>
 
72
        </span>
 
73
        
 
74
        <span py:strip="True" py:def="collapse_button(group, name, normal='block')">
 
75
            <a href="javascript:collapseDisplay('${group}','${name}','none')"
 
76
               class="hide-button collapse-${group}-${name}-hide" title="collapse">
 
77
                <img src="${tg.url('/static/images/nav-small-down.gif')}"
 
78
                     width="10" height="10" alt="collapse"
 
79
                     class="collapse-triangle" />
 
80
            </a>
 
81
            <a href="javascript:collapseDisplay('${group}','${name}','${normal}')"
 
82
               class="show-button collapse-${group}-${name}-show" title="expand">
 
83
                <img src="${tg.url('/static/images/nav-small-right.gif')}"
 
84
                     witdh="10" height="10" alt="expand"
 
85
                     class="collapse-triangle" />
 
86
            </a>
 
87
        </span>
 
88
 
 
89
</head>
 
90
 
 
91
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'"
 
92
      py:attrs="item.items()">
 
93
 
 
94
    <div py:replace="[item.text]+item[:]"/>
 
95
 
 
96
        <!-- End of main_content -->
 
97
        
 
98
        <div class="footer">
 
99
            <span class="banner"><a href="http://www.bazaar-vcs.org/">
 
100
            <img src="${tg.url('/static/images/bazaar-banner.png')}" /></a></span>
 
101
            <span class="banner"><a href="http://www.lag.net/loggerhead/">
 
102
            <img src="${tg.url('/static/images/loggerhead-banner.png')}" /></a></span>
 
103
        </div>
 
104
</body>
 
105
 
 
106
</html>