~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: Martin Albisetti
  • Date: 2008-07-29 20:42:35 UTC
  • mto: This revision was merged to the branch mainline in revision 188.
  • Revision ID: argentina@gmail.com-20080729204235-nhhd02ll6vegonqp
Ignore build/

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
 
17
15
  <body>
18
16
 
19
17
    <h1 metal:fill-slot="heading">
20
 
      <tal:has-link condition="branch/branch_link">
21
 
        <a tal:attributes="href branch/branch_link"
22
 
           tal:content="branch/friendly_name">
23
 
          nice/branch/name
24
 
        </a>
25
 
      </tal:has-link>
26
 
      <tal:no-link condition="not: branch/branch_link">
27
 
        <span metal:use-macro="breadcrumbs/directory"></span>
28
 
      </tal:no-link>
29
 
      <span>: <span metal:use-macro="breadcrumbs/branch" /> (revision <tal:revno content="change/revno"></tal:revno>)</span>
 
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>
30
20
    </h1>
31
21
 
32
22
    <div metal:fill-slot="content">
33
 
      <tal:branch-info replace="structure python:branchinfo(branch)" />
34
 
 
35
23
        <ul id="submenuTabs">
36
24
            <li id="first">
37
25
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
38
26
            </li>
39
27
            <li>
40
 
                <a tal:attributes="href python:url(['/revision', change.revno], clear=1)">view revision</a>
 
28
                <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=change.revno)">view revision</a>
41
29
            </li>
42
30
            <li>
43
 
                <a tal:attributes="href python:url(['/changes'], clear=1, filter_file_id=file_id)"
44
 
                >view changes to this file</a>
 
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>
45
32
            </li>
46
33
            <li id="last">
47
 
                <a tal:attributes="href python:url(['/download',
48
 
                                    revno_url, file_id, filename])"
49
 
                >download file</a>
 
34
                <a tal:attributes="href python:url(['/download', change.revno, file_id, filename])">download file</a>
50
35
            </li>
51
36
        </ul>
52
37
 
54
39
        <table id="logentries">
55
40
          <tr class="logheader">
56
41
            <td class="annoLineTit">Line</td>
57
 
            <td class="annoRevTit">Revision</td>
58
 
            <td class="annoContTit">Contents</td>
 
42
            <td class="annoRevTit">Revision</td>            
 
43
            <td class="annoContTit">Contents</td>                    
59
44
          </tr>
60
45
 
61
46
          <tr tal:repeat="line contents" 
62
47
              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>
 
48
            <td class="annoLine" tal:content="line/lineno">1</td>
64
49
            <td class="annoRev">
65
50
              <a tal:condition="python:line.status=='changed'"
66
51
                 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>
 
52
                 tal:attributes="href python:url(['/revision'], clear=1, start_revid=line.change.revno, filter_file_id=file_id);
 
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>
69
54
            </td>
70
 
            <td class="annoCont"><pre tal:content="structure line/text"></pre></td>
 
55
            <td class="annoCont" tal:content="line/text"></td>
71
56
          </tr>
72
57
        </table>
73
58
      </div>