~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.pt

  • Committer: Michael Hudson
  • Date: 2008-07-28 05:26:13 UTC
  • mfrom: (128.13.91 new_theme_trunk)
  • Revision ID: michael.hudson@canonical.com-20080728052613-35uxs2xz28dsqdgz
merge the new theme created by Martin Albisetti
(this work sponsored by Canonical)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
4
4
    <head>
5
5
      <title metal:fill-slot="title"
6
 
             tal:content="string:${branch/friendly_name} : changes">
7
 
        ${branch.friendly_name} : changes
8
 
      </title>
 
6
             tal:content="string:${branch/friendly_name} : changes"></title>
9
7
      <metal:block fill-slot="header_extras">
10
8
        <link rel="alternate" type="application/atom+xml"
11
9
              tal:attributes="href python:url(['/atom']);
12
 
                              title string:RSS feed for ${branch/friendly_name}"/>
13
 
 
14
 
        <script type="text/javascript"
15
 
                tal:attributes="src python:branch.static_url('/static/javascript/collapse.js')">
16
 
        </script>
 
10
                              title string:RSS feed for ${branch/friendly_name}" />
17
11
      </metal:block>
18
12
    </head>
19
13
 
20
14
    <body>
21
 
 
22
 
      <h1 style="margin-bottom: 1em" metal:fill-slot="heading">
23
 
        <span class="branch-name" tal:content="branch/friendly_name">
24
 
          ${branch.friendly_name}
25
 
        </span>
26
 
        : changes
27
 
        <tal:block condition="filter_file_id">
28
 
          to
29
 
          <span class="filename"
30
 
                tal:content="python:history.get_path(revid, filter_file_id)">
31
 
          </span>
32
 
        </tal:block>
33
 
        <tal:block condition="viewing_from">
34
 
          from <tal:block content="python:history.get_revno(start_revid)" />
35
 
        </tal:block>
36
 
        <tal:block condition="query">
37
 
          matching <tal:block content="query" />
38
 
        </tal:block>
39
 
      </h1>
40
 
 
41
 
      <div metal:fill-slot="content">
42
 
 
 
15
        <tal:block metal:fill-slot="heading">
 
16
         <h1>
 
17
          <tal:block content="branch/friendly_name"></tal:block>: changes
 
18
          <tal:block condition="filter_file_id">to <span tal:content="python:history.get_path(revid, filter_file_id)" /></tal:block>
 
19
          <tal:block condition="start_revid">from revision <tal:block content="python:history.get_revno(start_revid)" /></tal:block>
 
20
          <tal:block condition="query">matching <tal:block content="query" /></tal:block>
 
21
         </h1>
 
22
        </tal:block>
 
23
 
 
24
       <div metal:fill-slot="content">
 
25
           <!-- Something nicer-looking should be done with search -->
43
26
        <p tal:condition="search_failed">
44
27
          Sorry, no results found for your search.
45
28
        </p>
48
31
          No revisions!
49
32
        </p>
50
33
 
51
 
        <p tal:condition="changes"
52
 
           class="changelog">
53
 
          <tal:b content="structure python:collapse_all_button('cl', branch)" />
54
 
        </p>
55
 
 
56
 
        <table class="log-entries"
 
34
        <p class="fr revnolink">From Revision <a tal:attributes="href #
 
35
                                                            title python:'Show revision '+history.get_revno(revid)" 
 
36
                                tal:content="python:history.get_revno(revid)"></a>
 
37
          <tal:block tal:condition="python:navigation.last_in_page_revid is not None"> to
 
38
          <a tal:attributes="href # 
 
39
                             title 'Show revision '+history.get_revno(navigation.last_in_page_revid)"
 
40
             tal:content="python:history.get_revno(navigation.last_in_page_revid)"></a>
 
41
         </tal:block></p>
 
42
        <p class="expand" id="expand_all"><a tal:attributes="href string:javascript:toggle_expand_all('open')">
 
43
            <img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
 
44
                  alt="expand all" /> expand all</a>
 
45
        </p>
 
46
        <p class="expand" id="collapse_all" style="display:none;"><a tal:attributes="href string:javascript:toggle_expand_all('close')">
 
47
            <img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
 
48
                  alt="collapse all" /> collapse all</a>
 
49
        </p>
 
50
        <!-- Table -->        
 
51
        <table id="logentries"
57
52
               tal:define="subcolspan python:4-bool(all_same_author)">
58
 
          <tr class="log-header">
59
 
            <th class="revision-number">
60
 
              Rev
61
 
            </th>
62
 
            <th>
63
 
            </th>
64
 
            <th class="summary">
65
 
              Summary
66
 
            </th>
67
 
            <th tal:condition="not:all_same_author"
68
 
                class="author">
69
 
              Committer
70
 
            </th>
71
 
            <th class="date" colspan="2">
72
 
              Date
73
 
            </th>
74
 
          </tr>
75
 
          <tal:block tal:repeat="entry changes">
76
 
            <a tal:attributes="name string:entry-${entry/revno}" />
77
 
            <tr tal:attributes="class string:revision-header parity${entry/parity}">
