~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

  • Committer: Michael Hudson
  • Date: 2008-06-20 02:16:39 UTC
  • mfrom: (128.8.15 zpt.cleaner_urls)
  • Revision ID: michael.hudson@canonical.com-20080620021639-iz2738k6jomjue3t
merge zpt.cleaner_urls, which generates urls containing revision numbers rather
than revision ids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
    <div metal:fill-slot="content">
22
22
      <div class="links">
23
 
        <div> <b>&#8594;</b> <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=revid)">
 
23
        <div> <b>&#8594;</b> <a tal:attributes="href python:url(['/revision', change.revno], clear=1, start_revid=change.revno)">
24
24
            view revision </a>
25
25
        </div>
26
 
        <div> <b>&#8594;</b> <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=revid)">
 
26
        <div> <b>&#8594;</b> <a tal:attributes="href python:url(['/changes', change.revno], clear=1, start_revid=change.revno)">
27
27
            view branch changes </a>
28
28
        </div>
29
29
      </div>
81
81
          </td>
82
82
          <td tal:attributes="class string:filename ${file/kind}">
83
83
            <a tal:condition="python:file.kind=='directory'"
84
 
               tal:attributes="href python:url(['/files', revid], file_id=file.file_id)"
 
84
               tal:attributes="href python:url(['/files', change.revno], file_id=file.file_id)"
85
85
               tal:content="string:${file/filename}/">
86
86
              ${file.filename}/
87
87
            </a>
90
90
              ${file.filename}@
91
91
            </span>
92
92
            <a tal:condition="python:file.kind=='file'"
93
 
               tal:attributes="href python:url(['/annotate', revid], file_id=file.file_id);
 
93
               tal:attributes="href python:url(['/annotate', change.revno], file_id=file.file_id);
94
94
                               title string:Annotate ${file/filename}"
95
95
               tal:content="string:${file/filename}">
96
96
              ${file.filename}
97
97
            </a>
98
98
          </td>
99
99
          <td class="revision">
100
 
            <a tal:attributes="href python:url(['/revision', file.revid], start_revid=file.revid, file_id=file.file_id);
 
100
            <a tal:attributes="href python:url(['/revision', file.change.revno], filter_file_id=file.file_id);
101
101
                               title string:Show revision ${file/change/revno}"
102
102
               tal:content="python:util.trunc(file.change.revno, 15)">
103
103
              ${text}