~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: Michael Hudson
  • Date: 2008-09-12 04:36:13 UTC
  • Revision ID: michael.hudson@canonical.com-20080912043613-d2550i1udbl2g86b
our tests aren't the greatest, but let's keep them passing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    <metal:block fill-slot="header_extras">
10
10
        <link rel="stylesheet" type="text/css" media="all"
11
11
              tal:attributes="href python:branch.static_url('/static/css/annotate.css')"/>
12
 
        <link rel="stylesheet" type="text/css" media="all"
13
 
              tal:attributes="href python:branch.static_url('/static/css/highlight.css')"/>
14
12
    </metal:block>
15
13
  </head>
16
14
 
30
28
    </h1>
31
29
 
32
30
    <div metal:fill-slot="content">
33
 
      <tal:branch-info replace="structure python:branchinfo(branch)" />
34
 
 
35
31
        <ul id="submenuTabs">
36
32
            <li id="first">
37
33
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
38
34
            </li>
39
35
            <li>
40
 
                <a tal:attributes="href python:url(['/revision', change.revno], clear=1)">view revision</a>
 
36
                <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=change.revno)">view revision</a>
41
37
            </li>
42
38
            <li>
43
 
                <a tal:attributes="href python:url(['/changes'], clear=1, filter_file_id=file_id)"
44
 
                >view changes to this file</a>
 
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>
45
40
            </li>
46
41
            <li id="last">
47
 
                <a tal:attributes="href python:url(['/download',
48
 
                                    revno_url, file_id, filename])"
49
 
                >download file</a>
 
42
                <a tal:attributes="href python:url(['/download', change.revno, file_id, filename])">download file</a>
50
43
            </li>
51
44
        </ul>
52
45
 
54
47
        <table id="logentries">
55
48
          <tr class="logheader">
56
49
            <td class="annoLineTit">Line</td>
57
 
            <td class="annoRevTit">Revision</td>
58
 
            <td class="annoContTit">Contents</td>
 
50
            <td class="annoRevTit">Revision</td>            
 
51
            <td class="annoContTit">Contents</td>                    
59
52
          </tr>
60
53
 
61
54
          <tr tal:repeat="line contents" 
62
55
              tal:attributes="class string:blueRow${line/parity}">
63
 
            <td class="annoLine"><a tal:attributes="id string:L${line/lineno}; href string:#L${line/lineno}" tal:content="line/lineno">1</a></td>
 
56
            <td class="annoLine" tal:content="line/lineno">1</td>
64
57
            <td class="annoRev">
65
58
              <a tal:condition="python:line.status=='changed'"
66
59
                 tal:content="python:util.trunc(line.change.revno)"
67
 
                 tal:attributes="href python:url(['/revision', line.change.revno], clear=1);
68
 
                                 title python:'%s by %s, on %s (%s)'%(line.change.revno, ', '.join(util.hide_emails(line.change.authors)), line.change.date.strftime('%d %b %Y %H:%M'), util.date_time(line.change.date))"></a>
 
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>
69
62
            </td>
70
 
            <td class="annoCont"><pre tal:content="structure line/text"></pre></td>
 
63
            <td class="annoCont" tal:content="line/text"></td>
71
64
          </tr>
72
65
        </table>
73
66
      </div>