78
 
              <td class="revision-number">
79
 
                <a tal:attributes="title python:'Show revision '+entry.revno;
80
 
                                   href  python:url(['/revision', entry.revno])"
81
 
                   tal:content="python:util.trunc(entry.revno)">
82
 
                  text
83
 
                </a>
84
 
              </td>
85
 
              <td class="expand-button" tal:define="name entry/revno"
86
 
                  tal:content="structure python:collapse_button('cl', entry.revno, branch)">
87
 
              </td>
88
 
              <td class="summary">
89
 
                <a tal:attributes="title python:'Show revision '+entry.revno;
90
 
                                   href  python:url(['/revision', entry.revno])"
91
 
                   tal:content="entry/short_comment">
92
 
                  text
93
 
                </a>
94
 
              </td>
95
 
              <td tal:condition="not:all_same_author"
96
 
                  tal:content="python:util.trunc(util.hide_email(entry.author), 20)"
97
 
                  class="author"></td>
98
 
              <td class="date">
99
 
                  <span tal:attributes="title python:util.date_time(entry.date)"
100
 
                        tal:content="python:util._approximatedate(entry.date)"></span>
101
 
              </td>
102
 
              <td class="inventory-link">
103
 
                <a tal:attributes="href python:branch.url(['/files', entry.revno]);
104
 
                                   title string:Files at revision ${entry/revno}">
105
 
                  files
106
 
                </a>
107
 
              </td>
 
53
            <tr class="logheader">
 
54
                <td class="revisionnumber">Rev</td>
 
55
                <td class="expandcell">&nbsp;</td>
 
56
                <td class="summarycell">Summary</td>
 
57
                <td class="authorcell">Author</td>
 
58
                <td class="datecell">Date</td>
 
59
                <td class="diffcell">Diff</td>
 
60
                <td class="downloadcell">Files</td>
108
61
            </tr>
109
 
 
110
 
            <tr tal:attributes="class string:revision-details-block parity${entry/parity}">
111
 
              <td colspan="2">
112
 
              </td>
113
 
              <td tal:attributes="colspan subcolspan">
114
 
                <table tal:attributes="class string:revision-details hidden-details collapse-cl-${entry/revno}-content">
115
 
                  <tr tal:repeat="merge_point entry/merge_points">
116
 
                    <th class="children">
117
 
                      <tal:block condition="repeat/merge_point/start">
118
 
                        merged in:
119
 
                      </tal:block>
120
 
                    </th>
121
 
                    <td class="children">
122
 
                      <a title="Show history"
123
 
                         tal:attributes="href python:url(['/changes'], start_revid=merge_point.revno)"
124
 
                         tal:content="python:revno_with_nick(merge_point)">
125
 
                        class="revlink">
126
 
                        ${text}
127
 
                      </a>
128
 
                    </td>
129
 
                  </tr>
130
 
                  <tr tal:repeat="parent python:entry.parents[1:]">
131
 
                    <th class="parents">
132
 
                      <tal:block condition="repeat/parent/start">
133
 
                        merged from:
134
 
                      </tal:block>
135
 
                    </th>
136
 
                    <td class="parents">
137
 
                      <a title="Show history"
138
 
                         tal:attributes="href python:url(['/changes'], start_revid=parent.revno)"
139
 
                         tal:content="python:revno_with_nick(parent)">
140
 
                        class="revlink">
141
 
                        ${text}
142
 
                      </a>
143
 
                    </td>
144
 
                  </tr>
145
 
                  <tr tal:condition="all_same_author">
146
 
                    <th class="author">
147
 
                      committed by:
148
 
                    </th>
149
 
                    <td class="author" tal:content="python:util.hide_email(entry.author)">
150
 
                      ${util.hide_email(entry.author)}
151
 
                    </td>
152
 
                  </tr>
153
 
                  <tr>
154
 
                    <th class="description">
155
 
                      description:
156
 
                    </th>
157
 
                    <td class="description">
158
 
                      <tal:block repeat="line entry/comment_clean"
159
 
                                 content="structure string:${line}&lt;br /&gt;" />
160
 
                    </td>
161
 
                  </tr>
162
 
                  <tal:block content="structure python:file_change_summary(url, entry, modified_file_link_log)" />
163
 
                </table>
164
 
              </td>
 
62
            <tal:block tal:repeat="entry changes">
 
63
            <a tal:attributes="name string:entry-${entry/revno}"/>
 
64
                <tr tal:attributes="class string:blueRow${entry/parity} revision_log">
 
65
                <td class="revnro revnolink"><a tal:attributes="title python:'Show revision '+entry.revno;
 
66
                                                                href  python:url(['/revision', entry.revno], clear=1)"
 
67
                                                tal:content="python:util.trunc(entry.revno)"></a>
 
68
                </td>            
 
69
                <td class="expcell">
 
70
                    <div class="expand_revisioninfo">
 
71
                        <!-- So, this is interesting. I'm using "alt" to have the correct URL for the image of the expanded icon
 
