jenkins-bot has submitted this change and it was merged.

Change subject: "Edited by username" timeago should link to the most recent 
diff of that post
......................................................................


"Edited by username" timeago should link to the most recent diff of that post

Bug: T94090
Change-Id: Ib8c9d0d09765651329c1f8a273bf5cb640b8c908
---
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_meta_actions.partial.handlebars
4 files changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Sbisson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
index 36f9007..b5c29ad 100644
--- a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
@@ -98,7 +98,7 @@
 '.LCRun3::hbch($cx, 'ifCond', array(array(((isset($in['creator']['name']) && 
is_array($in['creator'])) ? $in['creator']['name'] : 
null),'===',((isset($in['lastEditUser']['name']) && 
is_array($in['lastEditUser'])) ? $in['lastEditUser']['name'] : null)),array()), 
$in, false, function($cx, $in) {return '                                 
'.LCRun3::ch($cx, 'l10n', array(array('flow-edited'),array()), 'encq').'
 ';}, function($cx, $in) {return '                                      
'.LCRun3::ch($cx, 'l10n', 
array(array('flow-edited-by',((isset($in['lastEditUser']['name']) && 
is_array($in['lastEditUser'])) ? $in['lastEditUser']['name'] : null)),array()), 
'encq').'
 ';}).'                 </span>
-                       <a 
href="'.htmlentities((string)((isset($in['links']['topic-history']['url']) && 
is_array($in['links']['topic-history'])) ? $in['links']['topic-history']['url'] 
: null), ENT_QUOTES, 'UTF-8').'" 
class="flow-timestamp-anchor">'.LCRun3::ch($cx, 'uuidTimestamp', 
array(array(((isset($in['lastEditId']) && is_array($in)) ? $in['lastEditId'] : 
null)),array()), 'encq').'</a>
+                       <a 
href="'.htmlentities((string)((isset($in['links']['diff-prev']['url']) && 
is_array($in['links']['diff-prev'])) ? $in['links']['diff-prev']['url'] : 
null), ENT_QUOTES, 'UTF-8').'" class="flow-timestamp-anchor">'.LCRun3::ch($cx, 
'uuidTimestamp', array(array(((isset($in['lastEditId']) && is_array($in)) ? 
$in['lastEditId'] : null)),array()), 'encq').'</a>
 ').'   </span>
 </div>
 ';},'flow_moderation_actions_list' => function ($cx, $in) {return 
'<section>'.LCRun3::hbch($cx, 'ifCond', 
array(array(((isset($in['moderationType']) && is_array($in)) ? 
$in['moderationType'] : null),'===','topic'),array()), $in, false, 
function($cx, $in) {return ''.((LCRun3::ifvar($cx, 
((isset($in['actions']['edit']) && is_array($in['actions'])) ? 
$in['actions']['edit'] : null))) ? '<li 
class="flow-js">'.htmlentities((string)((isset($in['noop']) && is_array($in)) ? 
$in['noop'] : null), ENT_QUOTES, 'UTF-8').'<a 
class="'.htmlentities((string)((isset($in['moderationMwUiClass']) && 
is_array($in)) ? $in['moderationMwUiClass'] : null), ENT_QUOTES, 'UTF-8').' 
mw-ui-quiet"
diff --git a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
index 7f7ea99..b6939f2 100644
--- a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
@@ -98,7 +98,7 @@
 '.LCRun3::hbch($cx, 'ifCond', array(array(((isset($in['creator']['name']) && 
is_array($in['creator'])) ? $in['creator']['name'] : 
null),'===',((isset($in['lastEditUser']['name']) && 
is_array($in['lastEditUser'])) ? $in['lastEditUser']['name'] : null)),array()), 
$in, false, function($cx, $in) {return '                                 
'.LCRun3::ch($cx, 'l10n', array(array('flow-edited'),array()), 'encq').'
 ';}, function($cx, $in) {return '                                      
'.LCRun3::ch($cx, 'l10n', 
array(array('flow-edited-by',((isset($in['lastEditUser']['name']) && 
is_array($in['lastEditUser'])) ? $in['lastEditUser']['name'] : null)),array()), 
'encq').'
 ';}).'                 </span>
-                       <a 
href="'.htmlentities((string)((isset($in['links']['topic-history']['url']) && 
is_array($in['links']['topic-history'])) ? $in['links']['topic-history']['url'] 
: null), ENT_QUOTES, 'UTF-8').'" 
class="flow-timestamp-anchor">'.LCRun3::ch($cx, 'uuidTimestamp', 
array(array(((isset($in['lastEditId']) && is_array($in)) ? $in['lastEditId'] : 
null)),array()), 'encq').'</a>
+                       <a 
href="'.htmlentities((string)((isset($in['links']['diff-prev']['url']) && 
is_array($in['links']['diff-prev'])) ? $in['links']['diff-prev']['url'] : 
null), ENT_QUOTES, 'UTF-8').'" class="flow-timestamp-anchor">'.LCRun3::ch($cx, 
'uuidTimestamp', array(array(((isset($in['lastEditId']) && is_array($in)) ? 
$in['lastEditId'] : null)),array()), 'encq').'</a>
 ').'   </span>
 </div>
 ';},'flow_moderation_actions_list' => function ($cx, $in) {return 
