|
|
Choosing A Webhost: |
[mb-commits] r8231 - in mb_server/branches/RELEASE_20060712-BRANCH/htdocs: : msg#00234audio.musicbrainz.cvs
Author: keschte Date: 2006-07-20 22:24:11 +0000 (Thu, 20 Jul 2006) New Revision: 8231 Modified: mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/browse/pageselector mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/moderatepage mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/editing.css mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/framework.css Log: nobody can say i haven't tried. converted css layout of the page selector to blind tables since they wrapped irregularly on firefox. moved the page selector to the top of the browse edits page, like inhouseuk suggested. Modified: mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/browse/pageselector =================================================================== --- mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/browse/pageselector 2006-07-20 00:23:35 UTC (rev 8230) +++ mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/browse/pageselector 2006-07-20 22:24:11 UTC (rev 8231) @@ -84,45 +84,53 @@ </form></td> <td class="list"> + + <table class="selectorbuttons"> + <tr> + <%perl> if ($index > 0) { - $m->out(sprintf qq!<a href="%soffset=0" title="Go to first page"><<</a>!, encode_entities($urlqs)); - $m->out(sprintf qq!<a href="%soffset=%d" title="Go to previous page"><</a>!, encode_entities($urlqs), ($index - 1) * $pagesize); + $m->out(sprintf qq!<td><a href="%soffset=0" title="Go to first page">«</a></td>!, encode_entities($urlqs)); + $m->out(sprintf qq!<td><a href="%soffset=%d" title="Go to previous page"><</a></td>!, encode_entities($urlqs), ($index - 1) * $pagesize); } else { - $m->out(qq!<span class="inactive" title="Not available"><<</span>!); - $m->out(qq!<span class="inactive" title="Not available"><</span>!); + $m->out(qq!<td class="inactive" title="Not available"><span>«</span></td>!); + $m->out(qq!<td class="inactive" title="Not available"><span><</span></td>!); } for my $i ($start .. $end) { if ($i != $index) { - $m->out(sprintf qq!<a href="%soffset=%d" title="Go to page">%s</a>!, + $m->out(sprintf qq!<td><a href="%soffset=%d" title="Go to page">%s</a></td>!, encode_entities($urlqs), ($i) * $pagesize, ($i + 1)); } else { - $m->out(qq!<span class="current">! . ($i + 1) . "</span>"); + $m->out(qq!<td class="current"><span>! . ($i + 1) . "</span></td>"); } } if ($index < $pagecount - 1) { - $m->out(sprintf qq!<a href="%soffset=%d" title="Go to next page">></a>!, encode_entities($urlqs), ($index + 1) * $pagesize); - $m->out(sprintf qq!<a href="%soffset=%d" title="Go to last page">>></a>!, encode_entities($urlqs), ($pagecount - 1) * $pagesize); + $m->out(sprintf qq!<td><a href="%soffset=%d" title="Go to next page">></a></td>!, encode_entities($urlqs), ($index + 1) * $pagesize); + $m->out(sprintf qq!<td><a href="%soffset=%d" title="Go to last page">»</a></td>!, encode_entities($urlqs), ($pagecount - 1) * $pagesize); } else { - $m->out(qq!<span class="inactive" title="Not available">>></span>!); - $m->out(qq!<span class="inactive" title="Not available">></span>!); + $m->out(qq!<td class="inactive" title="Not available"><span>></span></td>!); + $m->out(qq!<td class="inactive" title="Not available"><span>»</span></td>!); } </%perl> -</td></tr></table> + </tr> + </table> + </td> + </tr> + </table> %# vi: set ts=4 sw=4 ft=mason : Modified: mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/moderatepage =================================================================== --- mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/moderatepage 2006-07-20 00:23:35 UTC (rev 8230) +++ mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/moderatepage 2006-07-20 22:24:11 UTC (rev 8231) @@ -78,6 +78,23 @@ <& /comp/sidebar-notitle, pagetitle => "Browse edits" &> <& /comp/tablebegin, title => "Browse edits" &> +% if (defined $total_mods and +% $total_mods-$offset > $max_items || $offset > 0) +% { + +% # aligning the browse controls with the rest of the items. + <div style="margin-left: 0px;"> + <& /comp/browse/pageselector, + url => "/mod/search/results.html", + args => $args, + offset => $offset, + pagesize => $max_items, + numitems => $total_mods, + &> + </div> + +% } + <table class="formstyle"> <tr> <td class="label"> @@ -135,23 +152,7 @@ </tr> </table> -% if (defined $total_mods and -% $total_mods-$offset > $max_items || $offset > 0) -% { -% # aligning the browse controls with the rest of the items. - <div style="margin-left: 169px;"> - <& /comp/browse/pageselector, - url => "/mod/search/results.html", - args => $args, - offset => $offset, - pagesize => $max_items, - numitems => $total_mods, - &> - </div> - -% } - <div id="showedit::insertjs"></div> <& /comp/tableend &> Modified: mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/editing.css =================================================================== --- mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/editing.css 2006-07-20 00:23:35 UTC (rev 8230) +++ mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/editing.css 2006-07-20 22:24:11 UTC (rev 8231) @@ -253,6 +253,7 @@ border: 1px solid #000; padding-left: 4px; padding-right: 4px; + white-space: nowrap; } tr.showedit td.notes table { Modified: mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/framework.css =================================================================== --- mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/framework.css 2006-07-20 00:23:35 UTC (rev 8230) +++ mb_server/branches/RELEASE_20060712-BRANCH/htdocs/css/framework.css 2006-07-20 22:24:11 UTC (rev 8231) @@ -507,7 +507,7 @@ table.pageselector td.jump { white-space: nowrap; - padding-right: 40px; + padding-right: 60px; } table.pageselector td.jump table { @@ -520,37 +520,42 @@ padding-left: 40px; } -table.pageselector td.list a, -table.pageselector td.list span { - float: left; +table.selectorbuttons { + border-collapse: collapse; + padding: 0px; +} + +table.selectorbuttons a, +table.selectorbuttons span { display: block; margin: 0px 2px; border: 1px solid #333; - padding: 0px 3px; + padding: 1px 4px; font-size: 11px; color: #333; + background-color: #fff; } -table.pageselector td.list a, -table.pageselector td.list a:hover, -table.pageselector td.list a:visited, -table.pageselector td.list a:active { +table.selectorbuttons td a, +table.selectorbuttons td a:hover, +table.selectorbuttons td a:visited, +table.selectorbuttons td a:active { text-decoration: none; } -table.pageselector td.list a:hover { +table.selectorbuttons td a:hover { background-color: #ffba58; color: #000; text-decoration: none; } -table.pageselector td.list span.inactive { +table.selectorbuttons td.inactive span { color: #999; background-color: #eee; border: 1px solid #999; } -table.pageselector td.list span.current { +table.selectorbuttons td.current span { background-color: #ffba58; color: #000; font-weight: bold;
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [mb-commits] r8230 - mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/layout, root |
|---|---|
| Next by Date: | [mb-commits] r8232 - mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp, root |
| Previous by Thread: | [mb-commits] r8230 - mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp/layout, root |
| Next by Thread: | [mb-commits] r8232 - mb_server/branches/RELEASE_20060712-BRANCH/htdocs/comp, root |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |