~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revisionfilechanges.pt

  • Committer: Michael Hudson
  • Date: 2008-09-24 04:52:40 UTC
  • mto: (217.1.9 logging)
  • mto: This revision was merged to the branch mainline in revision 226.
  • Revision ID: michael.hudson@canonical.com-20080924045240-9vut19xgxid7txcr
whitespace, style, typos

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<tal:block>
2
 
  <ul tal:repeat="added file_changes/added">
 
2
<ul tal:repeat="added entry/changes/added">
3
3
    <tal:block condition="repeat/added/start">
4
 
      <li class="desc">files added:</li>
 
4
        <li class="desc">files added:</li>
5
5
    </tal:block>
6
 
    <li class="files">
7
 
      <tal:revision condition="python:added.kind == 'file'"
8
 
                    content="structure python:file_link(added.filename)" />
9
 
      <tal:revision condition="python:added.kind != 'file'"
10
 
                    content="added/filename" />
 
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>
11
12
    </li>
12
 
  </ul>
 
13
</ul>
13
14
 
14
 
  <ul tal:repeat="removed file_changes/removed">
 
15
<ul tal:repeat="removed entry/changes/removed">
15
16
    <tal:block condition="repeat/removed/start">
16
 
      <li class="desc">files removed:</li>
 
17
        <li class="desc">files removed:</li>
17
18
    </tal:block>
18
 
    <li class="files">
19
 
      <tal:revision condition="python:removed.kind == 'file'"
20
 
                    content="structure python:file_link(removed.filename)" />
21
 
      <tal:revision condition="python:removed.kind != 'file'"
22
 
                    content="removed/filename" />
 
19
    <li class="files"
 
20
        tal:define="filename python:removed[0];
 
21
                    file_id  python:removed[1]">
 
22
      <tal:block content="filename" />
23
23
    </li>
24
 
  </ul>
 
24
</ul>
25
25
 
26
 
  <ul tal:repeat="renamed file_changes/renamed">
 
26
<ul tal:repeat="renamed entry/changes/renamed">
27
27
    <tal:block condition="repeat/renamed/start">
28
 
      <li class="desc">files renamed:</li>
 
28
        <li class="desc">files renamed:</li>
29
29
    </tal:block>
30
 
    <li class="files">
31
 
      <tal:old-name content="renamed/old_filename" class="filename">
 
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">
32
37
        old_filename
33
 
      </tal:old-name>
34
 
      =&gt;
35
 
      <tal:revision condition="renamed/text_modified" content="structure python:file_link(renamed.new_filename)" />
36
 
      <tal:old-name condition="not:renamed/text_modified" content="renamed/new_filename" class="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">
37
43
        new_filename
38
 
      </tal:old-name>
39
 
      <tal:prop-change condition="renamed/exe_change" content="string:*" />
 
44
      </a>
40
45
    </li>
41
 
  </ul>
 
46
</ul>
42
47
 
43
 
  <ul tal:repeat="item file_changes/modified">
 
48
<ul tal:repeat="item entry/changes/modified">
44
49
    <tal:block condition="repeat/item/start">
45
 
      <li class="desc">files modified:</li>
 
50
        <li class="desc">files modified:</li>
46
51
    </tal:block>
47
52
    <li class="files">
48
 
      <tal:revision condition="item/text_modified" content="structure python:file_link(item.filename)" />
49
 
      <tal:revision condition="not:item/text_modified" content="item/filename" />
50
 
      <tal:prop-change condition="item/exe_change" content="string:*" />
 
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"/>
51
56
    </li>
52
 
  </ul>
 
57
</ul>
53
58
</tal:block>