/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

convert annotate.pt to using metal in preparation for getting rid of the bizarro "here" hack

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
2
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
4
4
  <head>
5
 
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
6
 
    <title>
 
5
    <title metal:fill-slot="title">
7
6
      <tal:branch-name content="branch/friendly_name">
8
7
        ${branch.friendly_name}
9
8
      </tal:branch-name>
16
15
        ${change.revno}
17
16
      </tal:revno>
18
17
    </title>
19
 
    <link rel="stylesheet"
20
 
          tal:attributes="href python:tg.url('/static/css/zptstyle.css')" />
21
18
  </head>
22
19
 
23
20
  <body>
24
21
 
25
 
    <tal:navigation content="structure here/navigation.pt" />
26
 
 
27
 
    <h1>
 
22
    <h1 metal:fill-slot="heading">
28
23
      <span class="branch-name" tal:content="branch/friendly_name">
29
24
        ${branch.friendly_name}
30
25
      </span>
34
29
      </span>
35
30
      (revision <tal:revno content="change/revno">${change.revno}</tal:revno>)
36
31
    </h1>
37
 
    <div class="links">
38
 
      <div>
39
 
        <b>&#8594;</b>
40
 
        <a tal:attributes="href python:url(['/files', revid], clear=1)">
41
 
          browse files
42
 
        </a>
43
 
      </div>
44
 
      <div>
45
 
        <b>&#8594;</b>
46
 
        <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=revid)">
47
 
          view revision
48
 
        </a>
49
 
      </div>
50
 
      <div>
51
 
        <b>&#8594;</b>
52
 
        <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=revid, file_id=file_id)">
53
 
          view changes to this file
54
 
        </a>
55
 
      </div>
56
 
      <div>
57
 
        <b>&#8594;</b>
58
 
        <a tal:attributes="href python:url(['/download', revid, file_id, filename])">
59
 
          download file
60
 
        </a>
61
 
      </div>
62
 
    </div>
63
 
 
64
 
    <div class="annotate">
65
 
      <table>
66
 
        <tr>
67
 
          <th class="lineno"> Line# </th>
68
 
          <th class="revision"> Revision </th>
69
 
          <th class="text"> Contents </th>
70
 
        </tr>
71
 
 
72
 
        <tr tal:repeat="line contents"
73
 
            tal:attributes="class string:parity${line/parity}">
74
 
          <td tal:attributes="class string:lineno ${line/status}">
75
 
            <a tal:attributes="name string:L${line/lineno}"
76
 
               tal:content="line/lineno">
77
 
              ${line.lineno}
78
 
            </a>
79
 
          </td>
80
 
          <td tal:attributes="class string:revno ${line/status}">
81
 
            <a tal:condition="python:line.status=='changed'"
82
 
               tal:content="python:util.trunc(line.change.revno)"
83
 
               tal:attributes="href python:url(['/revision'], clear=1, start_revid=line.change.revid, file_id=file_id);
84
 
                               title python:'%s by %s, on %s (%s)'%(line.change.revno, util.hide_email(line.change.author), line.change.date.strftime('%d %b %Y %H:%M'), util.ago(line.change.date))">
85
 
 
86
 
              ${util.trunc(line.change.revno)}
87
 
            </a>
88
 
          </td>
89
 
          <td tal:attributes="class string:text ${line/status}"
90
 
              tal:content="line/text">
91
 
            ${line.text}
92
 
          </td>
93
 
        </tr>
94
 
      </table>
95
 
    </div>
96
 
 
97
 
    <tal:footer content="structure here/footer.pt" />
98
 
 
 
32
 
 
33
    <div metal:fill-slot="content">
 
34
      <div class="links">
 
35
        <div>
 
36
          <b>&#8594;</b>
 
37
          <a tal:attributes="href python:url(['/files', revid], clear=1)">
 
38
            browse files
 
39
          </a>
 
40
        </div>
 
41
        <div>
 
42
          <b>&#8594;</b>
 
43
          <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=revid)">
 
44
            view revision
 
45
          </a>
 
46
        </div>
 
47
        <div>
 
48
          <b>&#8594;</b>
 
49
          <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=revid, file_id=file_id)">
 
50
            view changes to this file
 
51
          </a>
 
52
        </div>
 
53
        <div>
 
54
          <b>&#8594;</b>
 
55
          <a tal:attributes="href python:url(['/download', revid, file_id, filename])">
 
56
            download file
 
57
          </a>
 
58
        </div>
 
59
      </div>
 
60
 
 
61
      <div class="annotate">
 
62
        <table>
 
63
          <tr>
 
64
            <th class="lineno"> Line# </th>
 
65
            <th class="revision"> Revision </th>
 
66
            <th class="text"> Contents </th>
 
67
          </tr>
 
68
 
 
69
          <tr tal:repeat="line contents"
 
70
              tal:attributes="class string:parity${line/parity}">
 
71
            <td tal:attributes="class string:lineno ${line/status}">
 
72
              <a tal:attributes="name string:L${line/lineno}"
 
73
                 tal:content="line/lineno">
 
74
                ${line.lineno}
 
75
              </a>
 
76
            </td>
 
77
            <td tal:attributes="class string:revno ${line/status}">
 
78
              <a tal:condition="python:line.status=='changed'"
 
79
                 tal:content="python:util.trunc(line.change.revno)"
 
80
                 tal:attributes="href python:url(['/revision'], clear=1, start_revid=line.change.revid, file_id=file_id);
 
81
                                 title python:'%s by %s, on %s (%s)'%(line.change.revno, util.hide_email(line.change.author), line.change.date.strftime('%d %b %Y %H:%M'), util.ago(line.change.date))">
 
82
 
 
83
                ${util.trunc(line.change.revno)}
 
84
              </a>
 
85
            </td>
 
86
            <td tal:attributes="class string:text ${line/status}"
 
87
                tal:content="line/text">
 
88
              ${line.text}
 
89
            </td>
 
90
          </tr>
 
91
        </table>
 
92
      </div>
 
93
 
 
94
    </div>
99
95
  </body>
100
96
</html>