Albert221 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/400260 )

Change subject: Add anchors to headings in CXStats
......................................................................

Add anchors to headings in CXStats

Bug: T116546
Change-Id: I8949bd06a31304df69a5fbb61eef6d17d399d2df
---
M modules/stats/ext.cx.stats.js
1 file changed, 14 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/60/400260/1

diff --git a/modules/stats/ext.cx.stats.js b/modules/stats/ext.cx.stats.js
index 17c22d9..b06be0c 100644
--- a/modules/stats/ext.cx.stats.js
+++ b/modules/stats/ext.cx.stats.js
@@ -248,7 +248,13 @@
                        ]
                );
 
-               this.$container.append( $( '<h2>' ).text( mw.msg( 
'cx-stats-published-translations-title' ) ) );
+               this.$container.append( $( '<h2>' ).html(
+                       $( '<a>' )
+                               .text( mw.msg( 
'cx-stats-published-translations-title' ) )
+                               .prop( 'href', mw.cx.siteMapper.getPageUrl(
+                                       'en', 'Special:ContentTranslation'
+                               ) )
+               ) );
                this.createTabs(
                        'cx-stats-published', [
                                {
@@ -263,7 +269,13 @@
                        true
                );
 
-               this.$container.append( $( '<h2>' ).text( mw.msg( 
'cx-stats-draft-translations-title' ) ) );
+               this.$container.append( $( '<h2>' ).html(
+                       $( '<a>' )
+                               .text( mw.msg( 
'cx-stats-draft-translations-title' ) )
+                               .prop( 'href', mw.cx.siteMapper.getPageUrl(
+                                       'en', 'Special:ContentTranslation'
+                               ) )
+               ) );
                this.createTabs(
                        'cx-stats-draft', [
                                {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8949bd06a31304df69a5fbb61eef6d17d399d2df
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Albert221 <[email protected]>

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

Reply via email to