/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
  <head>
    <title metal:fill-slot="title"
           tal:content="string:${branch/friendly_name} : contents of ${path}
                        at revision ${change/revno}">
      ${branch.friendly_name} : contents of ${path} at revision ${change.revno}
    </title>
  </head>

  <body>

    <h1 metal:fill-slot="heading">
      <span class="branch-name" tal:content="branch/friendly_name">
        ${branch.friendly_name}
      </span>
      :
      <span class="annotate-path" tal:content="path">
        ${path}
      </span>
      (revision <tal:revno content="change/revno">${change.revno}</tal:revno>)
    </h1>

    <div metal:fill-slot="content">
      <div class="links">
        <div>
          <b>&#8594;</b>
          <a tal:attributes="href python:url(['/files', revid], clear=1)">
            browse files
          </a>
        </div>
        <div>
          <b>&#8594;</b>
          <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=revid)">
            view revision
          </a>
        </div>
        <div>
          <b>&#8594;</b>
          <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=revid, filter_file_id=file_id)">
            view changes to this file
          </a>
        </div>
        <div>
          <b>&#8594;</b>
          <a tal:attributes="href python:url(['/download', revid, file_id, filename])">
            download file
          </a>
        </div>
      </div>

      <div class="annotate">
        <table>
          <tr>
            <th class="lineno"> Line# </th>
            <th class="revision"> Revision </th>
            <th class="text"> Contents </th>
          </tr>

          <tr tal:repeat="line contents"
              tal:attributes="class string:parity${line/parity}">
            <td tal:attributes="class string:lineno ${line/status}">
              <a tal:attributes="name string:L${line/lineno}"
                 tal:content="line/lineno">
                ${line.lineno}
              </a>
            </td>
            <td tal:attributes="class string:revno ${line/status}">
              <a tal:condition="python:line.status=='changed'"
                 tal:content="python:util.trunc(line.change.revno)"
                 tal:attributes="href python:url(['/revision'], clear=1, start_revid=line.change.revid, filter_file_id=file_id);
                                 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.date_time(line.change.date))">

                ${util.trunc(line.change.revno)}
              </a>
            </td>
            <td tal:attributes="class string:text ${line/status}"
                tal:content="line/text">
              ${line.text}
            </td>
          </tr>
        </table>
      </div>

    </div>
  </body>
</html>