From d09ddc48e051f14299bfbb7e6ba9c8281414e1f1 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 17 Jul 2015 20:09:56 +0100 Subject: [PATCH] lay out topic updates correctly --- skins/base/views/molecules/EventAsTextTile.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/skins/base/views/molecules/EventAsTextTile.js b/skins/base/views/molecules/EventAsTextTile.js index bb5052f48..e32ec4c5d 100644 --- a/skins/base/views/molecules/EventAsTextTile.js +++ b/skins/base/views/molecules/EventAsTextTile.js @@ -18,6 +18,7 @@ limitations under the License. var React = require('react'); +var MatrixClientPeg = require("../../../../src/MatrixClientPeg"); var EventAsTextTileController = require("../../../../src/controllers/molecules/EventAsTextTile"); var TextForEvent = require("../../../../src/TextForEvent"); @@ -28,10 +29,18 @@ module.exports = React.createClass({ render: function() { var text = TextForEvent.textForEvent(this.props.mxEvent); + var timestamp = this.props.last ? : null; return ( - - {TextForEvent.textForEvent(this.props.mxEvent)} - +
+
+ +
+ { timestamp } + + + {TextForEvent.textForEvent(this.props.mxEvent)} + +
); }, });