~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revision.pt

convert revision view too

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        <div class="links">
34
34
          <div>
35
35
            <b>&#8594;</b>
36
 
            <a tal:attributes="href python:url(['/files', revid])">
 
36
            <a tal:attributes="href python:url(['/files', change.revno])">
37
37
              browse files at revision <tal:b content="change/revno" />
38
38
            </a>
39
39
          </div>
40
40
          <div>
41
41
            <b>&#8594;</b>
42
 
            <a tal:attributes="href python:url(['/changes'], start_revid=revid)">
 
42
            <a tal:attributes="href python:url(['/changes'], start_revid=change.revno)">
43
43
              view history from revision <tal:b content="change/revno" />
44
44
            </a>
45
45
          </div>
46
46
          <div tal:condition="python:compare_revid is not None" >
47
47
            <b>&#8594;</b>
48
 
            <a tal:attributes="href python:branch.url(['/bundle', revid, compare_revid, 'bundle.txt'])">
 
48
            <a tal:attributes="href python:branch.url(['/bundle', change.revno, history.get_revno(compare_revid), 'bundle.txt'])">
49
49
                download bundle from <tal:b content="python:history.get_revno(compare_revid)" /> to <tal:b content="change/revno" />
50
50
            </a>
51
51
          </div>
52
 
          <div tal:condition="python:(remember is not None) and (compare_revid is None) and (revid != remember)" >
 
52
          <div tal:condition="python:(remember is not None) and (compare_revid is None) and remember != revid" >
53
53
            <b>&#8594;</b>
54
 
            <a tal:attributes="href python:url(['/revision', revid], compare_revid=remember)">
 
54
            <a tal:attributes="href python:url(['/revision', change.revno], compare_revid=history.get_revno(remember))">
55
55
              compare with revision <tal:b content="python:history.get_revno(remember)" />
56
56
            </a>
57
57
          </div>
58
58
          <div  tal:condition="python:remember != revid">
59
59
            <b>&#8594;</b>
60
 
            <a tal:attributes="href python:url(['/revision', revid], remember=revid, compare_revid=None)">
 
60
            <a tal:attributes="href python:url(['/revision', change.revno], remember=change.revno, compare_revid=None)">
61
61
              compare with another revision
62
62
            </a>
63
63
          </div>
64
64
          <tal:we-are-comparing condition="python:compare_revid is not None">
65
65
            <div>
66
66
              <b>&#8594;</b>
67
 
              <a tal:attributes="href python:url([ '/revision', compare_revid ], remember=revid, compare_revid=revid)">
 
67
              <a tal:attributes="href python:url([ '/revision', history.get_revno(compare_revid) ], remember=change.revno, compare_revid=change.revno)">
68
68
                reverse the comparison (<tal:b content="change/revno" /> to <tal:b content="python:history.get_revno(compare_revid)" />)
69
69
              </a>
70
70
            </div>
71
71
            <div>
72
72
              <b>&#8594;</b>
73
 
              <a tal:attributes="href python:url(['/revision', revid], remember=None, compare_revid=None)">
 
73
              <a tal:attributes="href python:url(['/revision', change.revno], remember=None, compare_revid=None)">
74
74
                stop comparing with revision <tal:b content="python:history.get_revno(compare_revid)" />
75
75
              </a>
76
76
            </div>
212
212
                <tr>
213
213
                  <th class="filename" colspan="4">
214
214
                    <tal:b content="structure python:collapse_button('file', u, 'table-row')" />
215
 
                    <a tal:attributes="href  python:url(['/annotate', change.revid], file_id=item.file_id);
 
215
                    <a tal:attributes="href  python:url(['/annotate', change.revno], file_id=item.file_id);
216
216
                                       name  string:${item/filename}-u;
217
217
                                       title string:Annotate ${item/filename}"
218
218
                       tal:content="item/filename">