/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.pt

  • Committer: Colin Watson
  • Date: 2022-08-08 16:33:50 UTC
  • mto: This revision was merged to the branch mainline in revision 528.
  • Revision ID: cjwatson@canonical.com-20220808163350-xd8ilh0u5m1kiylb
Port from SimpleTAL to Chameleon.

SimpleTAL is a painful dependency, because it has no download files on
PyPI: the only way to depend on it properly is therefore using a direct
URL reference, and as I understand it packages with such references
those can't be uploaded to PyPI.

Porting to Chameleon (Zope's default TAL implementation nowadays) turns
out not to be too difficult.  The main work involved is because it
doesn't support path expressions.  It would be possible to add those
using `z3c.pt`, and I considered that, but that has a significant
dependency tree for packages that don't already use the Zope Toolkit,
and it would have also required extra startup complexity to register
`ITraversable` adapters.  It's easier to convert path expressions to the
equivalent Python expressions, although the process of doing so was
unfortunately quite error-prone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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" metal:use-macro="macros/main">
 
2
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros.main">
3
3
  <head>
4
4
    <title metal:fill-slot="title"
5
 
           tal:content="string:${branch/friendly_name} : changes"></title>
 
5
           tal:content="string:${branch.friendly_name} : changes"></title>
6
6
    <metal:block fill-slot="header_extras">
7
7
      <link rel="alternate" type="application/atom+xml"
8
8
            tal:attributes="href python:url(['/atom']);
9
 
                            title string:RSS feed for ${branch/friendly_name}" />
 
9
                            title string:RSS feed for ${branch.friendly_name}" />
10
10
    <script type="text/javascript">
11
11
      var revids = <tal:block content="data" />;
12
12
    </script>
17
17
 
18
18
  <body>
19
19
      <tal:block metal:fill-slot="backlink">
20
 
          <tal:has-link condition="branch/branch_link">
 
20
          <tal:has-link condition="branch.branch_link">
21
21
            <div class="black-link">
22
 
                <a tal:attributes="href branch/branch_link">
 
22
                <a tal:attributes="href branch.branch_link">
23
23
                  &#8592; Back to branch summary
24
24
                </a>
25
25
            </div>
26
26
          </tal:has-link>
27
27
      </tal:block>
28
 
    <tal:block metal:fill-slot="branchname" tal:content="string:${branch/friendly_name}" />
 
28
    <tal:block metal:fill-slot="branchname" tal:content="branch.friendly_name" />
29
29
    <tal:block metal:fill-slot="heading">
30
30
        <div id="breadcrumbs">
31
 
            <tal:has-link condition="branch/branch_link">
32
 
              <a tal:attributes="href branch/branch_link"
33
 
                 tal:content="branch/friendly_name">
 
31
            <tal:has-link condition="branch.branch_link">
 
32
              <a tal:attributes="href branch.branch_link"
 
33
                 tal:content="branch.friendly_name">
34
34
                nice/branch/name
35
35
              </a>
36
36
            </tal:has-link>
37
 
            <tal:no-link condition="not: branch/branch_link">
38
 
              <span metal:use-macro="breadcrumbs/directory"></span>
 
37
            <tal:no-link condition="not: branch.branch_link">
 
38
              <span metal:use-macro="breadcrumbs.directory"></span>
39
39
            </tal:no-link>
40
40
            <tal:block condition="changes">
41
41
              &#187; Changes
60
60
        No revisions!
61
61
      </p>
62
62
 
63
 
      <p class="fr revnolink">From Revision <a tal:attributes="href #
 
63
      <p class="fr revnolink">From Revision <a tal:attributes="href string:#
64
64
                                                               title python:'Show revision '+history.get_revno(revid)"
65
65
                                               tal:content="python:history.get_revno(revid)"></a>
66
66
        <tal:block tal:condition="python:navigation.last_in_page_revid is not None"> to
67
 
          <a tal:attributes="href #
 
67
          <a tal:attributes="href string:#
68
68
                             title 'Show revision '+history.get_revno(navigation.last_in_page_revid)"
69
69
             tal:content="python:history.get_revno(navigation.last_in_page_revid)"></a>
70
70
      </tal:block></p>
89
89
          <th class="downloadcell">Files</th>
90
90
        </tr>
91
91
        <tal:block tal:repeat="entry changes">
92
 
          <a tal:attributes="name string:entry-${entry/revno}"/>
93
 
          <tr tal:attributes="class string:blueRow${entry/parity} revision_log; id string:log-${entry/index}">
 
92
          <a tal:attributes="name string:entry-${entry.revno}"/>
 
93
          <tr tal:attributes="class string:blueRow${entry.parity} revision_log; id string:log-${entry.index}">
94
94
            <td class="revnro revnolink"><a tal:attributes="title python:'Show revision '+entry.revno;
95
95
                                                            href  python:url(['/revision', entry.revno], clear=1)"
96
96
                                            tal:content="python:util.trunc(entry.revno)"></a>
110
110
                <a tal:attributes="title python:'Show revision '+entry.revno;
111
111
                                   href  python:url(['/revision', entry.revno], clear=1);
112
112
                                   class string:link"
113
 
                   tal:content="entry/short_comment"></a>
 
113
                   tal:content="entry.short_comment"></a>
114
114
              </div>
115
115
              <div class="long_description" style="display: none">
116
116
                <img tal:condition="python:entry.parents[1:]"
126
126
            </td>
127
127
            <td tal:content="python:util.trunc(util.hide_email(entry.authors[0]), 20)"
128
128
                class="autcell"></td>
129
 
            <td tal:condition="show_tag_col" tal:content="string:${entry/tags}"
 
129
            <td tal:condition="show_tag_col" tal:content="string:${entry.tags}"
130
130
                class="tagcell"></td>
131
131
            <td class="date">
132
132
              <span tal:attributes="title python:util.date_time(entry.utc_date)"
136
136
                                                 href python:url(['/revision', entry.revno], clear=1)">
137
137
                <img tal:attributes="src python:branch.static_url('/static/images/ico_diff.gif')" alt="Diff" /></a></td>
138
138
            <td class="downr"><a tal:attributes="href python:branch.url(['/files', entry.revno]);
139
 
                                                 title string:Files at revision ${entry/revno}">
 
139
                                                 title string:Files at revision ${entry.revno}">
140
140
                <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif')" alt="Files" /></a>
141
141
            </td>
142
142
          </tr>
145
145
 
146
146
      <ul tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
147
147
          id="pages">
148
 
        <li tal:condition="navigation/prev_page_revid"
 
148
        <li tal:condition="navigation.prev_page_revid"
149
149
            class="previous">
150
 
          <a tal:attributes="href navigation/prev_page_url">&laquo; Newer</a>
 
150
          <a tal:attributes="href navigation.prev_page_url">&laquo; Newer</a>
151
151
        </li>
152
152
        <!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them,
153
153
             so some magic has to be done to just show the previous and next N page numbers
157
157
               <li><a href="#"
158
158
                      tal:content="page_number"></a></li>
159
159
             </tal:block>-->
160
 
        <li tal:condition="navigation/next_page_revid"
 
160
        <li tal:condition="navigation.next_page_revid"
161
161
            class="next">
162
 
          <a tal:attributes="href navigation/next_page_url">Older &raquo;</a>
 
162
          <a tal:attributes="href navigation.next_page_url">Older &raquo;</a>
163
163
        </li>
164
164
      </ul>
165
165