/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.kid

  • Committer: Robey Pointer
  • Date: 2006-12-13 03:02:49 UTC
  • Revision ID: robey@lag.net-20061213030249-poznwaqmwiqmm7jx
add an annotate page, and rename inventory -> files

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} : contents of ${path} at revision ${change.revno} </title>
 
7
</head>
 
8
 
 
9
<body>
 
10
 
 
11
${navbar()}
 
12
 
 
13
<h1> <span class="branch-name">${branch_name}</span> : ${path} (revision ${change.revno}) </h1>
 
14
 
 
15
<!-- !FIXME: this is just copied verbatim from revision.kid -->
 
16
<!--div class="revision-info">
 
17
    <table>
 
18
        <tr>
 
19
            <th class="author">committed by:</th>
 
20
            <td class="author"> ${util.hide_email(change.author)} </td>
 
21
        </tr>
 
22
        <tr>
 
23
            <th class="date">date:</th>
 
24
            <td class="date"> ${change.date.strftime('%d %b %Y %H:%M')} </td>
 
25
        </tr>
 
26
 
 
27
        <tr py:if="len(change.merge_points) > 0">
 
28
            <th class="children"> merged in: </th>
 
29
            <td class="children">
 
30
                <span py:for="child in change.merge_points"> ${revlink(child.revid, '(' + child.revno + ')')} &nbsp; </span>
 
31
            </td>
 
32
        </tr>
 
33
        <tr py:if="len(change.parents) > 1">
 
34
                <th class="parents"> merged from: </th>
 
35
                <td class="parents">
 
36
                    <span py:for="parent in change.parents"><span py:if="parent.revid != change.parents[0].revid"> ${revlink(parent.revid, '(' + parent.revno + ')')} &nbsp; </span></span>
 
37
                </td>
 
38
        </tr>
 
39
 
 
40
        <tr>
 
41
            <th class="description">description:</th>
 
42
            <td class="description"><span py:for="line in change.comment_clean">${XML(line)} <br /></span></td>
 
43
        </tr>
 
44
    </table>
 
45
</div-->
 
46
 
 
47
<div class="annotate">
 
48
    <table>
 
49
        <tr>
 
50
            <th class="lineno"> Line# </th>
 
51
            <th class="revision"> Revision </th>
 
52
            <th class="text"> Contents </th>
 
53
        </tr>
 
54
        <tr py:for="line in contents" class="parity${line.parity}">
 
55
            <td class="lineno ${line.status}"> ${line.lineno} </td>
 
56
            <td class="revno ${line.status}">
 
57
                <a py:if="line.status=='changed'" href="${tg.url([ '/revision', line.revid ], path=path)}">${line.trunc_revno}</a>
 
58
            </td>
 
59
            <!--td class="author"> ${util.hide_email(line.author)} </td-->
 
60
            <td class="text ${line.status}"> ${XML(line.text)} </td>
 
61
        </tr>
 
62
    </table>
 
63
</div>
 
64
 
 
65
 
 
66
</body>
 
67
</html>