1
<metal:page define-macro="master">
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml">
7
<meta content="text/html; charset=UTF-8" http-equiv="content-type" tal:replace="nothing"/>
8
<title tal:content="view/title">Your title goes here</title>
9
<meta py:replace="item[:]"/>
10
<style type="text/css" media="screen"
11
tal:content="string:@import url(${tg.url('/static/css/style.css')});">
12
@import url(/static/css/style.css);
15
<!-- !define common navbar -->
16
<span py:def="navbar()" py:strip="True">
17
<!-- !requires: ${navigation: start_revid, revid, revid_list, pagesize, buttons, scan_url}, ${branch}, ${history} -->
18
<div class="bar" py:if="navigation is not None">
19
<!-- form must go OUTSIDE the table, or safari will add extra padding :( -->
20
<form action="${branch.url('/changes', start_revid=getattr(navigation, 'start_revid', None),
21
file_id=getattr(navigation, 'file_id', None))}"><table><tr>
22
<td><span class="buttons">
23
<!-- ! navbar buttons never change, from now on. i decree it! -->
24
<a href="${branch.url('/changes', **util.get_context(clear=1))}"> changes </a>
25
<a href="${branch.url('/files', **util.get_context(clear=1))}"> files </a>
26
<span class="search"> search: <input type="text" name="q" /> </span>
28
<td align="right" py:if="hasattr(navigation, 'revid_list')">
29
<span py:if="hasattr(navigation, 'feed')" class="rbuttons feed">
30
<a href="${branch.url('/atom')}">
31
<img src="${tg.url('/static/images/feed-icon-16x16.gif')}" /></a>
33
<span class="navbuttons">
34
<span py:if="navigation.prev_page_revid">
35
<a href="${navigation.prev_page_url}" title="Previous page"> « </a>
37
<span py:if="not navigation.prev_page_revid"> « </span>
38
revision ${history.get_revno(revid)}
39
(<span py:if="navigation.pagesize > 1">page </span>
40
${navigation.page_position} / ${navigation.page_count})
41
<span py:if="navigation.next_page_revid">
42
<a href="${navigation.next_page_url}" title="Next page"> » </a>
44
<span py:if="not navigation.next_page_revid"> » </span>
51
<metal:revlink metal:define-macro="revision-link">
52
<tal:comment replace="nothing">
53
This macro expects the following variables:
60
<a tal:attributes="title string:Show revision ${history.get_revno(revid)}
61
href string:${branch.url([ '/revision', revid ], **util.get_context(**overrides))}"
63
href="/branch/revision/$revid">
68
<!-- ! expand button functions: -->
70
<span py:strip="True" py:def="use_collapse_buttons()">
71
<!-- this is totally matty's fault. i don't like javacsript. ;) -->
72
<script type="text/javascript" src="${tg.url('/static/javascript/collapse.js')}"></script>
75
<span py:strip="True" py:def="collapse_all_button(group, normal='block')">
76
<a class="hide-all collapse-${group}-hideall"
77
href="javascript:collapseAllDisplay('${group}','none')">
78
<img src="${tg.url('/static/images/nav-small-down.gif')}"
79
width="10" height="10" alt="collapse"
80
class="collapse-triangle" />collapse all</a>
81
<a class="hide-all collapse-${group}-showall"
82
href="javascript:collapseAllDisplay('${group}','${normal}')">
83
<img src="${tg.url('/static/images/nav-small-right.gif')}"
84
width="10" height="10" alt="expand"
85
class="collapse-triangle" />expand all</a>
88
<span py:strip="True" py:def="collapse_button(group, name, normal='block')">
89
<a href="javascript:collapseDisplay('${group}','${name}','none')"
90
class="hide-button collapse-${group}-${name}-hide" title="collapse">
91
<img src="${tg.url('/static/images/nav-small-down.gif')}"
92
width="10" height="10" alt="collapse"
93
class="collapse-triangle" />
95
<a href="javascript:collapseDisplay('${group}','${name}','${normal}')"
96
class="show-button collapse-${group}-${name}-show" title="expand">
97
<img src="${tg.url('/static/images/nav-small-right.gif')}"
98
witdh="10" height="10" alt="expand"
99
class="collapse-triangle" />
105
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'"
106
py:attrs="item.items()">
108
<div py:replace="[item.text]+item[:]"/>
110
<!-- End of main_content -->
113
<span class="banner"><a href="http://www.bazaar-vcs.org/">
114
<img src="${tg.url('/static/images/bazaar-banner.png')}" /></a></span>
115
<span class="banner"><a href="http://www.lag.net/loggerhead/">
116
<img src="${tg.url('/static/images/loggerhead-banner.png')}" /></a></span>