Mooeypoo has uploaded a new change for review.

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

Change subject: Wrap author name with <bdi> tags
......................................................................

Wrap author name with <bdi> tags

To make sure the author name is BDI isolated, wrap it with <bdi>
tags.

Bug: T106741
Change-Id: Ia5a9a915aea07bb4a93e917b919f8894a01c097c
---
M handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
M handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
M handlebars/compiled/flow_post.handlebars.php
M handlebars/flow_post_author.partial.handlebars
4 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/74/240274/1

diff --git a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
index 71dd19b..2a3bf8c 100644
--- a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
@@ -60,7 +60,7 @@
 '.$sp.''.((LCRun3::ifvar($cx, ((isset($in['links']) && is_array($in)) ? 
$in['links'] : null))) ? ''.((LCRun3::ifvar($cx, 
((isset($in['links']['userpage']) && is_array($in['links'])) ? 
$in['links']['userpage'] : null))) ? '                 <a 
href="'.htmlentities((string)((isset($in['links']['userpage']['url']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['url'] : null), 
ENT_QUOTES, 'UTF-8').'"
 '.$sp.'                           '.((!LCRun3::ifvar($cx, ((isset($in['name']) 
&& is_array($in)) ? $in['name'] : null))) ? 
'title="'.htmlentities((string)((isset($in['links']['userpage']['title']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['title'] : 
null), ENT_QUOTES, 'UTF-8').'"' : '').'
 '.$sp.'                           class="'.((!LCRun3::ifvar($cx, 
((isset($in['links']['userpage']['exists']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['exists'] : 
null))) ? 'new ' : '').'mw-userlink">
-'.$sp.'' : '').''.((LCRun3::ifvar($cx, ((isset($in['name']) && is_array($in)) 
? $in['name'] : null))) ? ''.htmlentities((string)((isset($in['name']) && 
is_array($in)) ? $in['name'] : null), ENT_QUOTES, 'UTF-8').'' : 
''.LCRun3::ch($cx, 'l10n', array(array('flow-anonymous'),array()), 
'encq').'').''.((LCRun3::ifvar($cx, ((isset($in['links']['userpage']) && 
is_array($in['links'])) ? $in['links']['userpage'] : null))) ? '</a>' : 
'').'<span class="mw-usertoollinks flow-pipelist">
+'.$sp.'' : '').''.((LCRun3::ifvar($cx, ((isset($in['name']) && is_array($in)) 
? $in['name'] : null))) ? '<bdi>'.htmlentities((string)((isset($in['name']) && 
is_array($in)) ? $in['name'] : null), ENT_QUOTES, 'UTF-8').'</bdi>' : 
''.LCRun3::ch($cx, 'l10n', array(array('flow-anonymous'),array()), 
'encq').'').''.((LCRun3::ifvar($cx, ((isset($in['links']['userpage']) && 
is_array($in['links'])) ? $in['links']['userpage'] : null))) ? '</a>' : 
'').'<span class="mw-usertoollinks flow-pipelist">
 '.$sp.'                        ('.((LCRun3::ifvar($cx, 
((isset($in['links']['talk']) && is_array($in['links'])) ? $in['links']['talk'] 
: null))) ? '<span><a 
href="'.htmlentities((string)((isset($in['links']['talk']['url']) && 
is_array($in['links']['talk'])) ? $in['links']['talk']['url'] : null), 
ENT_QUOTES, 'UTF-8').'"
 '.$sp.'                                    class="'.((!LCRun3::ifvar($cx, 
((isset($in['links']['talk']['exists']) && is_array($in['links']['talk'])) ? 
$in['links']['talk']['exists'] : null))) ? 'new ' : '').'"
 '.$sp.'                                    
