1. Robot Mirror
  2. bugs.python.org

Commits

ezio.melotti  committed 6115c67

#406: fix a bug in the colspan value getting rid of a useless table.

  • Participants
  • Parent commits 45870f1
  • Branches default

Comments (0)

Files changed (2)

File html/issue.index.html

View file
   </tr>
 
  </tal:block>
+</table>
 
- <metal:index define-macro="batch-footer">
- <tr tal:condition="batch">
-  <th tal:attributes="colspan python:len(request.columns)">
-   <table width="100%">
-    <tr class="navigation">
-     <th>
-      <a tal:define="prev batch/previous" tal:condition="prev"
-         tal:attributes="href python:request.indexargs_url(request.classname,
-         {'@startwith':prev.first, '@pagesize':prev.size})"
-         i18n:translate="">&lt;&lt; previous</a>
-      &nbsp;
-     </th>
-     <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
-     />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
-     /> out of <span tal:replace="batch/sequence_length" i18n:name="total"
-     /></th>
-     <th>
-      <a tal:define="next batch/next" tal:condition="next"
-         tal:attributes="href python:request.indexargs_url(request.classname,
-         {'@startwith':next.first, '@pagesize':next.size})"
-         i18n:translate="">next &gt;&gt;</a>
-      &nbsp;
-     </th>
-    </tr>
-   </table>
-  </th>
- </tr>
- </metal:index>
-</table>
+<metal:index define-macro="batch-footer">
+ <div tal:condition="batch" class="navigation">
+     <span>
+         <a tal:define="prev batch/previous" tal:condition="prev"
+            tal:attributes="href python:request.indexargs_url(request.classname,
+            {'@startwith':prev.first, '@pagesize':prev.size})"
+            i18n:translate="">&lt;&lt; previous</a>
+         &nbsp;
+     </span>
+     <span>
+         <span tal:replace="batch/start" name="start" />..
+         <span tal:replace="python: batch.start + batch.length -1" name="end"/> out of
+         <span tal:replace="batch/sequence_length" name="total"/>
+     </span>
+     <span>
+         <a tal:define="next batch/next" tal:condition="next"
+            tal:attributes="href python:request.indexargs_url(request.classname,
+            {'@startwith':next.first, '@pagesize':next.size})"
+            i18n:translate="">next &gt;&gt;</a>
+         &nbsp;
+     </span>
+   </div>
+</metal:index>
+
 
 <a tal:attributes="href python:request.indexargs_url('issue',
             {'@action':'export_csv'})" i18n:translate="">Download as CSV</a>

File html/style.css

View file
   empty-cells: show;
 }
 
-table.list tr.navigation th {
-  width: 33%;
-  border-style: hidden;
+div.navigation {
+  background-color: #e0e0e0;
+}
+
+div.navigation span {
+  display: block;
+  width: 33.33%;
+  float: left;
   text-align: center;
+  font-weight: bold;
+  color: #234764;
+  background-color: #e0e0e0;
 }
-table.list tr.navigation td {
-    border: none
-}
-table.list tr.navigation th:first-child {
+div.navigation span:first-child {
   text-align: left;
 }
-table.list tr.navigation th:last-child {
+div.navigation span:last-child {
   text-align: right;
 }