~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.pt

  • Committer: Guillermo Gonzalez
  • Date: 2008-09-10 00:02:06 UTC
  • mto: This revision was merged to the branch mainline in revision 221.
  • Revision ID: guillo.gonzo@gmail.com-20080910000206-kt35kgrzu8y4472v
 * update NEWS and serve-branches man page 
 * refactored all reload logic into loggerhead.util.Reloader class

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
    </metal:block>
 
13
  </head>
 
14
 
 
15
  <body>
 
16
 
 
17
    <h1 metal:fill-slot="heading">
 
18
      <tal:has-link condition="branch/branch_link">
 
19
        <a tal:attributes="href branch/branch_link"
 
20
           tal:content="branch/friendly_name">
 
21
          nice/branch/name
 
22
        </a>
 
23
      </tal:has-link>
 
24
      <tal:no-link condition="not: branch/branch_link">
 
25
        <tal:branch-name replace="branch/friendly_name" />
 
26
      </tal:no-link>
 
27
      <span>: <span tal:content="path"></span> (revision <tal:revno content="change/revno"></tal:revno>)</span>
 
28
    </h1>
 
29
 
 
30
    <div metal:fill-slot="content">
 
31
        <ul id="submenuTabs">
 
32
            <li id="first">
 
33
                <a tal:attributes="href python:url(['/files', change.revno], clear=1)">browse files</a>
 
34
            </li>
 
35
            <li>
 
36
                <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=change.revno)">view revision</a>
 
37
            </li>
 
38
            <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>
 
40
            </li>
 
41
            <li id="last">
 
42
                <a tal:attributes="href python:url(['/download', change.revno, file_id, filename])">download file</a>
 
43
            </li>
 
44
        </ul>
 
45
 
 
46
      <div class="annotate">
 
47
        <table id="logentries">
 
48
          <tr class="logheader">
 
49
            <td class="annoLineTit">Line</td>
 
50
            <td class="annoRevTit">Revision</td>            
 
51
            <td class="annoContTit">Contents</td>                    
 
52
          </tr>
 
53
 
 
54
          <tr tal:repeat="line contents" 
 
55
              tal:attributes="class string:blueRow${line/parity}">
 
56
            <td class="annoLine" tal:content="line/lineno">1</td>
 
57
            <td class="annoRev">
 
58
              <a tal:condition="python:line.status=='changed'"
 
59
                 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>
 
62
            </td>
 
63
            <td class="annoCont" tal:content="line/text"></td>
 
64
          </tr>
 
65
        </table>
 
66
      </div>
 
67
 
 
68
    </div>
 
69
  </body>
 
70
</html>