implement latest skin
This commit is contained in:
parent
c0bd574997
commit
9b384e52b5
27 changed files with 172 additions and 71 deletions
|
@ -18,6 +18,7 @@ limitations under the License.
|
|||
|
||||
var React = require('react');
|
||||
|
||||
var MatrixClientPeg = require("../../../../src/MatrixClientPeg");
|
||||
var RoomHeaderController = require("../../../../src/controllers/molecules/RoomHeader");
|
||||
|
||||
module.exports = React.createClass({
|
||||
|
@ -25,19 +26,26 @@ module.exports = React.createClass({
|
|||
mixins: [RoomHeaderController],
|
||||
|
||||
render: function() {
|
||||
|
||||
var topic = this.props.room.currentState.getStateEvents('m.room.topic', '');
|
||||
topic = topic ? <div className="mx_RoomHeader_topic">{ topic.getContent().topic }</div> : null;
|
||||
|
||||
return (
|
||||
<div className="mx_RoomHeader">
|
||||
<div className="mx_RoomHeader_wrapper">
|
||||
<div className="mx_RoomHeader_leftRow">
|
||||
<div className="mx_RoomHeader_avatar">
|
||||
<img src="img/placeholder.png" width="32" height="32" alt="(+)"/>
|
||||
<img src={ MatrixClientPeg.get().getAvatarUrlForRoom(this.props.room, 48, 48, "crop") } width="48" height="48"/>
|
||||
</div>
|
||||
<div className="mx_RoomHeader_name">{this.props.room.name}</div>
|
||||
<div className="mx_RoomHeader_button">
|
||||
<img src="img/info.png" width="32" height="32"/>
|
||||
<div className="mx_RoomHeader_info">
|
||||
<div className="mx_RoomHeader_name">{ this.props.room.name }</div>
|
||||
{ topic }
|
||||
</div>
|
||||
</div>
|
||||
<div className="mx_RoomHeader_rightRow">
|
||||
<div className="mx_RoomHeader_button">
|
||||
<img src="img/settings.png" width="32" height="32"/>
|
||||
</div>
|
||||
<div className="mx_RoomHeader_button">
|
||||
<img src="img/search.png" width="32" height="32"/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue