~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.kid

  • Committer: Robey Pointer
  • Date: 2007-01-24 19:29:58 UTC
  • Revision ID: robey@lag.net-20070124192958-riwpysoxlrs18c6o
bump version to 1.1.1.

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} : changes </title>
 
7
    <link rel="alternate" type="application/atom+xml" href="${branch.url('/atom')}" title="RSS feed for ${branch.friendly_name}" />
 
8
    
 
9
    <span py:def="loglink(revid, text)">
 
10
        <a title="Show history" href="${branch.url('/changes', **util.get_context(start_revid=revid))}" class="revlink"> ${text} </a>
 
11
    </span>
 
12
 
 
13
    <span py:def="file_link(filename, file_id, revid)">
 
14
        <a href="${branch.url([ '/annotate', revid ], **util.get_context(file_id=file_id))}" title="Annotate ${filename}">${filename}</a>
 
15
    </span>
 
16
    
 
17
    ${use_collapse_buttons()}
 
18
</head>
 
19
 
 
20
<body onload="javascript:sortCollapseElements();">
 
21
 
 
22
${navbar()}
 
23
 
 
24
<h1> <span class="branch-name">${branch.friendly_name}</span> : changes
 
25
<span py:if="file_id"> to <span class="filename">${history.get_path(revid, file_id)}</span></span>
 
26
<span py:if="viewing_from"> from ${history.get_revno(start_revid)} </span>
 
27
<span py:if="query"> matching "${query}"</span>
 
28
</h1>
 
29
 
 
30
<span py:if="search_failed">
 
31
    Sorry, no results found for your search.
 
32
</span>
 
33
 
 
34
<span py:if="not search_failed" class="changelog"> ${collapse_all_button('cl')} </span>
 
35
 
 
36
<div class="log-entries">
 
37
    <div py:for="entry in changes" class="revision">
 
38
        <a name="entry-${entry.revno}" />
 
39
        <div class="revision-header">
 
40
            <table>
 
41
                <tr>
 
42
                    <td class="revision-number"> ${revision_link(entry.revid, util.trunc(entry.revno))} </td>
 
43
                    <td class="expand-button"> ${collapse_button('cl', entry.revno)} </td>
 
44
                                        <td class="summary"> ${revision_link(entry.revid, entry.short_comment)} </td>
 
45
                                        <td class="inventory-link"> <a href="${branch.url([ '/files', entry.revid ])}">&#8594; files</a> </td>
 
46
                                </tr>
 
47
                        </table>
 
48
        </div>
 
49
        
 
50
        <div class="revision-details-block">
 
51
            <div class="revision-details">
 
52
                            <table>
 
53
                                <tr>
 
54
                                    <th class="author">committed by:</th>
 
55
                                    <td class="author"> ${util.hide_email(entry.author)} </td>
 
56
                                </tr>
 
57
                                <tr>
 
58
                                    <th class="date">date:</th>
 
59
                                    <td class="date"> ${entry.date.strftime('%d %b %Y %H:%M')} &nbsp; (${util.ago(entry.date)}) </td>
 
60
                                </tr>
 
61
                            </table>
 
62
                        </div>
 
63
                <div class="revision-details hidden-details collapse-cl-${entry.revno}-content">
 
64
                        <table>
 
65
                                <tr py:if="len(entry.merge_points) > 0">
 
66
                                    <th class="children"> merged in: </th>
 
67
                                    <td class="children">
 
68
                                        <span py:for="child in entry.merge_points">
 
69
                                            ${loglink(child.revid, '(' + child.revno + util.if_present(' %s', child.branch_nick) + ')')} <br />
 
70
                                        </span>
 
71
                                    </td>
 
72
                                </tr>
 
73
                                <tr py:if="len(entry.parents) > 1">
 
74
                                        <th class="parents"> merged from: </th>
 
75
                                        <td class="parents">
 
76
                                            <span py:for="parent in entry.parents"><span py:if="parent.revid != entry.parents[0].revid">
 
77
                                                ${loglink(parent.revid, '(' + parent.revno + util.if_present(' %s', parent.branch_nick) + ')')} <br />
 
78
                                            </span></span>
 
79
                                        </td>
 
80
                                </tr>
 
81
 
 
82
                                <tr py:if="entry.changes.added">
 
83
                                    <th class="files"> files added: </th>
 
84
                                    <td class="files"> <span py:for="filename, fid in entry.changes.added" class="filename">${file_link(filename, fid, entry.revid)} <br /></span> </td>
 
85
                                </tr>
 
86
                                <tr py:if="entry.changes.removed">
 
87
                                    <th class="files"> files removed: </th>
 
88
                                    <td class="files"> <span py:for="filename, fid in entry.changes.removed" class="filename">${file_link(filename, fid, entry.revid)} <br /></span> </td>
 
89
                                </tr>
 
90
                                <tr py:if="entry.changes.renamed">
 
91
                                    <th class="files"> files renamed: </th>
 
92
                                    <td class="files"> <span py:for="old_filename, new_filename, fid in entry.changes.renamed" class="filename">
 
93
                                        ${file_link(old_filename, fid, entry.revid)} => ${file_link(new_filename, fid, entry.revid)}<br />
 
94
                                    </span> </td>
 
95
                                </tr>
 
96
                                <tr py:if="entry.changes.modified">
 
97
                                    <th class="files"> files modified: </th>
 
98
                                    <td class="files"> <span py:for="item in entry.changes.modified">
 
99
                                        <span class="filename">${file_link(item.filename, item.file_id, entry.revid)}</span> &nbsp;
 
100
                                        <a href="${branch.url([ '/revision', entry.revid ], **util.get_context()) + '#' + item.filename}" class="jump">&#8594; diff</a>
 
101
                                        <br />
 
102
                                    </span> </td>
 
103
                                </tr>
 
104
                                <tr>
 
105
                                    <th class="description">description:</th>
 
106
                                <td class="description"><span py:for="line in entry.comment_clean">${XML(line)} <br /></span> </td>
 
107
                            </tr>
 
108
                        </table>
 
109
                </div>
 
110
        </div>
 
111
    </div>
 
112
</div>
 
113
 
 
114
<div py:if="navigation.prev_page_revid or navigation.next_page_revid" class="bar">
 
115
    <table>
 
116
        <tr>
 
117
                <td class="buttons">
 
118
                <a py:if="navigation.prev_page_revid" href="${navigation.prev_page_url}"> &lt;&lt; page </a>
 
119
                        </td>
 
120
                        <td class="rbuttons" align="right">
 
121
                <a py:if="navigation.next_page_revid" href="${navigation.next_page_url}"> page &gt;&gt; </a>
 
122
                        </td>
 
123
                </tr>
 
124
        </table>
 
125
</div>
 
126
 
 
127
</body>
 
128
</html>