~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.kid

  • Committer: Michael Hudson
  • Date: 2009-03-17 22:31:42 UTC
  • Revision ID: michael.hudson@canonical.com-20090317223142-mcvjsllsn7q21e19
mention new dependency on simplejson

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" xmlns:py="http://purl.org/kid/ns#"
3
 
    py:extends="'master.kid'">
4
 
<head>
5
 
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
6
 
    <title> ${branch.friendly_name} : files for revision ${change.revno} </title>
7
 
</head>
8
 
 
9
 
<body>
10
 
 
11
 
${navbar()}
12
 
 
13
 
<h1> <span class="branch-name">${branch.friendly_name}</span> : files for revision ${change.revno}
14
 
        <div class="links">
15
 
            <div> <b>&#8594;</b> <a href="${branch.context_url('/revision', clear=1, start_revid=revid)}">
16
 
                view revision </a> </div>
17
 
            <div> <b>&#8594;</b> <a href="${branch.context_url('/changes', clear=1, start_revid=revid)}">
18
 
                view branch changes </a> </div>
19
 
        </div>
20
 
</h1>
21
 
 
22
 
<!-- !FIXME: this is just copied verbatim from revision.kid -->
23
 
<div class="revision-info">
24
 
    <table>
25
 
        <tr>
26
 
            <th class="author">committed by:</th>
27
 
            <td class="author"> ${util.hide_email(change.author)} </td>
28
 
        </tr>
29
 
        <tr>
30
 
            <th class="date">date:</th>
31
 
            <td class="date"> ${util.format_date(change.date)} </td>
32
 
        </tr>
33
 
 
34
 
        <tr py:if="len(change.merge_points) > 0">
35
 
            <th class="children"> merged in: </th>
36
 
            <td class="children">
37
 
                <span py:for="child in change.merge_points">
38
 
                    ${revision_link(child.revid, '(' + child.revno + util.if_present(' %s', child.branch_nick) + ')', clear=1, start_revid=child.revid)} <br />
39
 
                </span>
40
 
            </td>
41
 
        </tr>
42
 
        <tr py:if="len(change.parents) > 1">
43
 
                <th class="parents"> merged from: </th>
44
 
                <td class="parents">
45
 
                    <span py:for="parent in change.parents"><span py:if="parent.revid != change.parents[0].revid">
46
 
                        ${revision_link(parent.revid, '(' + parent.revno + util.if_present(' %s', parent.branch_nick) + ')', clear=1, start_revid=parent.revid)} <br />
47
 
                    </span></span>
48
 
                </td>
49
 
        </tr>
50
 
 
51
 
        <tr>
52
 
            <th class="description">description:</th>
53
 
            <td class="description"><span py:for="line in change.comment_clean">${XML(line)} <br /></span></td>
54
 
        </tr>
55
 
    </table>
56
 
</div>
57
 
 
58
 
<div class="inventory-path">
59
 
    <b>folder:</b> <span class="folder"> ${path} </span>
60
 
</div>
61
 
 
62
 
<table class="inventory" width="100%">
63
 
    <tr class="header">
64
 
        <th class="permissions"> Permissions </th>
65
 
        <th> <a href="${branch.context_url([ '/files', revid ], sort='filename')}">Filename</a> </th>
66
 
        <th> Latest Rev </th>
67
 
        <th> <a href="${branch.context_url([ '/files', revid ], sort='date')}">Last Changed</a> </th>
68
 
        <th> <a href="${branch.context_url([ '/files', revid ], sort='size')}">Size</a> </th>
69
 
        <th>  </th>
70
 
        <th>  </th>
71
 
    </tr>
72
 
    
73
 
    <tr class="parity1" py:if="updir">
74
 
        <td class="permissions">drwxr-xr-x</td>
75
 
        <td class="filename directory"><a href="${branch.context_url([ '/files', revid ], file_id=updir_file_id)}"> (up) </a></td>
76
 
        <td> </td> <td> </td> <td> </td> <td> </td>
77
 
    </tr>
78
 
 
79
 
    <tr py:for="file in filelist" class="parity${file.parity}">
80
 
        <td class="permissions"> ${util.fake_permissions(file.kind, file.executable)} </td>
81
 
        <td class="filename ${file.kind}">
82
 
            <a py:if="file.kind=='directory'" href="${branch.context_url([ '/files', revid ],
83
 
                file_id=file.file_id)}">${file.filename}/</a>
84
 
            <span py:if="file.kind=='symlink'">${file.filename}@</span>
85
 
            <a py:if="file.kind=='file'" href="${branch.context_url([ '/annotate', revid ],
86
 
                file_id=file.file_id)}" title="Annotate ${file.filename}">${file.filename}</a>
87
 
        </td>
88
 
        <td class="revision"> ${revision_link(file.revid, util.trunc(file.change.revno, 15), **util.get_context(start_revid=file.revid, file_id=file.file_id))} </td>
89
 
        <td class="date"> ${util.format_date(file.change.date)} </td>
90
 
        <td class="size"> <span py:if="file.kind=='file'"> ${util.human_size(file.size)} </span></td>
91
 
        <td class="changes-link"> 
92
 
            <a href="${branch.context_url('/changes', start_revid=file.revid, file_id=file.file_id)}"
93
 
               title="Changes affecting ${file.filename} up to revision ${file.change.revno}"> changes </a>
94
 
        </td>
95
 
        <td class="download-link">
96
 
            <a href="${branch.url([ '/download', file.revid, file.file_id, file.filename ])}"
97
 
               title="Download ${file.filename} at revision ${file.change.revno}">  download </a></td>
98
 
    </tr>
99
 
</table>
100
 
 
101
 
</body>
102
 
</html>