Bsitu has uploaded a new change for review.

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

Change subject: "Edited timestamp" should link to diff
......................................................................

"Edited timestamp" should link to diff

Bug: 67607
Change-Id: Ia0047f654e9d1d7d819a3c7ffc366c22682aeb68
---
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, 36 insertions(+), 8 deletions(-)


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

diff --git a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
index 925d3ff..8ca4b8f 100644
--- a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
@@ -122,8 +122,15 @@
                ' : '').'
        </span>
        '.((LCRun3::ifvar($cx, ((is_array($in) && 
isset($in['previousRevisionId'])) ? $in['previousRevisionId'] : null))) ? '
-               <!--span class="wikiglyph wikiglyph-clock"></span-->
-               '.LCRun3::ch($cx, 'uuidTimestamp', Array(Array(((is_array($in) 
&& isset($in['revisionId'])) ? $in['revisionId'] : 
null),'edited_ago'),Array()), 'encq').'
+               '.((LCRun3::ifvar($cx, ((is_array($in['links']) && 
isset($in['links']['diff-prev'])) ? $in['links']['diff-prev'] : null))) ? '
+                       <a 
href="'.htmlentities(((is_array($in['links']['diff-prev']) && 
isset($in['links']['diff-prev']['url'])) ? $in['links']['diff-prev']['url'] : 
null), ENT_QUOTES, 'UTF-8').'"
+                           class="fflow-ui-button flow-ui-progressive 
flow-ui-quiet flow-ui-inline"
+                           
title="'.htmlentities(((is_array($in['links']['diff-prev']) && 
isset($in['links']['diff-prev']['title'])) ? $in['links']['diff-prev']['title'] 
: null), ENT_QUOTES, 'UTF-8').'">
+               ' : '').'
+                       '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((is_array($in) && isset($in['revisionId'])) ? $in['revisionId'] : 
null),'edited_ago'),Array()), 'encq').'
+               '.((LCRun3::ifvar($cx, ((is_array($in['links']) && 
isset($in['links']['diff-prev'])) ? $in['links']['diff-prev'] : null))) ? '
+                       </a>
+               ' : '').'
                &#8226;
        ' : '').'
        '.LCRun3::ch($cx, 'uuidTimestamp', Array(Array(((is_array($in) && 
isset($in['postId'])) ? $in['postId'] : null),'time_ago'),Array()), 'encq').'
diff --git a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
index 925d3ff..8ca4b8f 100644
--- a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
+++ b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
@@ -122,8 +122,15 @@
                ' : '').'
        </span>
        '.((LCRun3::ifvar($cx, ((is_array($in) && 
isset($in['previousRevisionId'])) ? $in['previousRevisionId'] : null))) ? '
-               <!--span class="wikiglyph wikiglyph-clock"></span-->
-               '.LCRun3::ch($cx, 'uuidTimestamp', Array(Array(((is_array($in) 
&& isset($in['revisionId'])) ? $in['revisionId'] : 
null),'edited_ago'),Array()), 'encq').'
+               '.((LCRun3::ifvar($cx, ((is_array($in['links']) && 
isset($in['links']['diff-prev'])) ? $in['links']['diff-prev'] : null))) ? '
+                       <a 
href="'.htmlentities(((is_array($in['links']['diff-prev']) && 
isset($in['links']['diff-prev']['url'])) ? $in['links']['diff-prev']['url'] : 
null), ENT_QUOTES, 'UTF-8').'"
+                           class="fflow-ui-button flow-ui-progressive 
flow-ui-quiet flow-ui-inline"
+                           
title="'.htmlentities(((is_array($in['links']['diff-prev']) && 
isset($in['links']['diff-prev']['title'])) ? $in['links']['diff-prev']['title'] 
: null), ENT_QUOTES, 'UTF-8').'">
+               ' : '').'
+                       '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((is_array($in) && isset($in['revisionId'])) ? $in['revisionId'] : 
null),'edited_ago'),Array()), 'encq').'
+               '.((LCRun3::ifvar($cx, ((is_array($in['links']) && 
isset($in['links']['diff-prev'])) ? $in['links']['diff-prev'] : null))) ? '
+                       </a>
+               ' : '').'
                &#8226;
        ' : '').'
        '.LCRun3::ch($cx, 'uuidTimestamp', Array(Array(((is_array($in) && 
