Florianschmidtwelzow has uploaded a new change for review.
https://gerrit.wikimedia.org/r/143053
Change subject: [DO NOT MERGE] Enable keep logged in
......................................................................
[DO NOT MERGE] Enable keep logged in
Give the user the option to keep his login, when he use login with Google.
Bug: 67136
Change-Id: I680a35ca064bdbbee601759aaa4d64abaa37dafc
---
M GoogleLogin.hooks.php
1 file changed, 18 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GoogleLogin
refs/changes/53/143053/1
diff --git a/GoogleLogin.hooks.php b/GoogleLogin.hooks.php
index b3bc794..a13e4c2 100644
--- a/GoogleLogin.hooks.php
+++ b/GoogleLogin.hooks.php
@@ -36,18 +36,30 @@
$header = $tpl->get( 'header' );
$header .=
- Html::openelement( 'div', null) .
- Html::openelement( 'li', array(
- 'style' =>
'list-style:none;width:100%;',
- ) ) .
+ Html::openelement( 'div', array( 'class' =>
'mw-ui-vform' ) ) .
+ Html::openelement( 'div', array() ) .
+ Html::openElement(
+ 'label',
+ array( 'class' =>
'mw-ui-checkbox-label' )
+ ) .
+ Html::input(
+ 'google-keep-loggedin',
+ 'true',
+ 'checkbox'
+ ) .
+ ' ' .
+ wfMessage( 'userlogin-remembermypassword'
)->text() .
+ Html::closeElement( 'label' ) .
+ Html::closeelement( 'div') .
+ Html::openElement( 'div' ) .
Html::element( 'a', array(
'href' => Title::makeTitle( -1,
'GoogleLogin' )->getLocalUrl(),
'class' => 'mw-ui-button
mw-ui-destructive',
'style' => 'width:100%;'
), wfMessage( 'googlelogin' )
) .
- Html::closeelement( 'li' ) .
- Html::closeelement( 'div');
+ Html::closeElement( 'div' ) .
+ Html::closeElement( 'div' );
$tpl->set( 'header', $header );
}
--
To view, visit https://gerrit.wikimedia.org/r/143053
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I680a35ca064bdbbee601759aaa4d64abaa37dafc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GoogleLogin
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits