jenkins-bot has submitted this change and it was merged.

Change subject: Add content class to error pages
......................................................................


Add content class to error pages

Don't cramp the error message to the sides of the screen.

Change-Id: I0a110a979bfe716622d938f1f1deb23d77486e33
---
M includes/views/NoPublic.php
M includes/views/NotFound.php
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Robmoen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/views/NoPublic.php b/includes/views/NoPublic.php
index 5047d1f..ffacbb7 100644
--- a/includes/views/NoPublic.php
+++ b/includes/views/NoPublic.php
@@ -23,7 +23,7 @@
         * @inheritdoc
         */
        public function getHtml() {
-               $html = Html::openElement( 'div', array( 'class' => 'collection 
not-found' ) );
+               $html = Html::openElement( 'div', array( 'class' => 'collection 
not-found content' ) );
                $html .= Html::element( 'span', array( 'class' => 'mw-ui-anchor 
mw-ui-destructive' ),
                        wfMessage( 'gather-no-public-lists-description' 
)->text() );
                $html .= Html::closeElement( 'div' );
diff --git a/includes/views/NotFound.php b/includes/views/NotFound.php
index bab6e53..33ca35c 100644
--- a/includes/views/NotFound.php
+++ b/includes/views/NotFound.php
@@ -24,7 +24,7 @@
         */
        public function getHtml() {
                // FIXME: Showing generic not found error right now. Show user 
not found instead
-               $html = Html::openElement( 'div', array( 'class' => 'collection 
not-found' ) );
+               $html = Html::openElement( 'div', array( 'class' => 'collection 
not-found content' ) );
                $html .= Html::element( 'span', array( 'class' => 'mw-ui-anchor 
mw-ui-destructive' ),
                        wfMessage( 'mobile-frontend-generic-404-desc' )->text() 
);
                $html .= Html::closeElement( 'div' );

-- 
To view, visit https://gerrit.wikimedia.org/r/197948
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0a110a979bfe716622d938f1f1deb23d77486e33
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Robmoen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to