~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/view.pt

  • Committer: Robey Pointer
  • Date: 2006-12-24 07:04:28 UTC
  • Revision ID: robey@lag.net-20061224070428-u2tbimufx0m1v16t
add the actual 1.0 release

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 ${file_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/view.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 tal:condition="not:annotated">
40
 
              <a tal:attributes="href python:url(['/annotate', revno_url, file_path], clear=1)"
41
 
              >view revision numbers per line</a>
42
 
            </li>
43
 
            <li tal:condition="annotated">
44
 
              <a tal:attributes="href python:url(['/view', revno_url, file_path], clear=1)"
45
 
              >view without revision numbers</a>
46
 
            </li>
47
 
            <li>
48
 
                <a tal:attributes="href python:url(['/revision', change.revno], clear=1)">view revision</a>
49
 
            </li>
50
 
            <li>
51
 
                <a tal:attributes="href python:url(['/changes'], clear=1, filter_file_id=file_id)"
52
 
                >view changes to this file</a>
53
 
            </li>
54
 
            <li id="last">
55
 
                <a tal:attributes="href python:url(['/download',
56
 
                                    revno_url, file_id, filename])"
57
 
                >download file</a>
58
 
            </li>
59
 
        </ul>
60
 
 
61
 
      <div class="view">
62
 
        <table id="logentries">
63
 
          <tr class="logheader">
64
 
            <td class="viewLineTit">Line</td>
65
 
            <td class="viewRevTit" tal:condition="annotated">Revision</td>
66
 
            <td class="viewContTit">Contents</td>
67
 
          </tr>
68
 
 
69
 
          <tal:rep tal:repeat="line contents">
70
 
            <tr tal:define="anno python:annotated and annotated.next()"
71
 
                tal:attributes="class python:anno and 'blueRow' + str(anno.parity) or None">
72
 
              <td class="viewLine">
73
 
                <a tal:attributes="id string:L${repeat/line/number}; href string:#L${repeat/line/number}"
74
 
                   tal:content="repeat/line/number">1</a>
75
 
              </td>
76
 
              <td class="viewRev" tal:condition="annotated">
77
 
                <a tal:condition="python:anno.new_rev"
78
 
                   tal:content="python:util.trunc(anno.change.revno)"
79
 
                   tal:attributes="href python:url(['/revision', anno.change.revno], clear=1);
80
 
                                   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>
81
 
              </td>
82
 
              <td class="viewCont"><pre tal:content="structure line"></pre></td>
83
 
            </tr>
84
 
          </tal:rep>
85
 
        </table>
86
 
      </div>
87
 
 
88
 
    </div>
89
 
  </body>
90
 
</html>