From 6e5191290374cc40ee77b45de83ac5402bff6d72 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 12 Oct 2006 04:47:01 +0000 Subject: [PATCH] * (bug 6868) Un-hardcode section edit link style --- RELEASE-NOTES | 1 + includes/Linker.php | 18 ++---------------- skins/common/common.css | 5 ++++- skins/common/common_rtl.css | 4 ++++ skins/monobook/main.css | 5 +++++ skins/monobook/rtl.css | 4 ++++ 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d6808543f0..b3e037f746 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -41,6 +41,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN This isn't a good permanent fix. * (bug 6918) Stopped borders and backgrounds from showing through floated tables in Monobook +* (bug 6868) Un-hardcode section edit link style == Languages updated == diff --git a/includes/Linker.php b/includes/Linker.php index d34971fff9..bc5fb64ba8 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1046,14 +1046,7 @@ class Linker { $editurl = '§ion='.$section; $url = $this->makeKnownLinkObj( $title, wfMsg('editsection'), 'action=edit'.$editurl ); - if( $wgContLang->isRTL() ) { - $farside = 'left'; - $nearside = 'right'; - } else { - $farside = 'right'; - $nearside = 'left'; - } - return "
[".$url."]
"; + return "
[".$url."]
"; } @@ -1069,14 +1062,7 @@ class Linker { $hint = ( $hint=='' ) ? '' : ' title="' . wfMsgHtml( 'editsectionhint', htmlspecialchars( $hint ) ) . '"'; $url = $this->makeKnownLinkObj( $nt, wfMsg('editsection'), 'action=edit'.$editurl, '', '', '', $hint ); - if( $wgContLang->isRTL() ) { - $farside = 'left'; - $nearside = 'right'; - } else { - $farside = 'right'; - $nearside = 'left'; - } - return "
[".$url."]
"; + return "
[".$url."]
"; } /** diff --git a/skins/common/common.css b/skins/common/common.css index e630b77e8c..57619f0d21 100644 --- a/skins/common/common.css +++ b/skins/common/common.css @@ -314,6 +314,10 @@ li span.deleted { font-style: italic; } +div.editsection { + float: right; + margin-left: 5px; +} /* Classes for EXIF data display */ table.mw_metadata { @@ -429,4 +433,3 @@ table.multipageimage td { .imagelist .TablePager_col_links { background-color: #eeeeff } .imagelist .TablePager_col_img_description { white-space: normal } .imagelist th.TablePager_sort { background-color: #ccccff } - diff --git a/skins/common/common_rtl.css b/skins/common/common_rtl.css index 8f50b2abb7..a5ba2d7bcb 100644 --- a/skins/common/common_rtl.css +++ b/skins/common/common_rtl.css @@ -13,3 +13,7 @@ fieldset.operaprefsection { margin-right: 1.4em; margin-left: 0.4em; } +div.editsection { + float: left; + margin-right: 5px; +} \ No newline at end of file diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 07efa09dea..6b57ed9e6b 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -129,6 +129,11 @@ h4 { font-size: 116%; } h5 { font-size: 100%; } h6 { font-size: 80%; } +div.editsection { + float: right; + margin-left: 5px; +} + ul { line-height: 1.5em; list-style-type: square; diff --git a/skins/monobook/rtl.css b/skins/monobook/rtl.css index 91e2fb3702..bf88e4349d 100644 --- a/skins/monobook/rtl.css +++ b/skins/monobook/rtl.css @@ -41,6 +41,10 @@ html>body .portlet { float: right; clear: right; } +div.editsection { + float: left; + margin-right: 5px; +} /* recover IEMac (might be fine with the float, but usually it's close to IE */ *>body .portlet { float: none; -- 2.20.1