Jdlrobson has uploaded a new change for review.

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


Change subject: Story 757: Add text to upload CTA in lists of articles
......................................................................

Story 757: Add text to upload CTA in lists of articles

For articles which have no images add the tagline
'Visit this page to add an image' above the distance

Makes call to action more explicit

Change-Id: I64e7ba0e831d9d954749fd5b4a6d3691168d95bb
---
M MobileFrontend.i18n.php
M MobileFrontend.php
M javascripts/specials/nearby.js
3 files changed, 4 insertions(+), 0 deletions(-)


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

diff --git a/MobileFrontend.i18n.php b/MobileFrontend.i18n.php
index c24cf3e..1e479a4 100644
--- a/MobileFrontend.i18n.php
+++ b/MobileFrontend.i18n.php
@@ -141,6 +141,7 @@
        'mobile-frontend-nearby-refresh' => 'We found a more accurate location 
for you. Click here to refresh the list of nearby pages',
        'mobile-frontend-nearby-error' => 'An unexpected error occurred whilst 
trying to find pages nearby',
        'mobile-frontend-nearby-link' => 'Read this page in full',
+       'mobile-frontend-needs-photo' => 'Visit this page to add an image',
 
        // image donation
        'mobile-frontend-donate-image-login' => 'You must be logged in to see 
your uploads.',
@@ -491,6 +492,7 @@
        'mobile-frontend-nearby-refresh' => 'Text of toast notification message 
shown when user moved and the list can be refreshed.',
        'mobile-frontend-nearby-error' => 'Text of generic error message when 
querying geodata api',
        'mobile-frontend-nearby-link' => 'Text of link that takes user to full 
page',
+       'mobile-frontend-needs-photo' => 'Visit this page to add an image',
        'mobile-frontend-donate-image-login' => 'Title for 
[[Special:UserLogin]] when being redirected to [[Special:Uploads]].
 
 Used when the user is not logged in.
diff --git a/MobileFrontend.php b/MobileFrontend.php
index 1f09d97..61b8501 100644
--- a/MobileFrontend.php
+++ b/MobileFrontend.php
@@ -633,6 +633,7 @@
                'mobile-frontend-nearby-noresults',
                'mobile-frontend-ajax-preview-loading',
                'mobile-frontend-nearby-link',
+               'mobile-frontend-needs-photo',
        ),
        'styles' => array(
                'stylesheets/specials/watchlist.css',
diff --git a/javascripts/specials/nearby.js b/javascripts/specials/nearby.js
index 982db37..f07a32c 100644
--- a/javascripts/specials/nearby.js
+++ b/javascripts/specials/nearby.js
@@ -119,6 +119,7 @@
                                page.pageimageClass = thumb.width > 
thumb.height ? 'listThumbH' : 'listThumbV';
                        } else {
                                page.pageimageClass = 'needsPhoto';
+                               page.cta = mw.msg( 
'mobile-frontend-needs-photo' );
                        }
                        page.url = M.history.getArticleUrl( page.title );
                        if ( page.coordinates ) { // FIXME: protect against bug 
47133 (remove when resolved)

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

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