[MediaWiki-commits] [Gerrit] Make rollover state a link to topic history - change (mediawiki...Flow)

2015-01-15 Thread jenkins-bot (Code Review)
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
 

[MediaWiki-commits] [Gerrit] Make rollover state a link to topic history - change (mediawiki...Flow)

2015-01-15 Thread jenkins-bot (Code Review)
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 add a link to history behind post timestamps - this also adds one for the
link in the topic titlebar.

Bug: T77900
Change-Id: Iff8d51ecdae70e531baa46cd124c9176bc4bd102
---
M handlebars/compiled/flow_block_topic.handlebars.php
M handlebars/compiled/flow_block_topiclist.handlebars.php
M handlebars/flow_topic_titlebar_content.handlebars
3 files changed, 22 insertions(+), 16 deletions(-)

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



diff --git a/handlebars/compiled/flow_block_topic.handlebars.php 
b/handlebars/compiled/flow_block_topic.handlebars.php
index 0528f77..ff51f59 100644
--- a/handlebars/compiled/flow_block_topic.handlebars.php
+++ b/handlebars/compiled/flow_block_topic.handlebars.php
@@ -76,11 +76,13 @@
 
'.LCRun3::ch($cx, 'l10n', 
Array(Array('flow-topic-comments',((isset($in['reply_count'])  is_array($in)) 
? $in['reply_count'] : null)),Array()), 'encq').' bull;
 
-   '.((LCRun3::ifvar($cx, ((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null))) ? '
-   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
-   ' : '
-   '.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::ifvar($cx, ((isset($in['last_updated'])  
is_array($in)) ? $in['last_updated'] : null))) ? '
+   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
+   ' : '
+   '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((isset($in['postId'])  is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+   ').'
+   /a
 /div
 '.((LCRun3::ifvar($cx, ((isset($in['isModerated'])  is_array($in)) ? 
$in['isModerated'] : null))) ? '
div class=flow-moderated-topic-title 
flow-ui-text-truncated'.htmlentities((string)((isset($in['noop'])  
is_array($in)) ? $in['noop'] : null), ENT_QUOTES, 'UTF-8').''.LCRun3::p($cx, 
'flow_topic_moderation_flag', Array(Array($in),Array())).'
@@ -326,4 +328,4 @@
 /div
 ';
 }
-?
\ No newline at end of file
+?
diff --git a/handlebars/compiled/flow_block_topiclist.handlebars.php 
b/handlebars/compiled/flow_block_topiclist.handlebars.php
index 4e6a365..eed7b30 100644
--- a/handlebars/compiled/flow_block_topiclist.handlebars.php
+++ b/handlebars/compiled/flow_block_topiclist.handlebars.php
@@ -213,11 +213,13 @@
 
'.LCRun3::ch($cx, 'l10n', 
Array(Array('flow-topic-comments',((isset($in['reply_count'])  is_array($in)) 
? $in['reply_count'] : null)),Array()), 'encq').' bull;
 
-   '.((LCRun3::ifvar($cx, ((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null))) ? '
-   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
-   ' : '
-   '.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::ifvar($cx, ((isset($in['last_updated'])  
is_array($in)) ? $in['last_updated'] : null))) ? '
+   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
+   ' : '
+   '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((isset($in['postId'])  is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+   ').'
+   /a
 /div
 '.((LCRun3::ifvar($cx, ((isset($in['isModerated'])  is_array($in)) ? 
$in['isModerated'] : null))) ? '
div class=flow-moderated-topic-title 
flow-ui-text-truncated'.htmlentities((string)((isset($in['noop'])  
is_array($in)) ? $in['noop'] : null), ENT_QUOTES, 'UTF-8').''.LCRun3::p($cx, 
'flow_topic_moderation_flag', Array(Array($in),Array())).'
diff --git a/handlebars/flow_topic_titlebar_content.handlebars 
b/handlebars/flow_topic_titlebar_content.handlebars
index 8c8dec7..1ed68f6 100644
--- a/handlebars/flow_topic_titlebar_content.handlebars
+++ 

[MediaWiki-commits] [Gerrit] Make rollover state a link to topic history - change (mediawiki...Flow)

2014-12-18 Thread Matthias Mullie (Code Review)
Matthias Mullie has uploaded a new change for review.

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

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

Make rollover state a link to topic history

We add a link to history behind post timestamps - this also adds one for the
link in the topic titlebar.

Bug: T77900
Change-Id: Iff8d51ecdae70e531baa46cd124c9176bc4bd102
---
M handlebars/compiled/flow_block_topic.handlebars.php
M handlebars/compiled/flow_block_topiclist.handlebars.php
M handlebars/flow_topic_titlebar_content.handlebars
3 files changed, 21 insertions(+), 15 deletions(-)


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

diff --git a/handlebars/compiled/flow_block_topic.handlebars.php 
b/handlebars/compiled/flow_block_topic.handlebars.php
index f691efa..257ca08 100644
--- a/handlebars/compiled/flow_block_topic.handlebars.php
+++ b/handlebars/compiled/flow_block_topic.handlebars.php
@@ -73,11 +73,13 @@
 
'.LCRun3::ch($cx, 'l10n', 
Array(Array('flow-topic-comments',((isset($in['reply_count'])  is_array($in)) 
? $in['reply_count'] : null)),Array()), 'encq').' bull;
 
-   '.((LCRun3::ifvar($cx, ((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null))) ? '
-   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
-   ' : '
-   '.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::ifvar($cx, ((isset($in['last_updated'])  
is_array($in)) ? $in['last_updated'] : null))) ? '
+   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
+   ' : '
+   '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((isset($in['postId'])  is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+   ').'
+   /a
 /div
 '.((LCRun3::ifvar($cx, ((isset($in['isModerated'])  is_array($in)) ? 
$in['isModerated'] : null))) ? '
div class=flow-moderated-topic-title 
flow-ui-text-truncated'.htmlentities((string)((isset($in['noop'])  
is_array($in)) ? $in['noop'] : null), ENT_QUOTES, 'UTF-8').''.LCRun3::p($cx, 
'flow_topic_moderation_flag', Array(Array($in),Array())).'
diff --git a/handlebars/compiled/flow_block_topiclist.handlebars.php 
b/handlebars/compiled/flow_block_topiclist.handlebars.php
index 9e87b2e..0d943d3 100644
--- a/handlebars/compiled/flow_block_topiclist.handlebars.php
+++ b/handlebars/compiled/flow_block_topiclist.handlebars.php
@@ -192,11 +192,13 @@
 
'.LCRun3::ch($cx, 'l10n', 
Array(Array('flow-topic-comments',((isset($in['reply_count'])  is_array($in)) 
? $in['reply_count'] : null)),Array()), 'encq').' bull;
 
-   '.((LCRun3::ifvar($cx, ((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null))) ? '
-   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
-   ' : '
-   '.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::ifvar($cx, ((isset($in['last_updated'])  
is_array($in)) ? $in['last_updated'] : null))) ? '
+   '.LCRun3::ch($cx, 'timestamp', 
Array(Array(((isset($in['last_updated'])  is_array($in)) ? 
$in['last_updated'] : null)),Array()), 'encq').'
+   ' : '
+   '.LCRun3::ch($cx, 'uuidTimestamp', 
Array(Array(((isset($in['postId'])  is_array($in)) ? $in['postId'] : 
null)),Array()), 'encq').'
+   ').'
+   /a
 /div
 '.((LCRun3::ifvar($cx, ((isset($in['isModerated'])  is_array($in)) ? 
$in['isModerated'] : null))) ? '
div class=flow-moderated-topic-title 
flow-ui-text-truncated'.htmlentities((string)((isset($in['noop'])  
is_array($in)) ? $in['noop'] : null), ENT_QUOTES, 'UTF-8').''.LCRun3::p($cx, 
'flow_topic_moderation_flag', Array(Array($in),Array())).'
diff --git a/handlebars/flow_topic_titlebar_content.handlebars 
b/handlebars/flow_topic_titlebar_content.handlebars
index f4a3f3d..9728468 100644
--- a/handlebars/flow_topic_titlebar_content.handlebars
+++ 

[MediaWiki-commits] [Gerrit] Make rollover state a link to topic history - change (mediawiki...Flow)

2014-12-18 Thread Matthias Mullie (Code Review)
Matthias Mullie has uploaded a new change for review.

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

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, 12 insertions(+), 4 deletions(-)


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

diff --git a/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_post.handlebars.php
index e5f8b18..eaad122 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 '
diff --git a/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php 
b/handlebars/compiled/flow_block_topic_moderate_topic.handlebars.php
index f8f06f8..2376dec 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 '
diff --git a/handlebars/compiled/flow_post.handlebars.php 
b/handlebars/compiled/flow_post.handlebars.php
index 932fcf3..1c7775c 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',