~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

[rs=igc] update to lp:loggerhead trunk

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')"/>
12
14
    </metal:block>
13
15
  </head>
14
16
 
28
30
    </h1>
29
31
 
30
32
    <div metal:fill-slot="content">
 
33
      <tal:branch-info replace="structure python:branchinfo(branch)" />
 
34
 
31
35
        <ul id="submenuTabs">
32
36
            <li id="first">
33
37
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
34
38
            </li>
35
39
            <li>
36
 
                <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=change.revno)">view revision</a>
 
40
                <a tal:attributes="href python:url(['/revision', change.revno], clear=1)">view revision</a>
37
41
            </li>
38
42
            <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>
 
43
                <a tal:attributes="href python:url(['/changes'], clear=1, filter_file_id=file_id)"
 
44
                >view changes to this file</a>
40
45
            </li>
41
46
            <li id="last">
42
 
                <a tal:attributes="href python:url(['/download', change.revno, file_id, filename])">download file</a>
 
47
                <a tal:attributes="href python:url(['/download',
 
48
                                    revno_url, file_id, filename])"
 
49
                >download file</a>
43
50
            </li>
44
51
        </ul>
45
52
 
47
54
        <table id="logentries">
48
55
          <tr class="logheader">
49
56
            <td class="annoLineTit">Line</td>
50
 
            <td class="annoRevTit">Revision</td>            
51
 
            <td class="annoContTit">Contents</td>                    
 
57
            <td class="annoRevTit">Revision</td>
 
58
            <td class="annoContTit">Contents</td>
52
59
          </tr>
53
60
 
54
 
          <tr tal:repeat="line contents" 
 
61
          <tr tal:repeat="line contents"
55
62
              tal:attributes="class string:blueRow${line/parity}">
56
 
            <td class="annoLine" tal:content="line/lineno">1</td>
 
63
            <td class="annoLine"><a tal:attributes="id string:L${line/lineno}; href string:#L${line/lineno}" tal:content="line/lineno">1</a></td>
57
64
            <td class="annoRev">
58
65
              <a tal:condition="python:line.status=='changed'"
59
66
                 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>
 
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>
62
69
            </td>
63
 
            <td class="annoCont" tal:content="line/text"></td>
 
70
            <td class="annoCont"><pre tal:content="structure line/text"></pre></td>
64
71
          </tr>
65
72
        </table>
66
73
      </div>