Commit adeac37b authored by JC Brand's avatar JC Brand

Move more features HTML to chatroom_features.html

parent 946a2400
...@@ -1972,7 +1972,6 @@ ...@@ -1972,7 +1972,6 @@
tpl_chatroom_sidebar( tpl_chatroom_sidebar(
_.extend(this.chatroomview.model.toJSON(), { _.extend(this.chatroomview.model.toJSON(), {
'allow_muc_invitations': _converse.allow_muc_invitations, 'allow_muc_invitations': _converse.allow_muc_invitations,
'label_features': __('Features'),
'label_occupants': __('Occupants') 'label_occupants': __('Occupants')
})) }))
); );
...@@ -2002,9 +2001,10 @@ ...@@ -2002,9 +2001,10 @@
}, },
renderRoomFeatures: function () { renderRoomFeatures: function () {
this.$('.features-list').html( this.$('.chatroom-features').html(
tpl_chatroom_features( tpl_chatroom_features(
_.extend(this.chatroomview.model.toJSON(), { _.extend(this.chatroomview.model.toJSON(), {
'label_features': __('Features'),
'label_hidden': __('Hidden'), 'label_hidden': __('Hidden'),
'label_mam_enabled': __('Message archiving'), 'label_mam_enabled': __('Message archiving'),
'label_membersonly': __('Members only'), 'label_membersonly': __('Members only'),
......
<p class="occupants-heading">{{{label_features}}}</p>
<ul class="features-list">
{[ if (passwordprotected) { ]} {[ if (passwordprotected) { ]}
<li class="feature" title="{{{ tt_passwordprotected }}}"><span class="icon-lock-2"></span>{{{ label_passwordprotected }}}</li> <li class="feature" title="{{{ tt_passwordprotected }}}"><span class="icon-lock-2"></span>{{{ label_passwordprotected }}}</li>
{[ } ]} {[ } ]}
...@@ -37,3 +39,4 @@ ...@@ -37,3 +39,4 @@
{[ if (mam_enabled) { ]} {[ if (mam_enabled) { ]}
<li class="feature" title="{{{ tt_mam_enabled }}}"><span class="icon-database"></span>{{{ label_mam_enabled }}}</li> <li class="feature" title="{{{ tt_mam_enabled }}}"><span class="icon-database"></span>{{{ label_mam_enabled }}}</li>
{[ } ]} {[ } ]}
</ul>
<!-- <div class="occupants"> --> <!-- <div class="occupants"> -->
<p class="occupants-heading">{{{label_occupants}}}</p> <p class="occupants-heading">{{{label_occupants}}}</p>
<ul class="occupant-list"></ul> <ul class="occupant-list"></ul>
<div class="chatroom-features"> <div class="chatroom-features"></div>
<p class="occupants-heading">{{{label_features}}}</p>
<ul class="features-list"></ul>
</div>
<!-- </div> --> <!-- </div> -->
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment