~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/breadcrumbs.pt

  • Committer: John Arbash Meinel
  • Date: 2010-04-13 20:16:07 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: john@arbash-meinel.com-20100413201607-exja9djcdlbt2b0i
Start updating the History object to avoid its O(all_revs) caches.

For now, I'm trying to just stick with bzrlib apis, such that when history_db
is available, then it is fast, but it is still correct without it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<body>
 
3
<!--
 
4
    Breadcrumbs macros
 
5
-->
 
6
<!--
 
7
    These are all defined on one line in order to get the spacing looking right
 
8
    in the output
 
9
-->
 
10
 
 
11
<!-- Branch breadcrumbs (for the path within the branch) -->
 
12
<span metal:define-macro="branch" class="breadcrumb">
 
13
    <tal:block repeat="crumb branch_breadcrumbs">/<a tal:attributes="href python:url([crumb['suffix'], change.revno], file_id=crumb['file_id'])" tal:content="crumb/dir_name" tal:condition="not:repeat/crumb/end" /><span tal:replace="crumb/dir_name" tal:condition="repeat/crumb/end" /></tal:block>
 
14
</span>
 
15
 
 
16
<!-- Directory breadcrumbs (for the path leading up to the branch) -->
 
17
<span metal:define-macro="directory" class="breadcrumb">
 
18
    <tal:block repeat="crumb directory_breadcrumbs"><span tal:condition="not:repeat/crumb/start">/</span><a tal:attributes="href python:static_url('/'+crumb['path'])" tal:content="crumb/dir_name" /></tal:block>
 
19
</span>
 
20
 
 
21
</body>
 
22
</html>