~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revisionfilechanges.pt

  • Committer: Martin Albisetti
  • Date: 2008-06-13 19:06:49 UTC
  • mto: (157.1.3 loggerhead)
  • mto: This revision was merged to the branch mainline in revision 187.
  • Revision ID: argentina@gmail.com-20080613190649-v1a73rlw9873fwd7
 * Show modified/added/removed/renamed files correctly
 * Change links to use revnos instead of revids

Show diffs side-by-side

added added

removed removed

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