'<section>'.LCRun3::hbch($cx, 'ifCond', 
array(array(((isset($in['moderationType']) && is_array($in)) ? 
$in['moderationType'] : null),'===','topic'),array()), $in, false, 
function($cx, $in) {return ''.((LCRun3::ifvar($cx, 
((isset($in['actions']['edit']) && is_array($in['actions'])) ? 
$in['actions']['edit'] : null))) ? '<li 
class="flow-js">'.htmlentities((string)((isset($in['noop']) && is_array($in)) ? 
$in['noop'] : null), ENT_QUOTES, 'UTF-8').'<a 
class="'.htmlentities((string)((isset($in['moderationMwUiClass']) && 
is_array($in)) ? $in['moderationMwUiClass'] : null), ENT_QUOTES, 'UTF-8').' 
mw-ui-quiet"
diff --git a/handlebars/compiled/flow_post.handlebars.php 
b/handlebars/compiled/flow_post.handlebars.php
index 86ba759..2bb1660 100644
--- a/handlebars/compiled/flow_post.handlebars.php
+++ b/handlebars/compiled/flow_post.handlebars.php
@@ -76,7 +76,7 @@
 '.LCRun3::hbch($cx, 'ifCond', array(array(((isset($in['creator']['name']) && 
is_array($in['creator'])) ? $in['creator']['name'] : 
null),'===',((isset($in['lastEditUser']['name']) && 
is_array($in['lastEditUser'])) ? $in['lastEditUser']['name'] : null)),array()), 
$in, false, function($cx, $in) {return '                                 
'.LCRun3::ch($cx, 'l10n', array(array('flow-edited'),array()), 'encq').'
 ';}, function($cx, $in) {return '                                      
'.LCRun3::ch($cx, 'l10n', 
array(array('flow-edited-by',((isset($in['lastEditUser']['name']) && 
is_array($in['lastEditUser'])) ? $in['lastEditUser']['name'] : null)),array()), 
'encq').'
 ';}).'                 </span>
-                       <a 
href="'.htmlentities((string)((isset($in['links']['topic-history']['url']) && 
is_array($in['links']['topic-history'])) ? $in['links']['topic-history']['url'] 
: null), ENT_QUOTES, 'UTF-8').'" 
class="flow-timestamp-anchor">'.LCRun3::ch($cx, 'uuidTimestamp', 
array(array(((isset($in['lastEditId']) && is_array($in)) ? $in['lastEditId'] : 
null)),array()), 'encq').'</a>
+                       <a 
href="'.htmlentities((string)((isset($in['links']['diff-prev']['url']) && 
is_array($in['links']['diff-prev'])) ? $in['links']['diff-prev']['url'] : 
null), ENT_QUOTES, 'UTF-8').'" class="flow-timestamp-anchor">'.LCRun3::ch($cx, 
'uuidTimestamp', array(array(((isset($in['lastEditId']) && is_array($in)) ? 
$in['lastEditId'] : null)),array()), 'encq').'</a>
 ').'   </span>
 </div>
 ';},'flow_moderation_actions_list' => function ($cx, $in) {return 
'<section>'.LCRun3::hbch($cx, 'ifCond', 
array(array(((isset($in['moderationType']) && is_array($in)) ? 
$in['moderationType'] : null),'===','topic'),array()), $in, false, 
function($cx, $in) {return ''.((LCRun3::ifvar($cx, 
((isset($in['actions']['edit']) && is_array($in['actions'])) ? 
$in['actions']['edit'] : null))) ? '<li 
class="flow-js">'.htmlentities((string)((isset($in['noop']) && is_array($in)) ? 
$in['noop'] : null), ENT_QUOTES, 'UTF-8').'<a 
class="'.htmlentities((string)((isset($in['moderationMwUiClass']) && 
is_array($in)) ? $in['moderationMwUiClass'] : null), ENT_QUOTES, 'UTF-8').' 
mw-ui-quiet"
diff --git a/handlebars/flow_post_meta_actions.partial.handlebars 
b/handlebars/flow_post_meta_actions.partial.handlebars
index 5027181..22435d7 100644
--- a/handlebars/flow_post_meta_actions.partial.handlebars
+++ b/handlebars/flow_post_meta_actions.partial.handlebars
@@ -57,7 +57,7 @@
                                        {{l10n "flow-edited-by" 
lastEditUser.name}}
                                {{/ifCond}}
                        </span>
-                       <a href="{{links.topic-history.url}}" 
class="flow-timestamp-anchor">
+                       <a href="{{links.diff-prev.url}}" 
class="flow-timestamp-anchor">
                                {{~uuidTimestamp lastEditId~}}
                        </a>
                {{/if}}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib8c9d0d09765651329c1f8a273bf5cb640b8c908
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>
Gerrit-Reviewer: Sbisson <sbis...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to