title="'.htmlentities((string)((isset($in['links']['talk']['title']) && 
is_array($in['links']['talk'])) ? $in['links']['talk']['title'] : null), 
ENT_QUOTES, 'UTF-8').'">'.LCRun3::ch($cx, 'l10n', 
array(array('talkpagelinktext'),array()), 'encq').'</a></span>' : 
'').''.((LCRun3::ifvar($cx, ((isset($in['links']['contribs']) && 
is_array($in['links'])) ? $in['links']['contribs'] : null))) ? '<span><a 
href="'.htmlentities((string)((isset($in['links']['contribs']['url']) && 
is_array($in['links']['contribs'])) ? $in['links']['contribs']['url'] : null), 
ENT_QUOTES, 'UTF-8').'" 
title="'.htmlentities((string)((isset($in['links']['contribs']['title']) && 
is_array($in['links']['contribs'])) ? $in['links']['contribs']['title'] : 
null), ENT_QUOTES, 'UTF-8').'">'.LCRun3::ch($cx, 'l10n', 
array(array('contribslink'),array()), 'encq').'</a></span>' : 
'').''.((LCRun3::ifvar($cx, ((isset($in['links']['block']) && 
is_array($in['links'])) ? $in['links']['block'] : null))) ? '<span><a 
class="'.((!LCRun3::ifvar($cx, ((isset($in['links']['block']['exists']) && 
is_array($in['links']['block'])) ? $in['links']['block']['exists'] : null))) ? 
'new ' : '').'"
diff --git a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
index f50c57d..8833292 100644
--- a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
@@ -60,7 +60,7 @@
 '.$sp.''.((LCRun3::ifvar($cx, ((isset($in['links']) && is_array($in)) ? 
$in['links'] : null))) ? ''.((LCRun3::ifvar($cx, 
((isset($in['links']['userpage']) && is_array($in['links'])) ? 
$in['links']['userpage'] : null))) ? '                 <a 
href="'.htmlentities((string)((isset($in['links']['userpage']['url']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['url'] : null), 
ENT_QUOTES, 'UTF-8').'"
 '.$sp.'                           '.((!LCRun3::ifvar($cx, ((isset($in['name']) 
&& is_array($in)) ? $in['name'] : null))) ? 
'title="'.htmlentities((string)((isset($in['links']['userpage']['title']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['title'] : 
null), ENT_QUOTES, 'UTF-8').'"' : '').'
 '.$sp.'                           class="'.((!LCRun3::ifvar($cx, 
((isset($in['links']['userpage']['exists']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['exists'] : 
null))) ? 'new ' : '').'mw-userlink">
-'.$sp.'' : '').''.((LCRun3::ifvar($cx, ((isset($in['name']) && is_array($in)) 
? $in['name'] : null))) ? ''.htmlentities((string)((isset($in['name']) && 
is_array($in)) ? $in['name'] : null), ENT_QUOTES, 'UTF-8').'' : 
''.LCRun3::ch($cx, 'l10n', array(array('flow-anonymous'),array()), 
'encq').'').''.((LCRun3::ifvar($cx, ((isset($in['links']['userpage']) && 
is_array($in['links'])) ? $in['links']['userpage'] : null))) ? '</a>' : 
'').'<span class="mw-usertoollinks flow-pipelist">
+'.$sp.'' : '').''.((LCRun3::ifvar($cx, ((isset($in['name']) && is_array($in)) 
? $in['name'] : null))) ? '<bdi>'.htmlentities((string)((isset($in['name']) && 
is_array($in)) ? $in['name'] : null), ENT_QUOTES, 'UTF-8').'</bdi>' : 
''.LCRun3::ch($cx, 'l10n', array(array('flow-anonymous'),array()), 
'encq').'').''.((LCRun3::ifvar($cx, ((isset($in['links']['userpage']) && 
is_array($in['links'])) ? $in['links']['userpage'] : null))) ? '</a>' : 
'').'<span class="mw-usertoollinks flow-pipelist">
 '.$sp.'                        ('.((LCRun3::ifvar($cx, 
((isset($in['links']['talk']) && is_array($in['links'])) ? $in['links']['talk'] 
: null))) ? '<span><a 
href="'.htmlentities((string)((isset($in['links']['talk']['url']) && 
is_array($in['links']['talk'])) ? $in['links']['talk']['url'] : null), 
ENT_QUOTES, 'UTF-8').'"
 '.$sp.'                                    class="'.((!LCRun3::ifvar($cx, 
