Siebrand has uploaded a new change for review.

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


Change subject: Add alt attribute for img
......................................................................

Add alt attribute for img

Change-Id: I2023a600b6af4adf23687b18f9363dced8cd0922
---
M specials/SpecialTwnMainPage.php
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TwnMainPage 
refs/changes/15/63115/1

diff --git a/specials/SpecialTwnMainPage.php b/specials/SpecialTwnMainPage.php
index f3ff4d1..1a2b963 100644
--- a/specials/SpecialTwnMainPage.php
+++ b/specials/SpecialTwnMainPage.php
@@ -164,7 +164,14 @@
                        $proofread = round( 100 * $proofread / 
$stats[MessageGroupStats::TOTAL] );
                }
 
-               $image = Html::element( 'img', array( 'src' => $url, 'width' => 
'100%' ) );
+               $image = Html::element(
+                       'img',
+                       array(
+                               'src' => $url,
+                               'alt' => $group->getId(),
+                               'width' => '100%'
+                       )
+               );
                $label = htmlspecialchars( $group->getLabel( 
$this->getContext() ) );
                $stats = $statsbar->getHtml( $this->getContext() );
                $acts =

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2023a600b6af4adf23687b18f9363dced8cd0922
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TwnMainPage
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>

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

Reply via email to