72
                             and "title" tag for the contracted URL of the image. This is a bit of a hack, but it's better than
 
73
                             other approaches I tried  :)  -->
 
74
                        <img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png');
 
75
                                             alt python:branch.static_url('/static/images/treeExpanded.png');
 
76
                                             title python:branch.static_url('/static/images/treeCollapsed.png')" 
 
77
                             class="expand_icon" />
 
78
                    </div>
 
79
                </td>
 
80
                <td class="summcell"><div tal:attributes="class string:short_description">
 
81
                                        <a tal:attributes="title python:'Show revision '+entry.revno;
 
82
                                                           href  python:url(['/revision', entry.revno], clear=1);
 
83
                                                           class string:link"
 
84
                                           tal:content="entry/short_comment"></a>
 
85
                                     </div>
 
86
                                     <div tal:attributes="class string:long_description;
 
87
                                                          style string:display:none">
 
88
                                        <a tal:attributes="title python:'Show revision '+entry.revno;
 
89
                                                           href  python:url(['/revision', entry.revno], clear=1);
 
90
                                                           class string:link"
 
91
                                           tal:content="entry/comment"></a>
 
92
                                     </div>
 
93
                                <div class="revisioninfo" style="display:none;">
 
94
                                    <ul class="expandrev">
 
95
                                        <li class="mfrom" tal:repeat="parent python:entry.parents[1:]">
 
96
                                            <span class="revnolink">
 
97
                                                <a tal:attributes="href python:url(['/changes', parent.revno])"
 
98
                                                   tal:content="parent/revno"></a>
 
99
                                            </span>
 
100
                                            <a tal:attributes="href python:url(['/changes'], start_revid=parent.revno)"
 
101
                                               tal:content="python:'(' + parent.branch_nick + ')'"
 
102
                                                title="Show history" class="link"></a>
 
103
                                        </li>
 
104
                                        <li class="mto" tal:repeat="merge_point entry/merge_points">
 
105
                                            <a tal:attributes="href python:url(['/changes'], start_revid=merge_point.revno)"
 
106
                                               tal:content="python:revno_with_nick(merge_point)"
 
107
                                               title="Show history" class="link"></a>
 
108
                                        </li>
 
109
                                        <li class="committerli" tal:content="python:util.hide_email(entry.author)"></li>
 
110
                                        <tal:block content="structure python:file_change_summary(url, entry, modified_file_link_log)" />
 
111
                                    </ul>
 
112
                                </div>
 
113
                </td>
 
114
                <td tal:content="python:util.trunc(util.hide_email(entry.author), 20)"
 
115
                    class="autcell"></td>
 
116
                <td class="date">
 
117
                    <span tal:attributes="title python:util.date_time(entry.date)"
 
118
                          tal:content="python:util._approximatedate(entry.date)"></span>
 
119
                </td>
 
120
                <td class="diffr"><a tal:attributes="title python:'Show diff at revision '+entry.revno;
 
121
                                                     href python:url(['/revision', entry.revno], clear=1)">
 
122
                                  <img tal:attributes="src python:branch.static_url('/static/images/ico_diff.gif')" alt="Diff" /></a></td>
 
123
                <td class="downr"><a tal:attributes="href python:branch.url(['/files', entry.revno]);
 
124
                                                     title string:Files at revision ${entry/revno}">
 
125
                                   <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
 
126
                                                        alt string:Files" /></a>
 
127
                </td>
165
128
            </tr>
166
129
          </tal:block>
167
130
        </table>
168
131
 
169
 
        <div tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
170
 
             class="bar">
171
 
          <table>
172
 
            <tr>
173
 
              <td class="buttons">
174
 
                <a tal:condition="navigation/prev_page_revid"
175
 
                   tal:attributes="href navigation/prev_page_url">
176
 
                  &lt;&lt; page
177
 
                </a>
178
 
              </td>
179
 
              <td class="rbuttons" align="right">
180
 
                <a tal:condition="navigation/next_page_revid"
181
 
                   tal:attributes="href navigation/next_page_url">
182
 
                  page &gt;&gt;
183
 
                </a>
184
 
              </td>
185
 
            </tr>
186
 
          </table>
187
 
        </div>
 
132
        <ul tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
 
133
            id="pages">
 
134
            <li tal:condition="navigation/prev_page_revid" 
 
135
                class="previous">
 
136
                <a tal:attributes="href navigation/prev_page_url">&laquo; Previous</a>
 
137
            </li>
 
138
            <!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them,
 
139
                        so some magic has to be done to just show the previous and next N page numbers
 
140
 
 
141
            <li class="active">1</li>
 
142
            <tal:block tal:repeat="page_number python:range(navigation.page_count)">
 
143
            <li><a href="#"
 
144
                   tal:content="page_number"></a></li>
 
145
               </tal:block>-->
 
146
            <li tal:condition="navigation/next_page_revid"
 
147
                class="next">
 
148
                <a tal:attributes="href navigation/next_page_url">Next &raquo;</a>
 
149
            </li>
 
150
        </ul>
 
151
 
188
152
      </div>
189
153
    </body>
190
154
  </html>