~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.pt

merge in kent gibson's nice UI changes, and my subsequent tweaks to those
changes.

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
 
<tal:block define="onload string:sortCollapseElements()">
3
 
  <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
4
 
    <head>
5
 
      <title metal:fill-slot="title"
6
 
             tal:content="string:${branch/friendly_name} : changes">
7
 
        ${branch.friendly_name} : changes
8
 
      </title>
9
 
      <metal:block fill-slot="header-extras">
10
 
        <link rel="alternate" type="application/atom+xml"
11
 
              tal:attributes="href python:url(['/atom']);
12
 
                              title string:RSS feed for ${branch/friendly_name}"
13
 
              />
14
 
 
15
 
        <script type="text/javascript"
16
 
                tal:attributes="src python:tg.url('/static/javascript/collapse.js')">
17
 
        </script>
18
 
      </metal:block>
19
 
    </head>
20
 
 
21
 
    <body>
22
 
 
23
 
      <h1 style="margin-bottom: 1em" metal:fill-slot="heading">
24
 
        <span class="branch-name" tal:content="branch/friendly_name">
25
 
          ${branch.friendly_name}
26
 
        </span>
27
 
        : changes
28
 
        <tal:block condition="file_id">
29
 
          to
30
 
          <span class="filename"
31
 
                tal:content="python:history.get_path(revid, file_id)">
32
 
            ${history.get_path(revid, file_id)}
33
 
          </span>
34
 
        </tal:block>
35
 
        <tal:block condition="viewing_from">
36
 
          from <tal:block content="python:history.get_revno(start_revid)" />
37
 
        </tal:block>
38
 
        <tal:block condition="query">
39
 
          matching <tal:block content="query" />
40
 
        </tal:block>
41
 
      </h1>
42
 
 
43
 
      <div metal:fill-slot="content">
44
 
 
45
 
        <p tal:condition="search_failed">
46
 
          Sorry, no results found for your search.
47
 
        </p>
48
 
 
49
 
        <p tal:condition="not:changes">
50
 
          No revisions!
51
 
        </p>
52
 
 
53
 
        <p tal:condition="changes"
54
 
           class="changelog">
55
 
          <tal:b content="structure python:collapse_all_button('cl')" />
56
 
        </p>
57
 
 
58
 
        <table class="log-entries"
59
 
               tal:define="subcolspan python:4-bool(all_same_author)">
60
 
          <tr class="log-header">
61
 
            <th class="revision-number">
62
 
              Rev
63
 
            </th>
64
 
            <th>
65
 
            </th>
66
 
            <th class="summary">
67
 
              Summary
68
 
            </th>
69
 
            <th tal:condition="not:all_same_author"
70
 
                class="author">
71
 
              Committer
72
 
            </th>
73
 
            <th class="date" colspan="2">
74
 
              Date
75
 
            </th>
76
 
          </tr>
77
 
          <tal:block tal:repeat="entry changes">
78
 
            <a tal:attributes="name string:entry-${entry/revno}" />
79
 
            <tr tal:attributes="class string:revision-header parity${entry/parity}">
80
 
              <td class="revision-number">
81
 
                <a tal:attributes="title python:'Show revision '+history.get_revno(entry.revid);
82
 
                                   href  python:url(['/revision', entry.revid])"
83
 
                   tal:content="python:util.trunc(entry.revno)">
84
 
                  text
85
 
                </a>
86
 
              </td>
87
 
              <td class="expand-button" tal:define="name entry/revno"
88
 
                  tal:content="structure python:collapse_button('cl', entry.revno)">
89
 
              </td>
90
 
              <td class="summary">
91
 
                <a tal:attributes="title python:'Show revision '+history.get_revno(entry.revid);
92
 
                                   href  python:url(['/revision', entry.revid])"
93
 
                   tal:content="entry/short_comment">
94
 
                  text
95
 
                </a>
96
 
              </td>
97
 
              <td tal:condition="not:all_same_author"
