2018-07-06 01:35:58 +02:00
< div class = "modal fade" id = "room-details-modal" tabindex = "-1" role = "dialog" aria-labelledby = "room-details-modal-label" aria-hidden = "true" >
2018-06-04 19:53:33 +02:00
< div class = "modal-dialog" role = "document" >
< div class = "modal-content" >
< div class = "modal-header" >
2018-07-06 01:35:58 +02:00
< h5 class = "modal-title" id = "room-details-modal-label" > {{{o.display_name}}}< / h5 >
2018-06-04 19:53:33 +02:00
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "{{{o.label_close}}}" > < span aria-hidden = "true" > × < / span > < / button >
< / div >
< div class = "modal-body" >
< div class = "room-info" >
< p class = "room-info" > < strong > {{{o.__('Name')}}}< / strong > : {{{o.name}}}< / p >
2018-07-22 10:58:04 +02:00
< p class = "room-info" > < strong > {{{o.__('Groupchat address (JID)')}}}< / strong > : {{{o.jid}}}< / p >
2018-06-04 19:53:33 +02:00
< p class = "room-info" > < strong > {{{o.__('Description')}}}< / strong > : {{{o.description}}}< / p >
2018-07-02 15:23:49 +02:00
{[ if (o.subject) { ]}
2018-07-02 21:20:37 +02:00
< p class = "room-info" > < strong > {{{o.__('Topic')}}}< / strong > : {{o.topic}}< / p > <!-- Sanitized in converse - muc - views. We want to render links. -->
2018-07-02 15:23:49 +02:00
< p class = "room-info" > < strong > {{{o.__('Topic author')}}}< / strong > : {{{o._.get(o.subject, 'author')}}}< / p >
{[ } ]}
2018-06-04 19:53:33 +02:00
< p class = "room-info" > < strong > {{{o.__('Online users')}}}< / strong > : {{{o.num_occupants}}}< / p >
< p class = "room-info" > < strong > {{{o.__('Features')}}}< / strong > :
< div class = "chatroom-features" >
< ul class = "features-list" >
{[ if (o.passwordprotected) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-lock" > < / span > {{{ o.__('Password protected') }}} - < em > {{{ o.__('This groupchat requires a password before entry') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.unsecured) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-unlock" > < / span > {{{ o.__('No password required') }}} - < em > {{{ o.__('This groupchat does not require a password upon entry') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.hidden) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-eye-slash" > < / span > {{{ o.__('Hidden') }}} - < em > {{{ o.__('This groupchat is not publicly searchable') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.public_room) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-eye" > < / span > {{{ o.__('Public') }}} - < em > {{{ o.__('This groupchat is publicly searchable') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.membersonly) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-address-book" > < / span > {{{ o.__('Members only') }}} - < em > {{{ o.__('This groupchat is restricted to members only') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.open) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-globe" > < / span > {{{ o.__('Open') }}} - < em > {{{ o.__('Anyone can join this groupchat') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.persistent) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-save" > < / span > {{{ o.__('Persistent') }}} - < em > {{{ o.__('This groupchat persists even if it\'s unoccupied') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.temporary) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-snowflake-o" > < / span > {{{ o.__('Temporary') }}} - < em > {{{ o.__('This groupchat will disappear once the last person leaves') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.nonanonymous) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-id-card" > < / span > {{{ o.__('Not anonymous') }}} - < em > {{{ o.__('All other groupchat participants can see your XMPP username') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.semianonymous) { ]}
< li class = "feature" > < span class = "fa fa-user-secret" > < / span > {{{ o.__('Semi-anonymous') }}} - < em > {{{ o.__('Only moderators can see your XMPP username') }}}< / em > < / li >
{[ } ]}
{[ if (o.moderated) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-gavel" > < / span > {{{ o.__('Moderated') }}} - < em > {{{ o.__('This groupchat is being moderated') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.unmoderated) { ]}
2018-07-22 10:58:04 +02:00
< li class = "feature" > < span class = "fa fa-info-circle" > < / span > {{{ o.__('Not moderated') }}} - < em > {{{ o.__('This groupchat is not being moderated') }}}< / em > < / li >
2018-06-04 19:53:33 +02:00
{[ } ]}
{[ if (o.mam_enabled) { ]}
< li class = "feature" > < span class = "fa fa-database" > < / span > {{{ o.__('Message archiving') }}} - < em > {{{ o.__('Messages are archived on the server') }}}< / em > < / li >
{[ } ]}
< / ul >
< / div >
< / p >
< / div >
< / div >
2018-07-06 01:35:58 +02:00
< div class = "modal-footer" >
< button type = "button" class = "btn btn-secondary" data-dismiss = "modal" > {{{o.__('Close')}}}< / button >
< / div >
2018-06-04 19:53:33 +02:00
< / div >
< / div >
< / div >