isset($in['postId'])) ? $in['postId'] : null),'time_ago'),Array()), 'encq').'
diff --git a/handlebars/compiled/flow_post.handlebars.php 
b/handlebars/compiled/flow_post.handlebars.php
index 4ba1458..91bbf70 100644
--- a/handlebars/compiled/flow_post.handlebars.php
+++ b/handlebars/compiled/flow_post.handlebars.php
@@ -92,8 +92,15 @@
                ' : '').'
        </span>
        '.((LCRun3::ifvar($cx, ((is_array($in) && 
isset($in['previousRevisionId'])) ? $in['previousRevisionId'] : null))) ? '
-               <!--span class="wikiglyph wikiglyph-clock"></span-->
-               '.LCRun3::ch($cx, 'uuidTimestamp', Array(Array(((is_array($in) 
&& isset($in['revisionId'])) ? $in['revisionId'] : 
null),'edited_ago'),Array()), 'encq').'
+               '.((LCRun3::ifvar($cx, ((is_array($in['links']) && 
isset($in['links']['diff-prev'])) ? $in['links']['diff-prev'] : null))) ? '
+                       <a 
href="'.htmlentities(((is_array($in['links']['diff-prev']) && 
isset($in['links']['diff-prev']['url'])) ? $in['links']['diff-prev']['url'] : 
null), ENT_QUOTES, 'UTF-8').'"
+                           class="fflow-ui-button flow-ui-progressive 
flow-ui-quiet flow-ui-inline"
+                           
title="'.htmlentities(((is_array($in['links']['diff-prev']) && 
isset($in['links']['diff-prev']['title'])) ? $in['links']['diff-prev']['title'] 
: null), ENT_QUOTES, 'UTF-8').'">
+               ' : '').'
+                       '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((is_array($in) && isset($in['revisionId'])) ? $in['revisionId'] : 
null),'edited_ago'),Array()), 'encq').'
+               '.((LCRun3::ifvar($cx, ((is_array($in['links']) && 
isset($in['links']['diff-prev'])) ? $in['links']['diff-prev'] : null))) ? '
+                       </a>
+               ' : '').'
                &#8226;
        ' : '').'
        '.LCRun3::ch($cx, 'uuidTimestamp', Array(Array(((is_array($in) && 
isset($in['postId'])) ? $in['postId'] : null),'time_ago'),Array()), 'encq').'
diff --git a/handlebars/flow_post_meta_actions.handlebars 
b/handlebars/flow_post_meta_actions.handlebars
index bf4292e..48251d7 100644
--- a/handlebars/flow_post_meta_actions.handlebars
+++ b/handlebars/flow_post_meta_actions.handlebars
@@ -33,8 +33,15 @@
                {{/if}}
        </span>
        {{#if previousRevisionId}}
-               <!--span class="wikiglyph wikiglyph-clock"></span-->
-               {{uuidTimestamp revisionId "edited_ago"}}
+               {{#if links.diff-prev}}
+                       <a href="{{links.diff-prev.url}}"
+                           class="fflow-ui-button flow-ui-progressive 
flow-ui-quiet flow-ui-inline"
+                           title="{{links.diff-prev.title}}">
+               {{/if}}
+                       {{uuidTimestamp revisionId "edited_ago"}}
+               {{#if links.diff-prev}}
+                       </a>
+               {{/if}}
                &#8226;
        {{/if}}
        {{uuidTimestamp postId "time_ago"}}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0047f654e9d1d7d819a3c7ffc366c22682aeb68
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Bsitu <bs...@wikimedia.org>

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

Reply via email to