~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.pt

  • Committer: Michael Hudson
  • Date: 2009-03-04 22:19:00 UTC
  • mto: This revision was merged to the branch mainline in revision 294.
  • Revision ID: michael.hudson@canonical.com-20090304221900-30bfpls84lj1ciq3
pre-merge reident of changelog.pt

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