~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revision.kid

  • Committer: John Arbash Meinel
  • Date: 2011-02-09 22:35:16 UTC
  • mto: This revision was merged to the branch mainline in revision 423.
  • Revision ID: john@arbash-meinel.com-20110209223516-om3rux5jyjsi620q
cherrypick the annotation test fix for bug #686324.

The pqm branch seems to have a failing test, so I don't know how the
code ever landed there, but fix it anyway.

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} : revision ${util.clean_revid(revid)} </title>
7
 
</head>
8
 
 
9
 
<body>
10
 
 
11
 
${navbar()}
12
 
 
13
 
<h1> <span class="branch-name">${branch_name}</span> : revision ${revno} </h1>
14
 
 
15
 
<div class="info-entries">
16
 
    <table>
17
 
        <tr>
18
 
            <th class="revision">revision:</th>
19
 
            <td class="revision"> ${revision_link(revid, revno)} </td>
20
 
        </tr>
21
 
        <tr py:if="parents">
22
 
            <th class="revision">parents:</th>
23
 
            <td class="revision">
24
 
                <span py:for="p in parents">
25
 
                    ${revision_link(p.revid, p.revno)} <br />
26
 
                </span>
27
 
            </td>
28
 
        </tr>
29
 
        <tr py:if="children">
30
 
            <th class="revision">children:</th>
31
 
            <td class="revision">
32
 
                <span py:for="c in children">
33
 
                    ${revision_link(c.revid, c.revno)} <br />
34
 
                </span>
35
 
            </td>
36
 
        </tr>
37
 
        <tr>
38
 
            <th class="author">committer:</th>
39
 
            <td class="author"> ${util.hide_email(author)} </td>
40
 
        </tr>
41
 
        <tr>
42
 
            <th class="date">date:</th>
43
 
            <td class="date"> ${date.strftime('%d %b %Y %H:%M')} </td>
44
 
        </tr>
45
 
        <tr>
46
 
            <th class="description">description:</th>
47
 
            <td class="description"> <span py:for="line in comment">${line} <br /></span> </td>
48
 
        </tr>
49
 
        <tr class="divider"> <th></th> <td></td> </tr>
50
 
        <tr py:if="changes.added">
51
 
            <th class="files"> files added: </th>
52
 
            <td class="files"> <span py:for="filename in changes.added">${filename} <br /></span> </td>
53
 
        </tr>
54
 
        <tr py:if="changes.removed">
55
 
            <th class="files"> files removed: </th>
56
 
            <td class="files"> <span py:for="filename in changes.removed">${filename} <br /></span> </td>
57
 
        </tr>
58
 
        <tr py:if="changes.renamed">
59
 
            <th class="files"> files renamed: </th>
60
 
            <td class="files"> <span py:for="old_filename, new_filename in changes.renamed">${old_filename} => ${new_filename}<br /></span> </td>
61
 
        </tr>
62
 
        <tr py:if="changes.modified">
63
 
            <th class="files"> files modified: </th>
64
 
            <td class="files"> <span py:for="item in changes.modified">${item.filename} <br /></span> </td>
65
 
        </tr>
66
 
    </table>
67
 
</div>
68
 
 
69
 
<div class="diff" py:if="changes.modified">
70
 
    <table py:for="item in changes.modified" class="diff-block">
71
 
        <tr><th class="filename"> ${item.filename} </th></tr>
72
 
        <tr><td>
73
 
            <table py:for="chunk in item.chunks" class="diff-chunk">
74
 
                <tr> <th class="lineno">old</th> <th class="lineno">new</th> <th></th> </tr>
75
 
                <tr py:for="line in chunk.diff">
76
 
                    <td class="lineno">${line.old_lineno}</td>
77
 
                    <td class="lineno">${line.new_lineno}</td>
78
 
                    <td class="${line.type}">${XML(line.line)}</td>
79
 
                </tr>
80
 
            </table>
81
 
        </td></tr>
82
 
    </table>
83
 
</div>
84
 
 
85
 
</body>
86
 
</html>