# HG changeset patch # User Paul Boddie # Date 1329771572 -3600 # Node ID 2c22a63305b0917017440cd770324cfe4efd4e2d # Parent fd46a82a317dc7edf80eb3299ad66569c7bd3916 Changed the presentation of appending columns to sort criteria. diff -r fd46a82a317d -r 2c22a63305b0 ImprovedTableParser.py --- a/ImprovedTableParser.py Mon Feb 20 21:38:00 2012 +0100 +++ b/ImprovedTableParser.py Mon Feb 20 21:59:32 2012 +0100 @@ -529,21 +529,15 @@ arrow = columnascending and down_arrow or up_arrow arrow_reverse = not columnascending and down_arrow or up_arrow - write(fmt.listitem(1, css_class="sortcolumn", style="list-style-type: none")) + write(fmt.listitem(1, css_class="appendcolumn")) # Pop-up element showing the column inserted before the sort column. - write(fmt.span(1, css_class="sortcolumn-container")) write(fmt.span(1, css_class="newsortcolumn")) - write(formatText(newlabel, request, fmt)) - + write_sort_link(write, request, fmt, table_name, sortcolumns, newlabel, "") write_sort_link(write, request, fmt, table_name, sortcolumns, arrow, "sortdirection") write_sort_link(write, request, fmt, table_name, sortcolumns_reverse, arrow_reverse, "sortdirection") - write(fmt.span(0)) - write(fmt.span(0)) - - write_sort_link(write, request, fmt, table_name, sortcolumns, _("..."), "") write(fmt.listitem(0)) diff -r fd46a82a317d -r 2c22a63305b0 css/improvedtableparser.css --- a/css/improvedtableparser.css Mon Feb 20 21:38:00 2012 +0100 +++ b/css/improvedtableparser.css Mon Feb 20 21:59:32 2012 +0100 @@ -40,7 +40,7 @@ .sortcolumns li { white-space: nowrap; - border-top: 2px solid #fff; + padding-top: 4px; } .sortcolumns a { @@ -50,6 +50,7 @@ .sortcolumn:hover { border-top: 2px solid #f66; + padding-top: 2px; } /* Column removal and inactive columns. */ @@ -94,3 +95,16 @@ color: #000; padding: 0.5em; } + +.appendcolumn { + list-style-type: none; +} + +.appendcolumn .newsortcolumn { + visibility: hidden; + display: inline-block; +} + +.appendcolumn:hover .newsortcolumn { + visibility: visible; +}