Mercurial > p > roundup > code
comparison doc/upgrading.txt @ 7992:1e9c16b079fa
fix: issue2551341 - if @columns missing from an index url, the group headers colspan property = 0
Fix packaged templates with fix for group headers not spaning the
whole table if @columns parameter is missing from the url.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 25 May 2024 22:57:44 -0400 |
| parents | fe0348bbe45b |
| children | 8e790efaabce |
comparison
equal
deleted
inserted
replaced
| 7991:c80a67be2aad | 7992:1e9c16b079fa |
|---|---|
| 353 | 353 |
| 354 It is also missing the ``solves`` field which is added to match the | 354 It is also missing the ``solves`` field which is added to match the |
| 355 schema. | 355 schema. |
| 356 | 356 |
| 357 `You can see the diff in the Sourceforge web interface <https://sourceforge.net/p/roundup/code/ci/54eb12cd3be143b079809795dcb2f813f75a691c/tree/share/roundup/templates/devel/html/task.index.html?diff=c95870b2bbab822def6066498a4ef8634e76e0b3>`_. | 357 `You can see the diff in the Sourceforge web interface <https://sourceforge.net/p/roundup/code/ci/54eb12cd3be143b079809795dcb2f813f75a691c/tree/share/roundup/templates/devel/html/task.index.html?diff=c95870b2bbab822def6066498a4ef8634e76e0b3>`_. |
| 358 | |
| 359 Make group headers span all columns (optional) | |
| 360 ---------------------------------------------- | |
| 361 | |
| 362 In a number of index pages a version of the following TAL command | |
| 363 appears:: | |
| 364 | |
| 365 <th tal:attributes="colspan python:len(request.columns)" class="group"> | |
| 366 | |
| 367 If the ``@columns`` parameter (aka request.columns) is not set, | |
| 368 all columns are shown. However the group header only spans the | |
| 369 first column. Changing this to read:: | |
| 370 | |
| 371 <th tal:attributes="colspan python:len(request.columns) or 100" class="group"> | |
| 372 | |
| 373 makes the group header span all the columns (if you have fewer | |
| 374 than 100 columns). All of the supplied templates hae been | |
| 375 upgraded with this change. `See issue 2551341 for details | |
| 376 <https://issues.roundup-tracker.org/issue2551341>`_. | |
| 377 | |
| 378 Note the jinja2 template has the same issue, but the development | |
| 379 team hasn't devised a solution. | |
| 358 | 380 |
| 359 Use @current_user in Searches (optional) | 381 Use @current_user in Searches (optional) |
| 360 ---------------------------------------- | 382 ---------------------------------------- |
| 361 | 383 |
| 362 You can create queries like: "My issues" by searching the ``creator`` | 384 You can create queries like: "My issues" by searching the ``creator`` |
