~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

small fixes

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" metal:use-macro="macros/main">
 
3
  <head>
 
4
    <title metal:fill-slot="title"
 
5
           tal:content="string:${branch/friendly_name} : files for revision ${change/revno}">
 
6
      ${branch.friendly_name} : files for revision ${change.revno}
 
7
    </title>
 
8
  </head>
 
9
  <body>
 
10
 
 
11
    <h1 metal:fill-slot="heading">
 
12
      <span class="branch-name" tal:content="branch/friendly_name">
 
13
        ${branch.friendly_name}
 
14
      </span>
 
15
      : files for revision
 
16
      <tal:revno content="change/revno">
 
17
        ${change.revno}
 
18
      </tal:revno>
 
19
    </h1>
 
20
 
 
21
    <div metal:fill-slot="content">
 
22
      <div class="links">
 
23
        <div> <b>&#8594;</b> <a tal:attributes="href python:url(['/revision'], clear=1, start_revid=revid)">
 
24
            view revision </a>
 
25
        </div>
 
26
        <div> <b>&#8594;</b> <a tal:attributes="href python:url(['/changes'], clear=1, start_revid=revid)">
 
27
            view branch changes </a>
 
28
        </div>
 
29
      </div>
 
30
 
 
31
      <tal:revision-info replace="structure python:revisioninfo(url, branch, change)" />
 
32
 
 
33
      <div class="inventory-path">
 
34
        <b>folder:</b> <span class="folder" tal:content="path"> ${path} </span>
 
35
      </div>
 
36
 
 
37
      <table class="inventory" width="100%">
 
38
        <tr class="header">
 
39
          <th class="permissions">
 
40
            Permissions
 
41
          </th>
 
42
          <th>
 
43
            <a tal:attributes="href python:url(['/files', revid], sort='filename')">Filename</a>
 
44
          </th>
 
45
          <th>
 
46
            Latest Rev
 
47
          </th>
 
48
          <th>
 
49
            <a tal:attributes="href python:url(['/files', revid], sort='date')">Last Changed</a>
 
50
          </th>
 
51
          <th>
 
52
            <a tal:attributes="href python:url(['/files', revid], sort='size')">Size</a>
 
53
          </th>
 
54
          <th>
 
55
          </th>
 
56
          <th>
 
57
          </th>
 
58
        </tr>
 
59
 
 
60
        <tr class="parity1" tal:condition="python:updir">
 
61
          <td class="permissions">drwxr-xr-x</td>
 
62
          <td class="filename directory">
 
63
            <a tal:attributes="href python:url(['/files', revid], file_id=updir_file_id)">
 
64
              (up)
 
65
            </a>
 
66
          </td>
 
67
          <td>
 
68
          </td>
 
69
          <td>
 
70
          </td>
 
71
          <td>
 
72
          </td>
 
73
          <td>
 
74
          </td>
 
75
        </tr>
 
76
 
 
77
        <tr tal:repeat="file filelist"
 
78
            tal:attributes="class string:parity${file/parity}">
 
79
          <td class="permissions" tal:content="python:util.fake_permissions(file.kind, file.executable)">
 
80
            ${}
 
81
          </td>
 
82
          <td tal:attributes="class string:filename ${file/kind}">
 
83
            <a tal:condition="python:file.kind=='directory'"
 
84
               tal:attributes="href python:url(['/files', revid], file_id=file.file_id)"
 
85
               tal:content="string:${file/filename}/">
 
86
              ${file.filename}/
 
87
            </a>
 
88
            <span tal:condition="python:file.kind=='symlink'"
 
89
                  tal:content="string:${file/filename}@">
 
90
              ${file.filename}@
 
91
            </span>
 
92
            <a tal:condition="python:file.kind=='file'"
 
93
               tal:attributes="href python:url(['/annotate', revid], file_id=file.file_id);
 
94
                               title string:Annotate ${file/filename}"
 
95
               tal:content="string:${file/filename}">
 
96
              ${file.filename}
 
97
            </a>
 
98
          </td>
 
99
          <td class="revision">
 
100
            <a tal:attributes="href python:url(['/revision', file.revid], start_revid=file.revid, file_id=file.file_id);
 
101
                               title string:Show revision ${file/change/revno}"
 
102
               tal:content="python:util.trunc(file.change.revno, 15)">
 
103
              ${text}
 
104
            </a>
 
105
          </td>
 
106
          <td class="date"
 
107
              tal:content="python:util.date_time(file.change.date)">
 
108
            ${}
 
109
          </td>
 
110
          <td class="size">
 
111
            <span tal:condition="python:file.kind=='file'"
 
112
                  tal:content="python:util.human_size(file.size)">
 
113
              ${util.human_size(file.size)}
 
114
            </span>
 
115
          </td>
 
116
          <td class="changes-link">
 
117
            <a tal:attributes="href python:url(['/changes'], filter_file_id=file.file_id);
 
118
                               title string:Changes affecting ${file/filename} up to revision ${file/change/revno}">
 
119
              changes
 
120
            </a>
 
121
          </td>
 
122
          <td class="download-link">
 
123
            <a tal:condition="python:file.kind=='file'"
 
124
               tal:attributes="href python:url(['/download', file.revid, file.file_id, file.filename]);
 
125
                               title string:Download ${file/filename} at revision ${file/change/revno}">
 
126
              download
 
127
            </a>
 
128
          </td>
 
129
        </tr>
 
130
      </table>
 
131
    </div>
 
132
 
 
133
  </body>
 
134
</html>