~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.kid

  • Committer: Launchpad Patch Queue Manager
  • Date: 2008-02-29 04:43:52 UTC
  • mfrom: (146.1.5 release-prep)
  • Revision ID: launchpad@pqm.canonical.com-20080229044352-zoweuygtkq7uwo37
[r=jml] updates to README.txt and NEWS before release

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
    <span py:def="file_diff_link(revid, filename)">
 
18
        <a href="javascript:diff_url('${branch.context_url([ '/revision', revid ]) + '#' + filename}')"
 
19
           title="View diff for ${filename}">${filename}</a>
 
20
    </span>
 
21
    
 
22
    ${use_collapse_buttons()}
 
23
 
 
24
    <script type="text/javascript"> <!--
 
25
    function diff_url(url) {
 
26
        if (document.cookie.indexOf('diff=unified') >= 0) {
 
27
            this.location.href = url + "-u";
 
28
        } else {
 
29
            this.location.href = url + "-s";
 
30
        }
 
31
    }
 
32
    // --> </script>
 
33
</head>
 
34
 
 
35
<body onload="javascript:sortCollapseElements();">
 
36
 
 
37
${navbar()}
 
38
 
 
39
<h1> <span class="branch-name">${branch.friendly_name}</span> : changes
 
40
<span py:if="file_id"> to <span class="filename">${history.get_path(revid, file_id)}</span></span>
 
41
<span py:if="viewing_from"> from ${history.get_revno(start_revid)} </span>
 
42
<span py:if="query"> matching "${query}"</span>
 
43
</h1>
 
44
 
 
45
<span py:if="search_failed">
 
46
    Sorry, no results found for your search.
 
47
</span>
 
48
 
 
49
<span py:if="not changes">
 
50
    No revisions!
 
51
</span>
 
52
 
 
53
<span py:if="not search_failed" class="changelog"> ${collapse_all_button('cl')} </span>
 
54
 
 
55
<table class="log-entries">
 
56
    <tr class="log-header">
 
57
        <th class="revision-number">Rev</th>
 
58
        <th></th>
 
59
        <th class="summary">Summary</th>
 
60
        <span py:strip="True" py:if="all_same_author">
 
61
            <th></th>
 
62
        </span>
 
63
        <span py:strip="True" py:if="not all_same_author">
 
64
            <th class="author">Committer</th>
 
65
        </span>
 
66
        <th class="date" colspan="2">Date</th>
 
67
    </tr>
 
68
    <div py:for="entry in changes" class="revision">
 
69
        <a name="entry-${entry.revno}" />
 
70
        <tr class="revision-header parity${entry.parity}">
 
71
            <td class="revision-number"> ${revision_link(entry.revid, util.trunc(entry.revno))} </td>
 
72
            <td class="expand-button"> ${collapse_button('cl', entry.revno)} </td>
 
73
            <td class="summary"> ${revision_link(entry.revid, entry.short_comment)} </td>
 
74
            <span py:strip="True" py:if="all_same_author">
 
75
                <td></td>
 
76
            </span>
 
77
            <span py:strip="True" py:if="not all_same_author">
 
78
                <td class="author"> ${util.trunc(util.hide_email(entry.author), 20)} </td>
 
79
            </span>
 
80
            <td class="date"> ${util.format_date(entry.date)} &nbsp; (${util.ago(entry.date)}) </td>
 
81
            <td class="inventory-link"> 
 
82
                <a href="${branch.url([ '/files', entry.revid ])}"
 
83
                    title="Files at revision ${entry.revno}"> files</a>
 
84
            </td>
 
85
        </tr>
 
86
        
 
87
        <tr class="revision-details-block parity${entry.parity}">
 
88
            <td colspan="2"></td>
 
89
            <td colspan="4"><table class="revision-details hidden-details collapse-cl-${entry.revno}-content">
 
90
                <tr py:if="len(entry.merge_points) > 0">
 
91
                    <th class="children"> merged in: </th>
 
92
                    <td class="children">
 
93
                        <span py:for="child in entry.merge_points">
 
94
                            ${loglink(child.revid, '(' + child.revno + util.if_present(' %s', child.branch_nick) + ')')} <br />
 
95
                        </span>
 
96
                    </td>
 
97
                </tr>
 
98
                <tr py:if="len(entry.parents) > 1">
 
99
                    <th class="parents"> merged from: </th>
 
100
                    <td class="parents">
 
101
                        <span py:for="parent in entry.parents[1:]">
 
102
                            ${loglink(parent.revid, parent.revno + util.if_present(' (%s)', parent.branch_nick))} <br />
 
103
                        </span>
 
104
                    </td>
 
105
                </tr>
 
106
                <span py:strip="True" py:if="all_same_author">
 
107
                    <tr>
 
108
                        <th class="author">committed by:</th>
 
109
                        <td class="author"> ${util.hide_email(entry.author)} </td>
 
110
                    </tr>
 
111
                </span>
 
112
                <tr>
 
113
                    <th class="description">description:</th>
 
114
                    <td class="description"><span py:for="line in entry.comment_clean">${XML(line)} <br /></span> </td>
 
115
                </tr>
 
116
                <tr py:if="entry.changes.added">
 
117
                    <th class="files"> files added: </th>
 
118
                    <td class="files"> <span py:for="filename, fid in entry.changes.added" class="filename">${file_link(filename, fid, entry.revid)} <br /></span> </td>
 
119
                </tr>
 
120
                <tr py:if="entry.changes.removed">
 
121
                    <th class="files"> files removed: </th>
 
122
                    <td class="files"> <span py:for="filename, fid in entry.changes.removed" class="filename">${file_link(filename, fid, entry.revid)} <br /></span> </td>
 
123
                </tr>
 
124
                <tr py:if="entry.changes.renamed">
 
125
                    <th class="files"> files renamed: </th>
 
126
                    <td class="files"> <span py:for="old_filename, new_filename, fid in entry.changes.renamed" class="filename">
 
127
                        ${file_link(old_filename, fid, entry.revid)} => ${file_link(new_filename, fid, entry.revid)}<br />
 
128
                    </span> </td>
 
129
                </tr>
 
130
                <tr py:if="entry.changes.modified">
 
131
                    <th class="files"> files modified: </th>
 
132
                    <td class="files"> <span py:for="item in entry.changes.modified">
 
133
                        <span class="filename">${file_diff_link(entry.revid, item.filename)}</span>
 
134
                        <br />
 
135
                    </span> </td>
 
136
                </tr>
 
137
                </table>
 
138
            </td>
 
139
        </tr>
 
140
    </div>
 
141
</table>
 
142
 
 
143
<div py:if="navigation.prev_page_revid or navigation.next_page_revid" class="bar">
 
144
    <table>
 
145
        <tr>
 
146
                <td class="buttons">
 
147
                <a py:if="navigation.prev_page_revid" href="${navigation.prev_page_url}"> &lt;&lt; page </a>
 
148
                        </td>
 
149
                        <td class="rbuttons" align="right">
 
150
                <a py:if="navigation.next_page_revid" href="${navigation.next_page_url}"> page &gt;&gt; </a>
 
151
                        </td>
 
152
                </tr>
 
153
        </table>
 
154
</div>
 
155
 
 
156
</body>
 
157
</html>