~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: Michael Hudson
  • Date: 2008-07-28 05:26:13 UTC
  • mfrom: (128.13.91 new_theme_trunk)
  • Revision ID: michael.hudson@canonical.com-20080728052613-35uxs2xz28dsqdgz
merge the new theme created by Martin Albisetti
(this work sponsored by Canonical)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
           tal:content="string:${branch/friendly_name} : contents of ${path}
7
7
                        at revision ${change/revno}">
8
8
    </title>
 
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>
9
13
  </head>
10
14
 
11
15
  <body>
12
16
 
13
17
    <h1 metal:fill-slot="heading">
14
 
      <span class="branch-name" tal:content="branch/friendly_name"></span>
15
 
      :
16
 
      <span class="annotate-path" tal:content="path"></span>
17
 
      (revision <tal:revno content="change/revno"></tal:revno>)
 
18
        <tal:block content="branch/friendly_name"></tal:block>
 
19
        <span>: <span tal:content="path"></span> (revision <tal:revno content="change/revno"></tal:revno>)</span>
18
20
    </h1>
19
21
 
20
22
    <div metal:fill-slot="content">
21
 
      <div class="links">
22
 
        <div>
23
 
          <b>&#8594;</b>
24
 
          <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
25
 
        </div>
26
 
        <div>
27
 
          <b>&#8594;</b>
28
 
          <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=change.revno)">view revision</a>
29
 
        </div>
30
 
        <div>
31
 
          <b>&#8594;</b>
32
 
          <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=change.revno, filter_file_id=file_id)">view changes to this file</a>
33
 
        </div>
34
 
        <div>
35
 
          <b>&#8594;</b>
36
 
          <a tal:attributes="href python:url(['/download', change.revno, file_id, filename])">download file</a>
37
 
        </div>
38
 
      </div>
 
23
        <ul id="submenuTabs">
 
24
            <li id="first">
 
25
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
 
26
            </li>
 
27
            <li>
 
28
                <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=change.revno)">view revision</a>
 
29
            </li>
 
30
            <li>
 
31
                <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=change.revno, filter_file_id=file_id)">view changes to this file</a>
 
32
            </li>
 
33
            <li id="last">
 
34
                <a tal:attributes="href python:url(['/download', change.revno, file_id, filename])">download file</a>
 
35
            </li>
 
36
        </ul>
39
37
 
40
38
      <div class="annotate">
41
 
        <table>
42
 
          <tr>
43
 
            <th class="lineno"> Line# </th>
44
 
            <th class="revision"> Revision </th>
45
 
            <th class="text"> Contents </th>
 
39
        <table id="logentries">
 
40
          <tr class="logheader">
 
41
            <td class="annoLineTit">Line</td>
 
42
            <td class="annoRevTit">Revision</td>            
 
43
            <td class="annoContTit">Contents</td>                    
46
44
          </tr>
47
45
 
48
 
          <tr tal:repeat="line contents"
49
 
              tal:attributes="class string:parity${line/parity}">
50
 
            <td tal:attributes="class string:lineno ${line/status}">
51
 
              <a tal:attributes="name string:L${line/lineno}"
52
 
                 tal:content="line/lineno"></a>
53
 
            </td>
54
 
            <td tal:attributes="class string:revno ${line/status}">
 
46
          <tr tal:repeat="line contents" 
 
47
              tal:attributes="class string:blueRow${line/parity}">
 
48
            <td class="annoLine" tal:content="line/lineno">1</td>
 
49
            <td class="annoRev">
55
50
              <a tal:condition="python:line.status=='changed'"
56
51
                 tal:content="python:util.trunc(line.change.revno)"
57
52
                 tal:attributes="href python:url(['/revision'], clear=1, start_revid=line.change.revno, filter_file_id=file_id);
58
53
                                 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>
59
54
            </td>
60
 
            <td tal:attributes="class string:text ${line/status}"
61
 
                tal:content="line/text">
62
 
            </td>
 
55
            <td class="annoCont" tal:content="line/text"></td>
63
56
          </tr>
64
57
        </table>
65
58
      </div>