~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/annotate.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_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
 
 
55
 
        <tr py:for="line in contents" class="parity${line.parity}">
56
 
            <td class="lineno ${line.status}"> ${line.lineno} </td>
57
 
            <td class="revno ${line.status}">
58
 
                <a py:if="line.status=='changed'" href="${tg.url('/revision', start_revid=line.change.revid, path=path)}"
59
 
                    title="${line.change.revno} by ${util.hide_email(line.change.author)}, on ${line.change.date.strftime('%d %b %Y %H:%M')} (${util.ago(line.change.date)})">${line.trunc_revno}</a>
60
 
            </td>
61
 
            <!--td class="author"> ${util.hide_email(line.author)} </td-->
62
 
            <td class="text ${line.status}"> ${XML(line.text)} </td>
63
 
        </tr>
64
 
    </table>
65
 
</div>
66
 
 
67
 
 
68
 
</body>
69
 
</html>