Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/89134
Change subject: Separate activity and thanks section when no uploaded image
......................................................................
Separate activity and thanks section when no uploaded image
Bug: 55537
Change-Id: I9ac0cef95cfffd5ccf8f9ebecb69fd02fbcb3b91
---
M includes/specials/SpecialUserProfile.php
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/34/89134/1
diff --git a/includes/specials/SpecialUserProfile.php
b/includes/specials/SpecialUserProfile.php
index e5d5e94..7a05b55 100644
--- a/includes/specials/SpecialUserProfile.php
+++ b/includes/specials/SpecialUserProfile.php
@@ -83,13 +83,13 @@
->numParams( $count, $uploadCount )
->parse();
+ $lastUploadHtml = $this->getLastUpload();
+ $activityClassName = $lastUploadHtml? 'section
section-activity' : 'section section-activity section-end';
$html =
- Html::openElement( 'div', array( 'class' => 'section
section-activity' ) ) .
+ Html::openElement( 'div', array( 'class' =>
$activityClassName ) ) .
Html::openElement( 'p', array( 'class' => 'statement' )
) .
$msgContributions .
Html::closeElement( 'p' );
-
- $lastUploadHtml = $this->getLastUpload();
if ( $lastUploadHtml ) {
$html .= $lastUploadHtml;
--
To view, visit https://gerrit.wikimedia.org/r/89134
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ac0cef95cfffd5ccf8f9ebecb69fd02fbcb3b91
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits