~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.kid

  • Committer: Guillermo Gonzalez
  • Date: 2008-09-26 12:48:00 UTC
  • mfrom: (217.2.2 logging)
  • mto: This revision was merged to the branch mainline in revision 226.
  • Revision ID: guillo.gonzo@gmail.com-20080926124800-7pjmc08s1da0cxg8
 merge with mwhudson logging branch

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.url('/revision', **util.get_context(clear=1, start_revid=revid))}">
16
 
                view revision </a> </div>
17
 
            <div> <b>&#8594;</b> <a href="${branch.url('/changes', **util.get_context(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"> ${change.date.strftime('%d %b %Y %H:%M')} </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.url([ '/files', revid ], **util.get_context(sort='filename'))}">Filename</a> </th>
66
 
        <th> <a href="${branch.url([ '/files', revid ], **util.get_context(sort='size'))}">Size</a> </th>
67
 
        <th> Last change </th>
68
 
        <th> <a href="${branch.url([ '/files', revid ], **util.get_context(sort='date'))}">When</a> </th>
69
 
        <th> History </th>
70
 
        <th> Download </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.url([ '/files', revid ],
76
 
            **util.get_context(file_id=updir_file_id))}"> (up) </a></td>
77
 
        <td> </td> <td> </td> <td> </td> <td> </td>
78
 
    </tr>
79
 
 
80
 
    <tr py:for="file in filelist" class="parity${file.parity}">
81
 
        <td class="permissions"> ${util.fake_permissions(file.kind, file.executable)} </td>
82
 
        <td class="filename ${file.kind}">
83
 
            <a py:if="file.kind=='directory'" href="${branch.url([ '/files', revid ],
84
 
                **util.get_context(file_id=file.file_id))}">${file.filename}/</a>
85
 
            <span py:if="file.kind=='symlink'">${file.filename}@</span>
86
 
            <a py:if="file.kind=='file'" href="${branch.url([ '/annotate', revid ],
87
 
                **util.get_context(file_id=file.file_id))}" title="Annotate ${file.filename}">${file.filename}</a>
88
 
        </td>
89
 
        <td class="size"> <span py:if="file.kind=='file'"> ${util.human_size(file.size)} </span></td>
90
 
        <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>
91
 
        <td class="date"> ${file.change.date.strftime('%d %b %Y %H:%M')} </td>
92
 
        <td class="changes-link"> 
93
 
            <a href="${branch.url('/changes', **util.get_context(start_revid=file.revid, file_id=file.file_id))}"
94
 
               title="Changes from ${file.change.revno} affecting ${file.filename}"> &#8594; changes </a>
95
 
        </td>
96
 
        <td class="download-link">
97
 
            <a href="${branch.url([ '/download', file.revid, file.file_id, file.filename ])}"
98
 
               title="Download ${file.filename} at revision ${file.change.revno}"> &#8594; download </a></td>
99
 
    </tr>
100
 
</table>
101
 
 
102
 
</body>
103
 
</html>