pull/1/head
David Baker 2015-06-19 14:01:17 +01:00
parent 2abea931ca
commit 1270bc3c62
5 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,3 @@
.mx_MNoticeTile {
color: #666;
}

View File

@ -31,6 +31,7 @@ require('./views/molecules/MessageTile');
require('./views/molecules/SenderProfile'); require('./views/molecules/SenderProfile');
require('./views/molecules/UnknownMessageTile'); require('./views/molecules/UnknownMessageTile');
require('./views/molecules/MTextTile'); require('./views/molecules/MTextTile');
require('./views/molecules/MNoticeTile');
require('./views/molecules/MEmoteTile'); require('./views/molecules/MEmoteTile');
require('./views/molecules/RoomHeader'); require('./views/molecules/RoomHeader');
require('./views/molecules/MessageComposer'); require('./views/molecules/MessageComposer');

View File

@ -0,0 +1,2 @@
module.exports = {
};

View File

@ -0,0 +1,17 @@
var React = require('react');
var MNoticeTileController = require("../../controllers/molecules/MNoticeTile");
module.exports = React.createClass({
mixins: [MNoticeTileController],
render: function() {
var content = this.props.mxEvent.getContent();
return (
<span className="mx_MNoticeTile">
{content.body}
</span>
);
},
});

View File

@ -11,6 +11,7 @@ var UnknownMessageTile = ComponentBroker.get('molecules/UnknownMessageTile');
var tileTypes = { var tileTypes = {
'm.text': ComponentBroker.get('molecules/MTextTile'), 'm.text': ComponentBroker.get('molecules/MTextTile'),
'm.notice': ComponentBroker.get('molecules/MNoticeTile'),
'm.emote': ComponentBroker.get('molecules/MEmoteTile') 'm.emote': ComponentBroker.get('molecules/MEmoteTile')
}; };