~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revisionfilechanges.pt

  • Committer: Robey Pointer
  • Date: 2007-03-26 07:05:10 UTC
  • mfrom: (114.2.2 handle-binary-files)
  • Revision ID: robey@lag.net-20070326070510-z9etamcrda8zphod
merge in fix for bug 91686: catch binary files and don't diff them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<tal:block>
2
 
<ul tal:repeat="added entry/changes/added">
3
 
    <tal:block condition="repeat/added/start">
4
 
        <li class="desc">files added:</li>
5
 
    </tal:block>
6
 
    <li class="files"
7
 
        tal:define="filename python:added[0];
8
 
                    file_id  python:added[1]">
9
 
        <a tal:attributes="href  python:url(['/annotate', entry.revno], file_id=file_id);
10
 
                           title string:Annotate ${filename}"
11
 
           tal:content="filename" class="link"></a>
12
 
    </li>
13
 
</ul>
14
 
 
15
 
<ul tal:repeat="removed entry/changes/removed">
16
 
    <tal:block condition="repeat/removed/start">
17
 
        <li class="desc">files removed:</li>
18
 
    </tal:block>
19
 
    <li class="files"
20
 
        tal:define="filename python:removed[0];
21
 
                    file_id  python:removed[1]">
22
 
      <tal:block content="filename" />
23
 
    </li>
24
 
</ul>
25
 
 
26
 
<ul tal:repeat="renamed entry/changes/renamed">
27
 
    <tal:block condition="repeat/renamed/start">
28
 
        <li class="desc">files renamed:</li>
29
 
    </tal:block>
30
 
    <li class="files"
31
 
        tal:define="old_filename python:renamed[0];
32
 
                    new_filename python:renamed[1];
33
 
                    file_id      python:renamed[2]">
34
 
      <a tal:attributes="href  python:url(['/annotate', entry.revno], file_id=file_id);
35
 
                         title string:Annotate ${old_filename}"
36
 
         tal:content="old_filename" class="filename">
37
 
        old_filename
38
 
      </a>
39
 
      =>
40
 
      <a tal:attributes="href  python:url(['/annotate', entry.revno], file_id=file_id);
41
 
                         title string:Annotate ${new_filename}"
42
 
         tal:content="new_filename">
43
 
        new_filename
44
 
      </a>
45
 
    </li>
46
 
</ul>
47
 
 
48
 
<ul tal:repeat="item entry/changes/modified">
49
 
    <tal:block condition="repeat/item/start">
50
 
        <li class="desc">files modified:</li>
51
 
    </tal:block>
52
 
    <li class="files">
53
 
      <a tal:attributes="href  python:url(['/annotate', entry.revno], file_id=item.file_id);
54
 
                         title string:Annotate ${item/filename}"
55
 
                         tal:content="item/filename"/>
56
 
    </li>
57
 
</ul>
58
 
</tal:block>