Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/65002


Change subject: Remove "Needs photo" text
......................................................................

Remove "Needs photo" text

Waiting on new asset for needs photo icon that is more explicit
and renders this text obsolete

Change-Id: If61aa823a581ed3cf938624e780d3d27f30003c4
---
M includes/Resources.php
M includes/specials/SpecialMobileWatchlist.php
M javascripts/specials/nearby.js
M templates/articleList.html
4 files changed, 0 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/02/65002/1

diff --git a/includes/Resources.php b/includes/Resources.php
index 0880311..8c397db 100644
--- a/includes/Resources.php
+++ b/includes/Resources.php
@@ -540,7 +540,6 @@
                        'mobile-frontend-nearby-lookup-ui-error',
                        'mobile-frontend-nearby-noresults',
                        'mobile-frontend-nearby-link',
-                       'mobile-frontend-needs-photo',
                ),
                'scripts' => array(
                        'javascripts/specials/nearby.js',
diff --git a/includes/specials/SpecialMobileWatchlist.php 
b/includes/specials/SpecialMobileWatchlist.php
index ab35030..2fd0158 100644
--- a/includes/specials/SpecialMobileWatchlist.php
+++ b/includes/specials/SpecialMobileWatchlist.php
@@ -496,18 +496,12 @@
                $lastModified = wfMessage( 
'mobile-frontend-watchlist-modified', $ts->getHumanTimestamp() )->text();
 
                $thumb = $this->renderThumb( $row );
-               if ( isset( $thumb['needsPhoto'] ) && $thumb['needsPhoto'] && 
MobileContext::singleton()->isBetaGroupMember() ) {
-                       $cta = Html::element( 'div', array( 'class' => 'info' 
), wfMessage( 'mobile-frontend-needs-photo' )->text() );
-               } else {
-                       $cta = '';
-               }
 
                $output->addHtml(
                        Html::openElement( 'li', array( 'title' => $titleText ) 
) .
                        Html::openElement( 'a', array( 'href' => 
$title->getLocalUrl(), 'class' => 'title' ) ) .
                        $thumb['html'] .
                        Html::element( 'h2', array(), $titleText ).
-                       $cta .
                        Html::element( 'div', array( 'class' => 'info' ), 
$lastModified ) .
                        Html::closeElement( 'a' ) .
                        Html::closeElement( 'li' )
diff --git a/javascripts/specials/nearby.js b/javascripts/specials/nearby.js
index 8530808..c7241d7 100644
--- a/javascripts/specials/nearby.js
+++ b/javascripts/specials/nearby.js
@@ -115,7 +115,6 @@
                                page.pageimageClass = thumb.width > 
thumb.height ? 'listThumbH' : 'listThumbV';
                        } else {
                                page.pageimageClass = 'needsPhoto';
-                               page.cta = mw.msg( 
'mobile-frontend-needs-photo' );
                        }
                        page.anchor = 'item_' + i;
                        page.url = M.history.getArticleUrl( page.title );
diff --git a/templates/articleList.html b/templates/articleList.html
index 1f036f6..68f4278 100644
--- a/templates/articleList.html
+++ b/templates/articleList.html
@@ -7,7 +7,6 @@
                <a href="{{url}}" class="title" name="{{anchor}}">
                        <div class="listThumb {{pageimageClass}}" 
style="{{listThumbStyleAttribute}}"></div>
                        <h2>{{title}}</h2>
-                       {{#cta}}<div class="info">{{cta}}</div>{{/cta}}
                        <div class="info proximity">{{proximity}}</div>
                </a>
        </li>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If61aa823a581ed3cf938624e780d3d27f30003c4
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

Reply via email to