~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.kid

  • Committer: Robey Pointer
  • Date: 2006-12-16 01:44:06 UTC
  • Revision ID: robey@lag.net-20061216014406-gpm7byj28rfaelfu
fix up atom

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_name} : files for revision ${change.revno} </title>
 
7
</head>
 
8
 
 
9
<body>
 
10
 
 
11
${navbar()}
 
12
 
 
13
<h1> <span class="branch-name">${branch_name}</span> : files for revision ${change.revno}
 
14
        <div class="links">
 
15
            <div> <b>&#8594;</b> <a href="${tg.url('/revision', start_revid=revid)}"> view revision </a> </div>
 
16
            <div> <b>&#8594;</b> <a href="${tg.url('/changes', start_revid=revid)}"> view branch changes </a> </div>
 
17
        </div>
 
18
</h1>
 
19
 
 
20
<!-- !FIXME: this is just copied verbatim from revision.kid -->
 
21
<div class="revision-info">
 
22
    <table>
 
23
        <tr>
 
24
            <th class="author">committed by:</th>
 
25
            <td class="author"> ${util.hide_email(change.author)} </td>
 
26
        </tr>
 
27
        <tr>
 
28
            <th class="date">date:</th>
 
29
            <td class="date"> ${change.date.strftime('%d %b %Y %H:%M')} </td>
 
30
        </tr>
 
31
 
 
32
        <tr py:if="len(change.merge_points) > 0">
 
33
            <th class="children"> merged in: </th>
 
34
            <td class="children">
 
35
                <span py:for="child in change.merge_points">
 
36
                    ${revlink_path(child.revid, child.revid, '(' + child.revno + util.if_present(' %s', child.branch_nick) + ')', None)} <br />
 
37
                </span>
 
38
            </td>
 
39
        </tr>
 
40
        <tr py:if="len(change.parents) > 1">
 
41
                <th class="parents"> merged from: </th>
 
42
                <td class="parents">
 
43
                    <span py:for="parent in change.parents"><span py:if="parent.revid != change.parents[0].revid">
 
44
                        ${revlink_path(parent.revid, parent.revid, '(' + parent.revno + util.if_present(' %s', parent.branch_nick) + ')', None)} <br />
 
45
                    </span></span>
 
46
                </td>
 
47
        </tr>
 
48
 
 
49
        <tr>
 
50
            <th class="description">description:</th>
 
51
            <td class="description"><span py:for="line in change.comment_clean">${XML(line)} <br /></span></td>
 
52
        </tr>
 
53
    </table>
 
54
</div>
 
55
 
 
56
<div class="inventory-path">
 
57
    <b>folder:</b> <span class="folder"> ${path} </span>
 
58
</div>
 
59
 
 
60
<table class="inventory" width="100%">
 
61
    <tr class="header">
 
62
        <th class="permissions"> Permissions </th>
 
63
        <th> Filename </th>
 
64
        <th> Last change </th>
 
65
        <th> When </th>
 
66
        <th> History </th>
 
67
    </tr>
 
68
    
 
69
    <tr class="parity1" py:if="updir">
 
70
        <td class="permissions">drwxr-xr-x</td>
 
71
        <td class="filename directory"><a href="${tg.url([ '/files', revid ], path=updir)}"> (up) </a></td>
 
72
        <td> </td> <td> </td> <td> </td>
 
73
    </tr>
 
74
 
 
75
    <tr py:for="file in filelist" class="parity${file.parity}">
 
76
        <td class="permissions"> ${util.fake_permissions(file.kind, file.executable)} </td>
 
77
        <td class="filename ${file.kind}">
 
78
            <a py:if="file.kind=='directory'" href="${tg.url([ '/files', revid ], path=posixpath.join(path, file.pathname))}">${file.filename}/</a>
 
79
            <span py:if="file.kind=='symlink'">${file.filename}@</span>
 
80
            <a py:if="file.kind=='file'" href="${tg.url([ '/annotate', revid ], path=posixpath.join(path, file.pathname))}">${file.filename}</a>
 
81
        </td>
 
82
        <td class="revision"> ${revlink_path(file.revid, file.revid, util.trunc(file.change.revno, 15), posixpath.join(path, file.pathname))} </td>
 
83
        <td class="date"> ${file.change.date.strftime('%d %b %Y %H:%M')} </td>
 
84
        <td class="changes-link"> <a href="${tg.url('/changes', start_revid=file.revid, path=posixpath.join(path, file.pathname))}"> &#8594; changes </a></td>
 
85
    </tr>
 
86
</table>
 
87
 
 
88
</body>
 
89
</html>