Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/55589
Change subject: Update code formatting ...................................................................... Update code formatting Change-Id: I5646c6cf69d1385ada6b64efc47413807735a32b --- M MainPage/Resources.php M MainPage/UserStats.php M MainPage/resources/css/ext.translate.mainpage.css M MainPage/specials/SpecialTwnMainPage.php 4 files changed, 10 insertions(+), 13 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/translatewiki refs/changes/89/55589/1 diff --git a/MainPage/Resources.php b/MainPage/Resources.php index 318996f..455ae2a 100644 --- a/MainPage/Resources.php +++ b/MainPage/Resources.php @@ -19,5 +19,5 @@ 'jquery.uls', 'ext.translate.statsbar', ), - 'position' =>'top', + 'position' => 'top', ) + $resourcePaths; diff --git a/MainPage/UserStats.php b/MainPage/UserStats.php index 4e63c96..273ab17 100644 --- a/MainPage/UserStats.php +++ b/MainPage/UserStats.php @@ -13,7 +13,7 @@ global $wgTranslateMessageNamespaces; $now = wfTimestamp( TS_UNIX ); - $weekago = $now - $days * 24 * 60 *60; + $weekago = $now - $days * 24 * 60 * 60; $ret = array(); @@ -75,7 +75,7 @@ global $wgTranslateMessageNamespaces; $now = wfTimestamp( TS_UNIX ); - $weekago = $now - $days * 24 * 60 *60; + $weekago = $now - $days * 24 * 60 * 60; $ret = array(); diff --git a/MainPage/resources/css/ext.translate.mainpage.css b/MainPage/resources/css/ext.translate.mainpage.css index 79aa352..ca2f9d0 100644 --- a/MainPage/resources/css/ext.translate.mainpage.css +++ b/MainPage/resources/css/ext.translate.mainpage.css @@ -14,8 +14,7 @@ } .twn-mainpage-title { /* @embed */ - background: transparent url('//translatewiki.net/static/logo.png') - no-repeat scroll left center; + background: transparent url('//translatewiki.net/static/logo.png') no-repeat scroll left center; /*FIXME: we need svgs too*/ background-size: 50px; height: 75px; @@ -37,8 +36,7 @@ .twn-mainpage-banner { min-height: 300px; - background: transparent url('../banners/dance.jpg') no-repeat scroll - left 40%; + background: transparent url('../banners/dance.jpg') no-repeat scroll left 40%; background-size: 100%; } @@ -141,7 +139,6 @@ padding: 10px; } - button.button { background-color: #E6E6E6; background-image: -webkit-linear-gradient(top, #f0f0f0, #e6e6e6); @@ -192,7 +189,7 @@ } .searchbox { - width : 100%; + width: 100%; } .search-label { diff --git a/MainPage/specials/SpecialTwnMainPage.php b/MainPage/specials/SpecialTwnMainPage.php index 18abe86..bac1ebe 100644 --- a/MainPage/specials/SpecialTwnMainPage.php +++ b/MainPage/specials/SpecialTwnMainPage.php @@ -31,7 +31,7 @@ $out->addModules( 'ext.translate.mainpage' ); $out->addHtml( $out->headElement( $this->getSkin() ) ); $out->addHTML( Html::openElement( 'div', array( - 'class' => 'grid twn-mainpage', + 'class' => 'grid twn-mainpage', ) ) ); $out->addHTML( $this->header() ); $out->addHTML( $this->banner() ); @@ -124,8 +124,8 @@ $out .= Html::rawElement( 'div', array( 'class' => 'project-content eight columns' ), Html::element( 'div', array( 'class' => 'row project-name' ), $group->getLabel( $this->getContext() ) ) . - Html::rawElement( 'div', array( 'class' => 'row project-stats' ), $statsbar->getHtml( $this->getContext() ) ) . - Html::rawElement( 'div', array( 'class' => 'row project-actions' ), "$translated% $proofread%" ) + Html::rawElement( 'div', array( 'class' => 'row project-stats' ), $statsbar->getHtml( $this->getContext() ) ) . + Html::rawElement( 'div', array( 'class' => 'row project-actions' ), "$translated% $proofread%" ) ); $out .= Html::closeElement( 'div' ); $out .= Html::closeElement( 'div' ); @@ -283,7 +283,7 @@ } public function userStats() { - $languageCode = $this->getLanguage()->getCode(); + $languageCode = $this->getLanguage()->getCode(); $languageName = TranslateUtils::getLanguageName( $languageCode ); $stale = 60 * 5; -- To view, visit https://gerrit.wikimedia.org/r/55589 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5646c6cf69d1385ada6b64efc47413807735a32b Gerrit-PatchSet: 1 Gerrit-Project: translatewiki Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits