Sbisson has uploaded a new change for review.

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

Change subject: Output body text in flyout
......................................................................

Output body text in flyout

Change-Id: I2aad6f766407c13625b1c35df3ae209f75849970
---
M includes/formatters/EchoFlyoutFormatter.php
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/19/251119/1

diff --git a/includes/formatters/EchoFlyoutFormatter.php 
b/includes/formatters/EchoFlyoutFormatter.php
index 4f401ad..3659081 100644
--- a/includes/formatters/EchoFlyoutFormatter.php
+++ b/includes/formatters/EchoFlyoutFormatter.php
@@ -23,7 +23,14 @@
                                $model->getHeaderMessage()->parse()
                        ) . "\n";
 
-               // @todo body text
+               $bodyText = $model->getBodyText();
+               if ( $bodyText ) {
+                       $html .= Xml::tags(
+                                       'div',
+                                       array( 'class' => 'mw-echo-body' ),
+                                       $bodyText
+                               ) . "\n";
+               }
 
                $ts = $this->language->getHumanTimestamp(
                        new MWTimestamp( $model->getTimestamp() ),

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2aad6f766407c13625b1c35df3ae209f75849970
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>

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

Reply via email to