Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Make the table generated by /test-rename-list sortable. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
80ec9d532c81b58abdc2c059d98886dd |
User & Date: | drh 2018-05-05 17:47:21.010 |
Context
2018-05-05
| ||
19:02 | Further enhance the test-rename-list to include a title with the number of renames and the number of associated check-ins. ... (check-in: b6aa2a23 user: drh tags: trunk) | |
17:47 | Make the table generated by /test-rename-list sortable. ... (check-in: 80ec9d53 user: drh tags: trunk) | |
17:37 | Enhance the /test-rename-list page to show only distinct rename operations by default, with an option to show them all with the all=1 query parameter. ... (check-in: 98fe1d88 user: drh tags: trunk) | |
Changes
Changes to src/path.c.
︙ | ︙ | |||
599 600 601 602 603 604 605 | db_prepare(&q, "%s", zRenameQuery/*safe-for-%s*/); style_submenu_element("Distinct", "%R/test-rename-list"); }else{ style_header("List Of Distinct File Name Changes"); db_prepare(&q, "%s", zDistinctRenameQuery/*safe-for-%s*/); style_submenu_element("All", "%R/test-rename-list?all"); } | > | | | | > | 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 | db_prepare(&q, "%s", zRenameQuery/*safe-for-%s*/); style_submenu_element("Distinct", "%R/test-rename-list"); }else{ style_header("List Of Distinct File Name Changes"); db_prepare(&q, "%s", zDistinctRenameQuery/*safe-for-%s*/); style_submenu_element("All", "%R/test-rename-list?all"); } @ <table class='sortable' data-column-types='tttt' data-init-sort='1'\ @ border="1" cellpadding="2" cellspacing="0"> @ <thead><tr><th>Date & Time</th> @ <th>Old Name</th> @ <th>New Name</th> @ <th>Check-in</th></tr></thead><tbody> while( db_step(&q)==SQLITE_ROW ){ const char *zDate = db_column_text(&q, 0); const char *zOld = db_column_text(&q, 1); const char *zNew = db_column_text(&q, 2); const char *zUuid = db_column_text(&q, 3); @ <tr> @ <td>%z(href("%R/timeline?c=%t",zDate))%s(zDate)</a></td> @ <td>%z(href("%R/finfo?name=%t",zOld))%h(zOld)</a></td> @ <td>%z(href("%R/finfo?name=%t",zNew))%h(zNew)</a></td> @ <td>%z(href("%R/info/%!S",zUuid))%S(zUuid)</a></td></tr> } @ </tbody></table> db_finalize(&q); style_table_sorter(); style_footer(); } |