((isset($in['links']['talk']['exists']) && is_array($in['links']['talk'])) ? 
$in['links']['talk']['exists'] : null))) ? 'new ' : '').'"
 '.$sp.'                                    
title="'.htmlentities((string)((isset($in['links']['talk']['title']) && 
is_array($in['links']['talk'])) ? $in['links']['talk']['title'] : null), 
ENT_QUOTES, 'UTF-8').'">'.LCRun3::ch($cx, 'l10n', 
array(array('talkpagelinktext'),array()), 'encq').'</a></span>' : 
'').''.((LCRun3::ifvar($cx, ((isset($in['links']['contribs']) && 
is_array($in['links'])) ? $in['links']['contribs'] : null))) ? '<span><a 
href="'.htmlentities((string)((isset($in['links']['contribs']['url']) && 
is_array($in['links']['contribs'])) ? $in['links']['contribs']['url'] : null), 
ENT_QUOTES, 'UTF-8').'" 
title="'.htmlentities((string)((isset($in['links']['contribs']['title']) && 
is_array($in['links']['contribs'])) ? $in['links']['contribs']['title'] : 
null), ENT_QUOTES, 'UTF-8').'">'.LCRun3::ch($cx, 'l10n', 
array(array('contribslink'),array()), 'encq').'</a></span>' : 
'').''.((LCRun3::ifvar($cx, ((isset($in['links']['block']) && 
is_array($in['links'])) ? $in['links']['block'] : null))) ? '<span><a 
class="'.((!LCRun3::ifvar($cx, ((isset($in['links']['block']['exists']) && 
is_array($in['links']['block'])) ? $in['links']['block']['exists'] : null))) ? 
'new ' : '').'"
diff --git a/handlebars/compiled/flow_post.handlebars.php 
b/handlebars/compiled/flow_post.handlebars.php
index 6500f4e..06f62f6 100644
--- a/handlebars/compiled/flow_post.handlebars.php
+++ b/handlebars/compiled/flow_post.handlebars.php
@@ -38,7 +38,7 @@
 '.$sp.''.((LCRun3::ifvar($cx, ((isset($in['links']) && is_array($in)) ? 
$in['links'] : null))) ? ''.((LCRun3::ifvar($cx, 
((isset($in['links']['userpage']) && is_array($in['links'])) ? 
$in['links']['userpage'] : null))) ? '                 <a 
href="'.htmlentities((string)((isset($in['links']['userpage']['url']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['url'] : null), 
ENT_QUOTES, 'UTF-8').'"
 '.$sp.'                           '.((!LCRun3::ifvar($cx, ((isset($in['name']) 
