Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[mb-commits] r8231 - in mb_server/branches/RELEASE_20060712-BRANCH/htdocs: : msg#00234

audio.musicbrainz.cvs

Subject: [mb-commits] r8231 - in mb_server/branches/RELEASE_20060712-BRANCH/htdocs: comp comp/browse css

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">&lt;&lt;</a>!, encode_entities($urlqs));
- $m->out(sprintf qq!<a href="%soffset=%d" title="Go to previous
page">&lt;</a>!, encode_entities($urlqs), ($index - 1) * $pagesize);
+ $m->out(sprintf qq!<td><a href="%soffset=0" title="Go to first
page">&laquo;</a></td>!, encode_entities($urlqs));
+ $m->out(sprintf qq!<td><a href="%soffset=%d" title="Go to
previous page">&lt;</a></td>!, encode_entities($urlqs), ($index - 1) *
$pagesize);
}
else
{
- $m->out(qq!<span class="inactive" title="Not
available">&lt;&lt;</span>!);
- $m->out(qq!<span class="inactive" title="Not
available">&lt;</span>!);
+ $m->out(qq!<td class="inactive" title="Not
available"><span>&laquo;</span></td>!);
+ $m->out(qq!<td class="inactive" title="Not
available"><span>&lt;</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">&gt;</a>!, encode_entities($urlqs), ($index + 1) * $pagesize);
- $m->out(sprintf qq!<a href="%soffset=%d" title="Go to last
page">&gt;&gt;</a>!, encode_entities($urlqs), ($pagecount - 1) * $pagesize);
+ $m->out(sprintf qq!<td><a href="%soffset=%d" title="Go to next
page">&gt;</a></td>!, encode_entities($urlqs), ($index + 1) * $pagesize);
+ $m->out(sprintf qq!<td><a href="%soffset=%d" title="Go to last
page">&raquo;</a></td>!, encode_entities($urlqs), ($pagecount - 1) * $pagesize);
}
else
{
- $m->out(qq!<span class="inactive" title="Not
available">&gt;&gt;</span>!);
- $m->out(qq!<span class="inactive" title="Not
available">&gt;</span>!);
+ $m->out(qq!<td class="inactive" title="Not
available"><span>&gt;</span></td>!);
+ $m->out(qq!<td class="inactive" title="Not
available"><span>&raquo;</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>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation