From: Niklas Laxström Date: Tue, 2 Aug 2005 22:15:48 +0000 (+0000) Subject: New style allmessages table, remove some explicit background-colors X-Git-Tag: 1.6.0~2070 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=36aacbebcb6392eda5b3c3752a338a316e3b8a8d;p=lhc%2Fweb%2Fwiklou.git New style allmessages table, remove some explicit background-colors --- diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index 56e128f37a..91975a8c89 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -96,12 +96,13 @@ function makeHTMLText( $messages ) { $mwnspace = $wgLang->getNsText( NS_MEDIAWIKI ); $mwtalk = $wgLang->getNsText( NS_MEDIAWIKI_TALK ); $txt = " - - - - - - +
" . wfMsg('allmessagesname') . "" . wfMsg('allmessagesdefault') . "" . wfMsg('allmessagescurrent') . "
+ + + + + + "; wfProfileIn( "$fname-check" ); @@ -132,7 +133,7 @@ function makeHTMLText( $messages ) { $titleObj =& Title::makeTitle( NS_MEDIAWIKI, $title ); $talkPage =& Title::makeTitle( NS_MEDIAWIKI_TALK, $title ); - $colorIt = ($m['statmsg'] == $m['msg']) ? " bgcolor=\"#f0f0ff\"" : " bgcolor=\"#ffe2e2\""; + $changed = ($m['statmsg'] != $m['msg']); $message = htmlspecialchars( $m['statmsg'] ); $mw = htmlspecialchars( $m['msg'] ); @@ -149,15 +150,32 @@ function makeHTMLText( $messages ) { $talkLink = $sk->makeBrokenLinkObj( $talkPage, htmlspecialchars( $talk ) ); } - $txt .= - " + + + + "; + } else { + + $txt .= + " + "; +$mw + + "; + + } } $txt .= "
" . wfMsgHtml('allmessagesname') . "" . wfMsgHtml('allmessagesdefault') . "
" . wfMsgHtml('allmessagescurrent') . "
- $pageLink
- $talkLink + if($changed) { + + $txt .= + "
+ $pageLink
$talkLink
- $message +$message +
+$mw +
+ $pageLink
$talkLink
- $mw -
"; wfProfileOut( "$fname-output" ); diff --git a/skins/common/common.css b/skins/common/common.css index d73d1399a7..3e9c30525d 100644 --- a/skins/common/common.css +++ b/skins/common/common.css @@ -354,3 +354,22 @@ table.exif td.spacer { background-color: #eeeeff; padding: 0.2em; } + +/* Allmessages table */ + +#allmessagestable th { + background-color: #b2b2ff; +} + +#allmessagestable tr.orig { + background-color: #ffe2e2; +} + +#allmessagestable tr.new { + background-color: #e2ffe2; +} + +#allmessagestable tr.def { + background-color: #f0f0ff; +} + diff --git a/skins/monobook/main.css b/skins/monobook/main.css index ff04c7de6e..ea2378d1a3 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -60,7 +60,6 @@ body { table { font-size: 100%; - background: white; color: black; } a { @@ -164,7 +163,6 @@ fieldset { line-height: 1.5em; } legend { - background: white; padding: .5em; font-size: 95%; } @@ -1187,3 +1185,23 @@ p.revision_saved { background-color: #eeeeff; padding: 0.2em; } + + +/* Allmessages table */ + +#allmessagestable th { + background-color: #b2b2ff; +} + +#allmessagestable tr.orig { + background-color: #ffe2e2; +} + +#allmessagestable tr.new { + background-color: #e2ffe2; +} + +#allmessagestable tr.def { + background-color: #f0f0ff; +} +