&& is_array($in)) ? $in['name'] : null))) ? 
'title="'.htmlentities((string)((isset($in['links']['userpage']['title']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['title'] : 
null), ENT_QUOTES, 'UTF-8').'"' : '').'
 '.$sp.'                           class="'.((!LCRun3::ifvar($cx, 
((isset($in['links']['userpage']['exists']) && 
is_array($in['links']['userpage'])) ? $in['links']['userpage']['exists'] : 
null))) ? 'new ' : '').'mw-userlink">
-'.$sp.'' : '').''.((LCRun3::ifvar($cx, ((isset($in['name']) && is_array($in)) 
? $in['name'] : null))) ? ''.htmlentities((string)((isset($in['name']) && 
is_array($in)) ? $in['name'] : null), ENT_QUOTES, 'UTF-8').'' : 
''.LCRun3::ch($cx, 'l10n', array(array('flow-anonymous'),array()), 
'encq').'').''.((LCRun3::ifvar($cx, ((isset($in['links']['userpage']) && 
is_array($in['links'])) ? $in['links']['userpage'] : null))) ? '</a>' : 
'').'<span class="mw-usertoollinks flow-pipelist">
+'.$sp.'' : '').''.((LCRun3::ifvar($cx, ((isset($in['name']) && is_array($in)) 
? $in['name'] : null))) ? '<bdi>'.htmlentities((string)((isset($in['name']) && 
is_array($in)) ? $in['name'] : null), ENT_QUOTES, 'UTF-8').'</bdi>' : 
''.LCRun3::ch($cx, 'l10n', array(array('flow-anonymous'),array()), 
'encq').'').''.((LCRun3::ifvar($cx, ((isset($in['links']['userpage']) && 
is_array($in['links'])) ? $in['links']['userpage'] : null))) ? '</a>' : 
'').'<span class="mw-usertoollinks flow-pipelist">
 '.$sp.'                        ('.((LCRun3::ifvar($cx, 
((isset($in['links']['talk']) && is_array($in['links'])) ? $in['links']['talk'] 
: null))) ? '<span><a 
href="'.htmlentities((string)((isset($in['links']['talk']['url']) && 
is_array($in['links']['talk'])) ? $in['links']['talk']['url'] : null), 
ENT_QUOTES, 'UTF-8').'"
 '.$sp.'                                    class="'.((!LCRun3::ifvar($cx, 
((isset($in['links']['talk']['exists']) && is_array($in['links']['talk'])) ? 
$in['links']['talk']['exists'] : null))) ? 'new ' : '').'"
 '.$sp.'                                    
title="'.htmlentities((string)((isset($in['links']['talk']['title']) && 
is_array($in['links']['talk'])) ? $in['links']['talk']['title'] : null), 
ENT_QUOTES, 'UTF-8').'">'.LCRun3::ch($cx, 'l10n', 
array(array('talkpagelinktext'),array()), 'encq').'</a></span>' : 
'').''.((LCRun3::ifvar($cx, ((isset($in['links']['contribs']) && 
is_array($in['links'])) ? $in['links']['contribs'] : null))) ? '<span><a 
href="'.htmlentities((string)((isset($in['links']['contribs']['url']) && 
is_array($in['links']['contribs'])) ? $in['links']['contribs']['url'] : null), 
ENT_QUOTES, 'UTF-8').'" 
title="'.htmlentities((string)((isset($in['links']['contribs']['title']) && 
is_array($in['links']['contribs'])) ? $in['links']['contribs']['title'] : 
null), ENT_QUOTES, 'UTF-8').'">'.LCRun3::ch($cx, 'l10n', 
array(array('contribslink'),array()), 'encq').'</a></span>' : 
'').''.((LCRun3::ifvar($cx, ((isset($in['links']['block']) && 
is_array($in['links'])) ? $in['links']['block'] : null))) ? '<span><a 
class="'.((!LCRun3::ifvar($cx, ((isset($in['links']['block']['exists']) && 
is_array($in['links']['block'])) ? $in['links']['block']['exists'] : null))) ? 
'new ' : '').'"
diff --git a/handlebars/flow_post_author.partial.handlebars 
b/handlebars/flow_post_author.partial.handlebars
index 4521bb4..53562a9 100644
--- a/handlebars/flow_post_author.partial.handlebars
+++ b/handlebars/flow_post_author.partial.handlebars
@@ -6,7 +6,7 @@
                           class="{{#unless links.userpage.exists}}new 
{{/unless}}mw-userlink">
                {{/if}}
                {{~#if name~}}
-                       {{~name~}}
+                       <bdi>{{~name~}}</bdi>
                {{~else~}}
                        {{~l10n "flow-anonymous"}}
                {{~/if~}}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5a9a915aea07bb4a93e917b919f8894a01c097c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mooeypoo <mor...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to