98
 
                  tal:content="python:util.trunc(util.hide_email(entry.author), 20)"
99
 
                  class="author">
100
 
                ${util.trunc(util.hide_email(entry.author), 20)}
101
 
              </td>
102
 
              <td class="date">
103
 
                <tal:b content="python:entry.date.strftime('%Y-%m-%d, %H:%M')" />
104
 
                &nbsp;
105
 
                (<tal:b content="python:util.ago(entry.date)" />)
106
 
              </td>
107
 
              <td class="inventory-link">
108
 
                <a tal:attributes="href python:url(['/files', entry.revid]);
109
 
                                   title string:Files at revision ${entry/revno}">
110
 
                  files
111
 
                </a>
112
 
              </td>
113
 
            </tr>
114
 
 
115
 
            <tr tal:attributes="class string:revision-details-block parity${entry/parity}">
116
 
              <td colspan="2">
117
 
              </td>
118
 
              <td tal:attributes="colspan subcolspan">
119
 
                <table tal:attributes="class string:revision-details hidden-details collapse-cl-${entry/revno}-content">
120
 
                  <tr tal:repeat="merge_point entry/merge_points">
121
 
                    <th class="children">
122
 
                      <tal:block condition="repeat/merge_point/start">
123
 
                        merged in:
124
 
                      </tal:block>
125
 
                    </th>
126
 
                    <td class="children">
127
 
                      <a title="Show history"
128
 
                         tal:attributes="href python:url(['/changes'], start_revid=merge_point.revid)"
129
 
                         tal:content="python:revno_with_nick(merge_point)">
130
 
                        class="revlink">
131
 
                        ${text}
132
 
                      </a>
133
 
                    </td>
134
 
                  </tr>
135
 
                  <tr tal:repeat="parent python:entry.parents[1:]">
136
 
                    <th class="parents">
137
 
                      <tal:block condition="repeat/parent/start">
138
 
                        merged from:
139
 
                      </tal:block>
140
 
                    </th>
141
 
                    <td class="parents">
142
 
                      <a title="Show history"
143
 
                         tal:attributes="href python:url(['/changes'], start_revid=parent.revid)"
144
 
                         tal:content="python:revno_with_nick(parent)">
145
 
                        class="revlink">
146
 
                        ${text}
147
 
                      </a>
148
 
                    </td>
149
 
                  </tr>
150
 
                  <tr tal:condition="all_same_author">
151
 
                    <th class="author">
152
 
                      committed by:
153
 
                    </th>
154
 
                    <td class="author" tal:content="python:util.hide_email(entry.author)">
155
 
                      ${util.hide_email(entry.author)}
156
 
                    </td>
157
 
                  </tr>
158
 
                  <tr>
159
 
                    <th class="description">
160
 
                      description:
161
 
                    </th>
162
 
                    <td class="description">
163
 
                      <tal:block repeat="line entry/comment_clean"
164
 
                                 content="structure string:${line}<br />" />
165
 
                    </td>
166
 
                  </tr>
167
 
                  <tal:block content="structure python:file_change_summary(url, entry, modified_file_link_log)" />
168
 
                </table>
169
 
              </td>
170
 
            </tr>
171
 
          </tal:block>
172
 
        </table>
173
 
 
174
 
        <div tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
175
 
             class="bar">
176
 
          <table>
177
 
            <tr>
178
 
              <td class="buttons">
179
 
                <a tal:condition="navigation/prev_page_revid"
180
 
                   tal:attributes="href navigation/prev_page_url">
181
 
                  &lt;&lt; page
182
 
                </a>
183
 
              </td>
184
 
              <td class="rbuttons" align="right">
185
 
                <a tal:condition="navigation/next_page_revid"
186
 
                   tal:attributes="href navigation/next_page_url">
187
 
                  page &gt;&gt;
188
 
                </a>
189
 
              </td>
190
 
            </tr>
191
 
          </table>
192
 
        </div>
193
 
      </div>
194
 
    </body>
195
 
  </html>
196
 
</tal:block>