~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: Marius Kruger
  • Date: 2008-10-14 11:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 240.
  • Revision ID: amanic@gmail.com-20081014115322-d93f030tn7g7gprc
add restart

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>
7
 
      <tal:branch-name content="branch/friendly_name">
8
 
        ${branch.friendly_name}
9
 
      </tal:branch-name>
10
 
      : contents of
11
 
      <tal:path content="path">
12
 
        ${path}
13
 
      </tal:path>
14
 
      at revision
15
 
      <tal:revno content="change/revno">
16
 
        ${change.revno}
17
 
      </tal:revno>
 
5
    <title metal:fill-slot="title"
 
6
           tal:content="string:${branch/friendly_name} : contents of ${path}
 
7
                        at revision ${change/revno}">
18
8
    </title>
19
 
    <link rel="stylesheet"
20
 
          tal:attributes="href python:tg.url('/static/css/zptstyle.css')" />
 
9
    <metal:block fill-slot="header_extras">
 
10
        <link rel="stylesheet" type="text/css" media="all"
 
11
              tal:attributes="href python:branch.static_url('/static/css/annotate.css')"/>
 
12
    </metal:block>
21
13
  </head>
22
14
 
23
15
  <body>
24
16
 
25
 
    <tal:navigation content="structure here/navigation.pt" />
26
 
 
27
 
    <h1>
28
 
      <span class="branch-name" tal:content="branch/friendly_name">
29
 
        ${branch.friendly_name}
30
 
      </span>
31
 
      :
32
 
      <span class="annotate-path" tal:content="path">
33
 
        ${path}
34
 
      </span>
35
 
      (revision <tal:revno content="change/revno">${change.revno}</tal:revno>)
 
17
    <h1 metal:fill-slot="heading">
 
18
      <tal:has-link condition="branch/branch_link">
 
19
        <a tal:attributes="href branch/branch_link"
 
20
           tal:content="branch/friendly_name">
 
21
          nice/branch/name
 
22
        </a>
 
23
      </tal:has-link>
 
24
      <tal:no-link condition="not: branch/branch_link">
 
25
        <span metal:use-macro="breadcrumbs/directory"></span>
 
26
      </tal:no-link>
 
27
      <span>: <span metal:use-macro="breadcrumbs/branch" /> (revision <tal:revno content="change/revno"></tal:revno>)</span>
36
28
    </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
 
 
 
29
 
 
30
    <div metal:fill-slot="content">
 
31
        <ul id="submenuTabs">
 
32
            <li id="first">
 
33
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
 
34
            </li>
 
35
            <li>
 
36
                <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=change.revno)">view revision</a>
 
37
            </li>
 
38
            <li>
 
39
                <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=change.revno, filter_file_id=file_id)">view changes to this file</a>
 
40
            </li>
 
41
            <li id="last">
 
42
                <a tal:attributes="href python:url(['/download', change.revno, file_id, filename])">download file</a>
 
43
            </li>
 
44
        </ul>
 
45
 
 
46
      <div class="annotate">
 
47
        <table id="logentries">
 
48
          <tr class="logheader">
 
49
            <td class="annoLineTit">Line</td>
 
50
            <td class="annoRevTit">Revision</td>            
 
51
            <td class="annoContTit">Contents</td>                    
 
52
          </tr>
 
53
 
 
54
          <tr tal:repeat="line contents" 
 
55
              tal:attributes="class string:blueRow${line/parity}">
 
56
            <td class="annoLine" tal:content="line/lineno">1</td>
 
57
            <td class="annoRev">
 
58
              <a tal:condition="python:line.status=='changed'"
 
59
                 tal:content="python:util.trunc(line.change.revno)"
 
60
                 tal:attributes="href python:url(['/revision'], clear=1, start_revid=line.change.revno, filter_file_id=file_id);
 
61
                                 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))"></a>
 
62
            </td>
 
63
            <td class="annoCont" tal:content="line/text"></td>
 
64
          </tr>
 
65
        </table>
 
66
      </div>
 
67
 
 
68
    </div>
99
69
  </body>
100
70
</html>