~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.pt

  • Committer: Matt Nordhoff
  • Date: 2009-04-18 06:30:47 UTC
  • mto: (389.2.2 pep8-2009-10)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20090418063047-v68pe52izncnylze
Clean up some unused imports and syntax things.

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