diff --git a/docs/CHANGES.md b/docs/CHANGES.md index 375d21276..a53d852ce 100755 --- a/docs/CHANGES.md +++ b/docs/CHANGES.md @@ -9,6 +9,7 @@ - sinon 2.1.0 - eslint 3.19.0 +- Show the MUC server in a bookmarked room's info view (in the bookmarks list). [jcbrand] - Enable creation of `dist/converse-muc-embedded.js` build file for the embedded MUC room demo. [jcbrand] - Use `noConflict` to avoid polluting globale namespace with lodash and Backbone. [jcbrand] diff --git a/src/converse-muc.js b/src/converse-muc.js index f490dbfd2..6e4c3a7b9 100755 --- a/src/converse-muc.js +++ b/src/converse-muc.js @@ -2427,6 +2427,7 @@ // All MUC features found here: http://xmpp.org/registrar/disco-features.html $(el).find('span.spinner').replaceWith( tpl_room_description({ + 'server': Strophe.getDomainFromJid(stanza.getAttribute('from')), 'desc': $stanza.find('field[var="muc#roominfo_description"] value').text(), 'occ': $stanza.find('field[var="muc#roominfo_occupants"] value').text(), 'hidden': $stanza.find('feature[var="muc_hidden"]').length, @@ -2441,6 +2442,7 @@ 'temporary': $stanza.find('feature[var="muc_temporary"]').length, 'unmoderated': $stanza.find('feature[var="muc_unmoderated"]').length, 'label_desc': __('Description:'), + 'label_server': __('Server:'), 'label_occ': __('Occupants:'), 'label_features': __('Features:'), 'label_requires_auth': __('Requires authentication'), diff --git a/src/templates/room_description.html b/src/templates/room_description.html index ce3c0eb0d..230200bc6 100644 --- a/src/templates/room_description.html +++ b/src/templates/room_description.html @@ -1,5 +1,6 @@
+

{{{label_server}}} {{{server}}}

{{{label_desc}}} {{{desc}}}

{{{label_occ}}} {{{occ}}}

{{{label_features}}}