~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revision.pt

  • Committer: Matt Nordhoff
  • Date: 2009-05-05 18:37:26 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20090505183726-vx33cer1yz1hsw2w
Directory UI: Only stat() directories that couldn't be opened, to reduce the number of stats. (Jelmer Vernooij)

Jelmer did this with his transport work, but I didn't realize why, so I took it out. Whoops.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    </head>
21
21
 
22
22
    <body>
23
 
      <tal:block metal:fill-slot="backlink">
24
 
          <tal:has-link condition="branch/branch_link">
25
 
            <div class="black-link">
26
 
                <a tal:attributes="href branch/branch_link">
27
 
                  &#8592; Back to branch summary
28
 
                </a>
29
 
            </div>
30
 
          </tal:has-link>
31
 
      </tal:block>
32
 
      <tal:block metal:fill-slot="branchname" tal:content="string:${branch/friendly_name}" />
 
23
 
33
24
      <tal:block metal:fill-slot="heading">
34
 
        <div id="breadcrumbs">
 
25
        <h1>
35
26
          <tal:has-link condition="branch/branch_link">
36
27
            <a tal:attributes="href branch/branch_link"
37
28
               tal:content="branch/friendly_name">
41
32
          <tal:no-link condition="not: branch/branch_link">
42
33
            <span metal:use-macro="breadcrumbs/directory"></span>
43
34
          </tal:no-link>
44
 
          <span class="breadcrumb">&#187; Revision
 
35
          <span class="breadcrumb">:
45
36
            <tal:revno condition="not:specific_path" content="change/revno"></tal:revno>
46
37
            <a tal:condition="specific_path" tal:content="change/revno"
47
38
               tal:attributes="href python:url(['/revision', change.revno])"
51
42
            </tal:compare-to>
52
43
          </span>
53
44
          <span class="breadcrumb" tal:condition="specific_path">
54
 
            : <tal:annotate content="structure python:view_link(url, change.revno, specific_path)" />
 
45
            : <tal:annotate content="structure python:annotate_link(url, change.revno, specific_path)" />
55
46
          </span>
56
 
        </div>
 
47
        </h1>
57
48
        <tal:branch-info replace="structure python:branchinfo(branch)" />
58
 
        <h1 tal:condition="not:specific_path">
 
49
        <p tal:condition="not:specific_path">
59
50
          Viewing all changes in revision <tal:revno content="change/revno" />.
60
 
        </h1>
 
51
        </p>
61
52
        <p tal:condition="specific_path">
62
53
          <a tal:attributes="href python:url(['/revision', change.revno])">
63
54
            &#xAB; back to all changes in this revision
64
55
          </a>
65
56
        </p>
66
57
        <p tal:condition="specific_path">
67
 
          Viewing changes to <tal:annotate content="structure python:view_link(url, change.revno, specific_path)" />
 
58
          Viewing changes to <tal:annotate content="structure python:annotate_link(url, change.revno, specific_path)" />
68
59
        </p>
69
60
        <ul id="submenuTabs">
70
61
          <li id="first"><a tal:attributes="href python:url(['/files', change.revno]);
80
71
            </a>
81
72
          </li>
82
73
          <li>
83
 
            <a tal:condition="python:compare_revid is None"
 
74
            <a tal:condition="python:len(change.parents) > 0 and compare_revid is None"
84
75
               tal:attributes="href python:url(['/diff', change.revno], clear=1)">download diff</a>
85
76
            <a tal:condition="python:compare_revid is not None"
86
77
               tal:attributes="href python:url(['/diff', change.revno, history.get_revno(compare_revid)], clear=1)">download diff</a>
87
 
           </li>
88
 
           <li tal:condition="python:can_export">
89
 
            <a tal:attributes="href python:url(['/tarball', change.revno])">Download tarball</a>
90
 
           </li>
 
78
          </li>
91
79
          <li id="last"><a tal:attributes="href python:url(['/changes', change.revno]);
92
80
                                           title string:view history from revision ${change/revno}"
93
81
                           tal:content="string:view history from revision ${change/revno}"></a></li>
108
96
          </ul>
109
97
        </tal:we-are-comparing>
110
98
 
111
 
        <tal:revision-info replace="structure python:revisioninfo(url, branch, change, file_changes, specific_path, merged_in)" />
 
99
        <tal:revision-info replace="structure python:revisioninfo(url, branch, change, file_changes, specific_path)" />
112
100
        <tal:specific-path condition="not:specific_path">
113
101
          <p class="expand show_if_js" id="expand_all"><a href="#">
114
102
              <img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"