~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: Matt Nordhoff
  • Date: 2009-10-17 06:19:40 UTC
  • mto: (329.2.2 trailing-whitespace)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20091017061940-w9tcvy0xs1irno3y
Some random PEP 8 and otehr stylistic changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
 
4
  <head>
 
5
    <title metal:fill-slot="title"
 
6
           tal:content="string:${branch/friendly_name} : contents of ${path}
 
7
                        at revision ${change/revno}">
 
8
    </title>
 
9
    <metal:block fill-slot="header_extras">
 
10
        <link rel="stylesheet" type="text/css" media="all"
 
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
    </metal:block>
 
15
  </head>
 
16
 
 
17
  <body>
 
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>
 
31
 
 
32
    <div metal:fill-slot="content">
 
33
      <tal:branch-info replace="structure python:branchinfo(branch)" />
 
34
 
 
35
        <ul id="submenuTabs">
 
36
            <li id="first">
 
37
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
 
38
            </li>
 
39
            <li>
 
40
                <a tal:attributes="href python:url(['/revision', change.revno], clear=1)">view revision</a>
 
41
            </li>
 
42
            <li>
 
43
                <a tal:attributes="href python:url(['/changes'], clear=1, filter_file_id=file_id)"
 
44
                >view changes to this file</a>
 
45
            </li>
 
46
            <li id="last">
 
47
                <a tal:attributes="href python:url(['/download',
 
48
                                    revno_url, file_id, filename])"
 
49
                >download file</a>
 
50
            </li>
 
51
        </ul>
 
52
 
 
53
      <div class="annotate">
 
54
        <table id="logentries">
 
55
          <tr class="logheader">
 
56
            <td class="annoLineTit">Line</td>
 
57
            <td class="annoRevTit">Revision</td>
 
58
            <td class="annoContTit">Contents</td>
 
59
          </tr>
 
60
 
 
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>
 
72
        </table>
 
73
      </div>
 
74
 
 
75
    </div>
 
76
  </body>
 
77
</html>