13
13
<!-- !define common navbar -->
14
14
<span py:def="navbar()">
15
<!-- !requires: ${navigation: start_revid, revid, revid_list, pagesize, buttons, scan_url}, ${history} -->
15
<!-- !requires: ${navigation: start_revid, revid, revid_list, pagesize, buttons, scan_url}, ${branch}, ${history} -->
16
<div class="navbar" py:if="navigation is not None">
18
18
<!-- form must go OUTSIDE the table, or safari will add extra padding :( -->
19
<form action="${tg.url('/changes', start_revid=getattr(navigation, 'start_revid', None), file_id=getattr(navigation, 'file_id', None))}">
19
<form action="${branch.url('/changes', start_revid=getattr(navigation, 'start_revid', None), file_id=getattr(navigation, 'file_id', None))}">
22
22
<span class="buttons">
23
23
<!-- ! navbar buttons never change, from now on. i decree it! -->
24
<a href="${tg.url('/changes')}"> changes </a>
25
<a href="${tg.url('/files')}"> files </a>
24
<a href="${branch.url('/changes')}"> changes </a>
25
<a href="${branch.url('/files')}"> files </a>
26
26
<span class="search"> search: <input type="text" name="q" /> </span>
28
28
</td><td align="right" py:if="hasattr(navigation, 'revid_list')">
29
29
<span py:if="hasattr(navigation, 'feed')" class="rbuttons feed">
30
<a href="${tg.url('/atom')}"><img src="${tg.url('/static/images/feed-icon-16x16.gif')}" /></a>
30
<a href="${branch.url('/atom')}"><img src="${tg.url('/static/images/feed-icon-16x16.gif')}" /></a>
32
32
<span class="navbuttons">
33
33
<span py:if="navigation.prev_page_revid"> <a href="${navigation.prev_page_url}" title="Previous page"> « </a> </span>
46
46
<span py:def="revlink(revid, start_revid, file_id, text)">
47
<a title="Show revision ${history.get_revno(revid)}" href="${tg.url([ '/revision', revid ], start_revid=start_revid, file_id=file_id)}" class="revlink"> ${text} </a>
47
<a title="Show revision ${history.get_revno(revid)}" href="${branch.url([ '/revision', revid ], start_revid=start_revid, file_id=file_id)}" class="revlink"> ${text} </a>
49
49
<span py:def="revlink_q(revid, start_revid, file_id, query, text)">
50
<a title="Show revision ${history.get_revno(revid)}" href="${tg.url([ '/revision', revid ], start_revid=start_revid, file_id=file_id, q=query)}" class="revlink"> ${text} </a>
50
<a title="Show revision ${history.get_revno(revid)}" href="${branch.url([ '/revision', revid ], start_revid=start_revid, file_id=file_id, q=query)}" class="revlink"> ${text} </a>