~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: Michael Hudson
  • Date: 2008-12-15 21:26:51 UTC
  • mfrom: (255.1.1 trunk)
  • Revision ID: michael.hudson@canonical.com-20081215212651-buc09dcygemvb9lt
Tags: 1.10
fix ConfigObj import (Jelmer Vernooij)

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)"
 
39
                <a tal:attributes="href python:url(['/changes'], clear=1, 
 
40
                                    start_revid=change.revno, filter_file_id=file_id)"
44
41
                >view changes to this file</a>
45
42
            </li>
46
43
            <li id="last">
58
55
            <td class="annoContTit">Contents</td>
59
56
          </tr>
60
57
 
61
 
          <tr tal:repeat="line contents"
 
58
          <tr tal:repeat="line contents" 
62
59
              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>
 
60
            <td class="annoLine" tal:content="line/lineno">1</td>
64
61
            <td class="annoRev">
65
62
              <a tal:condition="python:line.status=='changed'"
66
63
                 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>
 
64
                 tal:attributes="href python:url(['/revision'], clear=1, start_revid=line.change.revno, filter_file_id=file_id);
 
65
                                 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
66
            </td>
70
 
            <td class="annoCont"><pre tal:content="structure line/text"></pre></td>
 
67
            <td class="annoCont" tal:content="line/text"></td>
71
68
          </tr>
72
69
        </table>
73
70
      </div>