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

Change subject: Make rollover state a link to topic history
......................................................................


Make rollover state a link to topic history

We only linked to history after a post had been edited, this will now always
hide a link behind the timestamp, for a post.

Bug: T77900
Change-Id: I7a67df1ac8da35a6a6b8e65d925892c863ef8006
---
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.handlebars
4 files changed, 15 insertions(+), 7 deletions(-)

Approvals:
  EBernhardson: 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 24446ba..0b57fad 100644
--- a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
@@ -117,7 +117,9 @@
 
        <span class="flow-post-timestamp">
                '.((LCRun3::ifvar($cx, ((isset($in['isOriginalContent']) && 
is_array($in)) ? $in['isOriginalContent'] : null))) ? '
-                       '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((isset($in['postId']) && is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+                       <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['postId']) && is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+                       </a>
                ' : '
                        <span>
                                '.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, function($cx, $in) {return '
@@ -401,4 +403,4 @@
 </div>
 ';
 }
-?>
\ No newline at end of file
+?>
diff --git a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
index 0e00fa8..aa14432 100644
--- a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
@@ -117,7 +117,9 @@
 
        <span class="flow-post-timestamp">
                '.((LCRun3::ifvar($cx, ((isset($in['isOriginalContent']) && 
is_array($in)) ? $in['isOriginalContent'] : null))) ? '
-                       '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((isset($in['postId']) && is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+                       <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['postId']) && is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+                       </a>
                ' : '
                        <span>
                                '.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, function($cx, $in) {return '
@@ -401,4 +403,4 @@
 </div>
 ';
 }
-?>
\ No newline at end of file
+?>
diff --git a/handlebars/compiled/flow_post.handlebars.php 
b/handlebars/compiled/flow_post.handlebars.php
index c785ed5..b427023 100644
--- a/handlebars/compiled/flow_post.handlebars.php
+++ b/handlebars/compiled/flow_post.handlebars.php
@@ -95,7 +95,9 @@
 
        <span class="flow-post-timestamp">
                '.((LCRun3::ifvar($cx, ((isset($in['isOriginalContent']) && 
is_array($in)) ? $in['isOriginalContent'] : null))) ? '
-                       '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((isset($in['postId']) && is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+                       <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['postId']) && is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+                       </a>
                ' : '
                        <span>
                                '.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, function($cx, $in) {return '
@@ -370,4 +372,4 @@
 ';}).'
 ';
 }
-?>
\ No newline at end of file
+?>
diff --git a/handlebars/flow_post_meta_actions.handlebars 
b/handlebars/flow_post_meta_actions.handlebars
index 1ed10d3..ea653a0 100644
--- a/handlebars/flow_post_meta_actions.handlebars
+++ b/handlebars/flow_post_meta_actions.handlebars
@@ -47,7 +47,9 @@
 
        <span class="flow-post-timestamp">
                {{#if isOriginalContent}}
-                       {{uuidTimestamp postId}}
+                       <a href="{{links.topic-history.url}}" 
class="flow-timestamp-anchor">
+                               {{uuidTimestamp postId}}
+                       </a>
                {{else}}
                        <span>
                                {{#ifCond creator.name "===" lastEditUser.name}}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7a67df1ac8da35a6a6b8e65d925892c863ef8006
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: SG <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to