Skip to content

Commit 47db293

Browse files
author
Richard Jones
committed
nicer index navigation
1 parent 0d14f12 commit 47db293

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Feature:
6969
- added Windows Service mode for roundup-server when daemonification is
7070
attempted on Windows.
7171
- sort HTMLClass.properties results by name (sf feature 724738)
72+
- nicer index navigation (sf feature 676866)
7273

7374
Fixed:
7475
- applied unicode patch. All data is stored in utf-8. Incoming messages

templates/classic/html/issue.index.html

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,27 @@ <h2>List of issues</h2>
5656
</tr>
5757

5858
</tal:block>
59-
<tr class="navigation" tal:define="colspan python:len(request.columns)">
60-
<th tal:attributes="colspan python:colspan/2">
61-
<a tal:define="prev batch/previous" tal:condition="prev"
62-
tal:attributes="href python:request.indexargs_url(request.classname,
63-
{':startwith':prev.first, ':pagesize':prev.size})">&lt;&lt; previous</a>
64-
&nbsp;
65-
</th>
66-
<th tal:attributes="colspan python:colspan/2 + colspan%2">
67-
<a tal:define="next batch/next" tal:condition="next"
68-
tal:attributes="href python:request.indexargs_url(request.classname,
69-
{':startwith':next.first, ':pagesize':next.size})">next &gt;&gt;</a>
70-
&nbsp;
59+
60+
<tr tal:condition="batch">
61+
<th tal:attributes="colspan python:len(request.columns)">
62+
<table width="100%">
63+
<tr class="navigation">
64+
<th>
65+
<a tal:define="prev batch/previous" tal:condition="prev"
66+
tal:attributes="href python:request.indexargs_href(request.classname,
67+
{':startwith':prev.first, ':pagesize':prev.size})">&lt;&lt; previous</a>
68+
&nbsp;
69+
</th>
70+
<th tal:content="python: '%d...%d out of %d'%(batch.start,
71+
batch.start+batch.length-1, batch.sequence_length)">current</th>
72+
<th>
73+
<a tal:define="next batch/next" tal:condition="next"
74+
tal:attributes="href python:request.indexargs_href(request.classname,
75+
{':startwith':next.first, ':pagesize':next.size})">next &gt;&gt;</a>
76+
&nbsp;
77+
</th>
78+
</tr>
79+
</table>
7180
</th>
7281
</tr>
7382
</table>

templates/classic/html/style.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,19 @@ table.list td {
134134
}
135135

136136
table.list tr.navigation th {
137-
text-align: right;
137+
width: 33%;
138+
border-style: hidden;
139+
text-align: center;
140+
}
141+
table.list tr.navigation td {
142+
border: none
138143
}
139144
table.list tr.navigation th:first-child {
140145
text-align: left;
141146
}
147+
table.list tr.navigation th:last-child {
148+
text-align: right;
149+
}
142150

143151

144152
/* style for message displays */
@@ -345,3 +353,4 @@ table.otherinfo th {
345353
font-weight: bold;
346354
text-align: left;
347355
}
356+
/* SHA: 1c2bdea9d2295da079168403292e5c9039bb5088 */

0 commit comments

Comments
 (0)