~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: John Arbash Meinel
  • Date: 2010-04-13 20:25:54 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: john@arbash-meinel.com-20100413202554-6ypop7tjvblfj933
Change the import check so it actually works.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
4
4
  <head>
5
5
    <title metal:fill-slot="title"
6
 
           tal:content="string:${branch/friendly_name} : contents of ${file_path}
 
6
           tal:content="string:${branch/friendly_name} : contents of ${path}
7
7
                        at revision ${change/revno}">
8
8
    </title>
9
9
    <metal:block fill-slot="header_extras">
10
10
        <link rel="stylesheet" type="text/css" media="all"
11
 
              tal:attributes="href python:branch.static_url('/static/css/view.css')"/>
 
11
              tal:attributes="href python:branch.static_url('/static/css/annotate.css')"/>
12
12
        <link rel="stylesheet" type="text/css" media="all"
13
13
              tal:attributes="href python:branch.static_url('/static/css/highlight.css')"/>
14
14
    </metal:block>
15
15
  </head>
16
16
 
17
17
  <body>
18
 
      <tal:block metal:fill-slot="backlink">
19
 
          <tal:has-link condition="branch/branch_link">
20
 
            <div class="black-link">
21
 
                <a tal:attributes="href branch/branch_link">
22
 
                  &#8592; Back to branch summary
23
 
                </a>
24
 
            </div>
25
 
          </tal:has-link>
26
 
      </tal:block>
27
 
      <tal:block metal:fill-slot="branchname" tal:content="string:${branch/friendly_name}" />
28
 
          <tal:block metal:fill-slot="heading">
29
 
          <div id="breadcrumbs">
30
 
          <tal:has-link condition="branch/branch_link">
31
 
            <a tal:attributes="href branch/branch_link"
32
 
               tal:content="branch/friendly_name">
33
 
              nice/branch/name
34
 
            </a>
35
 
          </tal:has-link>
36
 
          <tal:no-link condition="not: branch/branch_link">
37
 
            <span metal:use-macro="breadcrumbs/directory"></span>
38
 
          </tal:no-link>
39
 
          <span>: <span metal:use-macro="breadcrumbs/branch" /> (revision <tal:revno content="change/revno"></tal:revno>)</span>
40
 
        </div>
41
 
      </tal:block>
 
18
 
 
19
    <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>
 
30
    </h1>
42
31
 
43
32
    <div metal:fill-slot="content">
44
33
      <tal:branch-info replace="structure python:branchinfo(branch)" />
47
36
            <li id="first">
48
37
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
49
38
            </li>
50
 
            <li tal:condition="not:annotated">
51
 
              <a tal:attributes="href python:url(['/annotate', revno_url, file_path], clear=1)"
52
 
              >view revision numbers per line</a>
53
 
            </li>
54
 
            <li tal:condition="annotated">
55
 
              <a tal:attributes="href python:url(['/view', revno_url, file_path], clear=1)"
56
 
              >view without revision numbers</a>
57
 
            </li>
58
39
            <li>
59
40
                <a tal:attributes="href python:url(['/revision', change.revno], clear=1)">view revision</a>
60
41
            </li>
69
50
            </li>
70
51
        </ul>
71
52
 
72
 
      <div class="view">
 
53
      <div class="annotate">
73
54
        <table id="logentries">
74
55
          <tr class="logheader">
75
 
            <th class="viewLineTit">Line</th>
76
 
            <th class="viewRevTit" tal:condition="annotated">Revision</th>
77
 
            <th class="viewContTit">Contents</th>
 
56
            <td class="annoLineTit">Line</td>
 
57
            <td class="annoRevTit">Revision</td>
 
58
            <td class="annoContTit">Contents</td>
78
59
          </tr>
79
60
 
80
 
          <tal:rep tal:repeat="line contents">
81
 
            <tr tal:define="anno python:annotated and annotated.next()"
82
 
                tal:attributes="class python:anno and 'blueRow' + str(anno.parity) or None">
83
 
              <td class="viewLine">
84
 
                <a tal:attributes="id string:L${repeat/line/number}; href string:#L${repeat/line/number}"
85
 
                   tal:content="repeat/line/number">1</a>
86
 
              </td>
87
 
              <td class="viewRev" tal:condition="annotated">
88
 
                <a tal:condition="python:anno.new_rev"
89
 
                   tal:content="python:util.trunc(anno.change.revno)"
90
 
                   tal:attributes="href python:url(['/revision', anno.change.revno], clear=1);
91
 
                                   title python:'%s by %s, on %s (%s)' % (anno.change.revno, ', '.join(util.hide_emails(anno.change.authors)), anno.change.date.strftime('%d %b %Y %H:%M'), util.date_time(anno.change.date))"></a>
92
 
              </td>
93
 
              <td class="viewCont"><pre tal:content="structure line"></pre></td>
94
 
            </tr>
95
 
          </tal:rep>
 
61
          <tr tal:repeat="line contents" 
 
62
              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>
 
64
            <td class="annoRev">
 
65
              <a tal:condition="python:line.status=='changed'"
 
66
                 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>
 
69
            </td>
 
70
            <td class="annoCont"><pre tal:content="structure line/text"></pre></td>
 
71
          </tr>
96
72
        </table>
97
73
      </div>
98
74