~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/directory.pt

  • Committer: Andrew Bennetts
  • Date: 2011-06-28 16:57:35 UTC
  • mfrom: (448.1.19 jsonify)
  • Revision ID: andrew.bennetts@canonical.com-20110628165735-qs6jebigf6wut152
Expose /+json URLs for getting machine readable content for various pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml" >
 
3
  <head>
 
4
    <title tal:content="string:Browsing ${name}"></title>
 
5
    <link rel="stylesheet"
 
6
          tal:attributes="href python:static_url('/static/css/global.css')" />
 
7
    <link rel="shortcut icon"
 
8
          tal:attributes="href python:branch.static_url('/static/images/favicon.ico')" /> 
 
9
  </head>
 
10
  <body>
 
11
    <div id="loggerheadCont">
 
12
      <h1>
 
13
        Browsing
 
14
        <span metal:use-macro="breadcrumbs/directory" />
 
15
      </h1>
 
16
 
 
17
      <div >
 
18
        <table id="logentries">
 
19
          <tr class="logheader">
 
20
            <th class="summarycell" colspan="2">Filename</th>
 
21
            <th class="datecell">Latest Rev</th>
 
22
            <th class="datecell">Last Changed</th>
 
23
          </tr>
 
24
 
 
25
          <tr class="blueRow0" tal:condition="python:name != '/'">
 
26
            <td class="icocell">
 
27
                <a href="../"><img tal:attributes="src python:static_url('/static/images/ico_folder_up.gif')" /></a>
 
28
            </td>
 
29
            <td class="summcell" colspan="3">
 
30
                <a href="../">..</a>
 
31
            </td>
 
32
          </tr>
 
33
          <tal:block repeat="dir dirs">
 
34
 
 
35
            <tal:branch-row tal:condition="dir/branch">
 
36
              <tr tal:attributes="class string:blueRow${dir/parity}">
 
37
                <td class="icocell">
 
38
                    <a tal:attributes="href string:${dir/dirname}/files">
 
39
                        <img tal:attributes="src python:static_url('/static/images/ico_branch.gif')" alt="Branch" />
 
40
                    </a>
 
41
                </td>
 
42
                <td class="autcell">
 
43
                  <a tal:attributes="href string:${dir/dirname}/files" tal:content="dir/dirname" /></td>
 
44
                <td class="date">
 
45
                  <a tal:attributes="href string:${dir/dirname}/revision/${dir/branch/revno};
 
46
                                     title string:Show revision ${dir/branch/revno}"
 
47
                     tal:content="dir/branch/revno"></a>
 
48
                </td>
 
49
                <td class="date" tal:content="python:util.date_time(dir.last_change)"></td>
 
50
              </tr>
 
51
            </tal:branch-row>
 
52
            <tal:non-branch-row tal:condition="not:dir/branch">
 
53
              <tr tal:attributes="class string:blueRow${dir/parity}">
 
54
                <td class="icocell">
 
55
                    <a tal:attributes="href string:${dir/dirname}/">
 
56
                        <img tal:attributes="src python:static_url('/static/images/ico_folder.gif')" alt="Folder" />
 
57
                    </a>
 
58
                </td>
 
59
                <td class="autcell">
 
60
                  <a tal:attributes="href string:${dir/dirname}/" tal:content="dir/dirname" /></td>
 
61
                <td class="date"></td>
 
62
                <td class="date" tal:content="dir/last_change"></td>
 
63
              </tr>
 
64
            </tal:non-branch-row>
 
65
          </tal:block>
 
66
        </table>
 
67
      </div>
 
68
    </div>
 
69
  </body>
 
70
</html>