Paging links on special pages now have CSS classes and are greyed out by default...
authorLeon Weber <leon@users.mediawiki.org>
Sat, 24 May 2008 09:37:45 +0000 (09:37 +0000)
committerLeon Weber <leon@users.mediawiki.org>
Sat, 24 May 2008 09:37:45 +0000 (09:37 +0000)
RELEASE-NOTES
includes/Pager.php
skins/common/shared.css

index 33f455b..290eaa2 100644 (file)
@@ -127,6 +127,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13095) Search by first letters or digits in [[Special:Categories]]
 * Users moving a page can now move all subpages automatically as well
 * Sidebar is now cached for all languages
+* Paging links on special pages now have CSS classes and are greyed out by default
+  when disabled
 
 === Bug fixes in 1.13 ===
 
index 23591b2..bfbcb8c 100644 (file)
@@ -405,11 +405,17 @@ abstract class IndexPager implements Pager {
                $links = array();
                foreach ( $queries as $type => $query ) {
                        if ( $query !== false ) {
-                               $links[$type] = $this->makeLink( $linkTexts[$type], $queries[$type], $type );
+                               $links[$type] = "<span class='mw-pager-pagerlink-enabled'>" .
+                                       $this->makeLink( $linkTexts[$type], $queries[$type], $type ) .
+                                       "</span>";
                        } elseif ( isset( $disabledTexts[$type] ) ) {
-                               $links[$type] = $disabledTexts[$type];
+                               $links[$type] = "<span class='mw-pager-pagerlink-disabled'>" .
+                                       $disabledTexts[$type] .
+                                       "</span>";
                        } else {
-                               $links[$type] = $linkTexts[$type];
+                               $links[$type] = "<span class='mw-pager-pagerlink-disabled'>" .
+                                       $linkTexts[$type] .
+                                       "</span>";
                        }
                }
                return $links;
index 5aa8bfe..3362dc9 100644 (file)
@@ -244,3 +244,8 @@ h4.mw-specialpagesgroup {
 #shared-image-dup, #shared-image-conflict {
        font-style: italic;
 }
+
+span.mw-pager-pagerlink-disabled {
+        color: #aaa;
+}
+