Commit dfcebeb6 authored by JC Brand's avatar JC Brand

Rename participants to occupants.

parent 35a4f9bd
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
'emoticons': true, 'emoticons': true,
'call': false, 'call': false,
'clear': true, 'clear': true,
'toggle_participants': true 'toggle_occupants': true
}, },
websocket_url: undefined, websocket_url: undefined,
xhr_custom_status: false, xhr_custom_status: false,
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
_.extend( _.extend(
this.visible_toolbar_buttons, this.visible_toolbar_buttons,
_.pick(settings.visible_toolbar_buttons, [ _.pick(settings.visible_toolbar_buttons, [
'emoticons', 'call', 'clear', 'toggle_participants' 'emoticons', 'call', 'clear', 'toggle_occupants'
] ]
)); ));
} }
...@@ -2040,7 +2040,7 @@ ...@@ -2040,7 +2040,7 @@
label_clear: __('Clear all messages'), label_clear: __('Clear all messages'),
label_end_encrypted_conversation: __('End encrypted conversation'), label_end_encrypted_conversation: __('End encrypted conversation'),
label_insert_smiley: __('Insert a smiley'), label_insert_smiley: __('Insert a smiley'),
label_hide_participants: __('Hide the list of participants'), label_hide_occupants: __('Hide the list of occupants'),
label_refresh_encrypted_conversation: __('Refresh encrypted conversation'), label_refresh_encrypted_conversation: __('Refresh encrypted conversation'),
label_start_call: __('Start a call'), label_start_call: __('Start a call'),
label_start_encrypted_conversation: __('Start encrypted conversation'), label_start_encrypted_conversation: __('Start encrypted conversation'),
...@@ -2052,7 +2052,7 @@ ...@@ -2052,7 +2052,7 @@
show_call_button: converse.visible_toolbar_buttons.call, show_call_button: converse.visible_toolbar_buttons.call,
show_clear_button: converse.visible_toolbar_buttons.clear, show_clear_button: converse.visible_toolbar_buttons.clear,
show_emoticons: converse.visible_toolbar_buttons.emoticons, show_emoticons: converse.visible_toolbar_buttons.emoticons,
show_participants_toggle: this.is_chatroom && converse.visible_toolbar_buttons.toggle_participants show_occupants_toggle: this.is_chatroom && converse.visible_toolbar_buttons.toggle_occupants
}) })
) )
); );
...@@ -2673,7 +2673,7 @@ ...@@ -2673,7 +2673,7 @@
_.extend( _.extend(
this.model.toJSON(), { this.model.toJSON(), {
'desc_moderator': __('This user is a moderator'), 'desc_moderator': __('This user is a moderator'),
'desc_participant': __('This user can send messages in this room'), 'desc_occupant': __('This user can send messages in this room'),
'desc_visitor': __('This user can NOT send messages in this room') 'desc_visitor': __('This user can NOT send messages in this room')
}) })
); );
...@@ -2693,7 +2693,7 @@ ...@@ -2693,7 +2693,7 @@
this.ChatRoomOccupantsView = Backbone.Overview.extend({ this.ChatRoomOccupantsView = Backbone.Overview.extend({
tagName: 'div', tagName: 'div',
className: 'participants', className: 'occupants',
initialize: function () { initialize: function () {
this.model.on("add", this.onOccupantAdded, this); this.model.on("add", this.onOccupantAdded, this);
...@@ -2718,7 +2718,7 @@ ...@@ -2718,7 +2718,7 @@
view.model = item; view.model = item;
view.initialize(); view.initialize();
} }
this.$('.participant-list').append(view.render().$el); this.$('.occupant-list').append(view.render().$el);
}, },
parsePresence: function (pres) { parsePresence: function (pres) {
...@@ -2824,7 +2824,7 @@ ...@@ -2824,7 +2824,7 @@
'click .toggle-smiley ul li': 'insertEmoticon', 'click .toggle-smiley ul li': 'insertEmoticon',
'click .toggle-clear': 'clearChatRoomMessages', 'click .toggle-clear': 'clearChatRoomMessages',
'click .toggle-call': 'toggleCall', 'click .toggle-call': 'toggleCall',
'click .toggle-participants a': 'toggleOccupants', 'click .toggle-occupants a': 'toggleOccupants',
'keypress textarea.chat-textarea': 'keyPressed', 'keypress textarea.chat-textarea': 'keyPressed',
'mousedown .dragresize-top': 'onStartVerticalResize', 'mousedown .dragresize-top': 'onStartVerticalResize',
'mousedown .dragresize-left': 'onStartHorizontalResize', 'mousedown .dragresize-left': 'onStartHorizontalResize',
...@@ -2905,12 +2905,12 @@ ...@@ -2905,12 +2905,12 @@
if (!this.model.get('hidden_occupants')) { if (!this.model.get('hidden_occupants')) {
this.model.save({hidden_occupants: true}); this.model.save({hidden_occupants: true});
$el.removeClass('icon-hide-users').addClass('icon-show-users'); $el.removeClass('icon-hide-users').addClass('icon-show-users');
this.$('div.participants').addClass('hidden'); this.$('div.occupants').addClass('hidden');
this.scrollDown(); this.scrollDown();
} else { } else {
this.model.save({hidden_occupants: false}); this.model.save({hidden_occupants: false});
$el.removeClass('icon-show-users').addClass('icon-hide-users'); $el.removeClass('icon-show-users').addClass('icon-hide-users');
this.$('div.participants').removeClass('hidden'); this.$('div.occupants').removeClass('hidden');
this.scrollDown(); this.scrollDown();
} }
}, },
...@@ -3026,7 +3026,7 @@ ...@@ -3026,7 +3026,7 @@
case 'deop': case 'deop':
if (!this.validateRoleChangeCommand(match[1], args)) { break; } if (!this.validateRoleChangeCommand(match[1], args)) { break; }
this.modifyRole( this.modifyRole(
this.model.get('jid'), args[0], 'participant', args[1], this.model.get('jid'), args[0], 'occupant', args[1],
undefined, this.onCommandError.bind(this)); undefined, this.onCommandError.bind(this));
break; break;
case 'help': case 'help':
...@@ -3034,7 +3034,7 @@ ...@@ -3034,7 +3034,7 @@
'<strong>/admin</strong>: ' +__("Change user's affiliation to admin"), '<strong>/admin</strong>: ' +__("Change user's affiliation to admin"),
'<strong>/ban</strong>: ' +__('Ban user from room'), '<strong>/ban</strong>: ' +__('Ban user from room'),
'<strong>/clear</strong>: ' +__('Remove messages'), '<strong>/clear</strong>: ' +__('Remove messages'),
'<strong>/deop</strong>: ' +__('Change user role to participant'), '<strong>/deop</strong>: ' +__('Change user role to occupant'),
'<strong>/help</strong>: ' +__('Show this menu'), '<strong>/help</strong>: ' +__('Show this menu'),
'<strong>/kick</strong>: ' +__('Kick user from room'), '<strong>/kick</strong>: ' +__('Kick user from room'),
'<strong>/me</strong>: ' +__('Write in 3rd person'), '<strong>/me</strong>: ' +__('Write in 3rd person'),
...@@ -3103,7 +3103,7 @@ ...@@ -3103,7 +3103,7 @@
case 'voice': case 'voice':
if (!this.validateRoleChangeCommand(match[1], args)) { break; } if (!this.validateRoleChangeCommand(match[1], args)) { break; }
this.modifyRole( this.modifyRole(
this.model.get('jid'), args[0], 'participant', args[1], this.model.get('jid'), args[0], 'occupant', args[1],
undefined, this.onCommandError.bind(this)); undefined, this.onCommandError.bind(this));
break; break;
default: default:
...@@ -3236,7 +3236,7 @@ ...@@ -3236,7 +3236,7 @@
function () { function () {
$(this).remove(); $(this).remove();
that.$el.find('.chat-area').show(); that.$el.find('.chat-area').show();
that.$el.find('.participants').removeClass('hidden'); that.$el.find('.occupants').removeClass('hidden');
}); });
}, },
...@@ -3255,7 +3255,7 @@ ...@@ -3255,7 +3255,7 @@
function () { function () {
$(this).remove(); $(this).remove();
that.$el.find('.chat-area').show(); that.$el.find('.chat-area').show();
that.$el.find('.participants').removeClass('hidden'); that.$el.find('.occupants').removeClass('hidden');
}); });
}, },
...@@ -3296,7 +3296,7 @@ ...@@ -3296,7 +3296,7 @@
showDisconnectMessage: function (msg) { showDisconnectMessage: function (msg) {
this.$('.chat-area').hide(); this.$('.chat-area').hide();
this.$('.participants').hide(); this.$('.occupants').hide();
this.$('span.centered.spinner').remove(); this.$('span.centered.spinner').remove();
this.$('.chatroom-body').append($('<p>'+msg+'</p>')); this.$('.chatroom-body').append($('<p>'+msg+'</p>'));
}, },
......
...@@ -1379,7 +1379,7 @@ ...@@ -1379,7 +1379,7 @@
#conversejs .chatbox form.sendXMPPMessage .chat-toolbar .private a, #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .private a,
#conversejs .chatbox form.sendXMPPMessage .chat-toolbar .private { #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .private {
color: #4b7003; } color: #4b7003; }
#conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-participants, #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-occupants,
#conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-clear, #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-clear,
#conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-otr { #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-otr {
float: right; } float: right; }
...@@ -1879,7 +1879,7 @@ ...@@ -1879,7 +1879,7 @@
font-weight: bold; } font-weight: bold; }
#conversejs .chatroom .box-flyout .chatroom-body .chat-msg-room { #conversejs .chatroom .box-flyout .chatroom-body .chat-msg-room {
color: #1A9707; } color: #1A9707; }
#conversejs .chatroom .box-flyout .chatroom-body .participants { #conversejs .chatroom .box-flyout .chatroom-body .occupants {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
background-color: white; background-color: white;
...@@ -1889,16 +1889,16 @@ ...@@ -1889,16 +1889,16 @@
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
width: 100px; width: 100px;
height: 100%; } height: 100%; }
#conversejs .chatroom .box-flyout .chatroom-body .participants.hidden { #conversejs .chatroom .box-flyout .chatroom-body .occupants.hidden {
display: none; } display: none; }
#conversejs .chatroom .box-flyout .chatroom-body .participants .participants-heading { #conversejs .chatroom .box-flyout .chatroom-body .occupants .occupants-heading {
padding: 0.3em; padding: 0.3em;
font-weight: bold; } font-weight: bold; }
#conversejs .chatroom .box-flyout .chatroom-body .participants .participant-list { #conversejs .chatroom .box-flyout .chatroom-body .occupants .occupant-list {
height: 100%; height: 100%;
overflow-y: scroll; overflow-y: scroll;
list-style: none; } list-style: none; }
#conversejs .chatroom .box-flyout .chatroom-body .participants .participant-list li { #conversejs .chatroom .box-flyout .chatroom-body .occupants .occupant-list li {
cursor: default; cursor: default;
display: block; display: block;
font-size: 12px; font-size: 12px;
...@@ -1907,7 +1907,7 @@ ...@@ -1907,7 +1907,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
width: 100px; } width: 100px; }
#conversejs .chatroom .box-flyout .chatroom-body .participants .participant-list li.moderator { #conversejs .chatroom .box-flyout .chatroom-body .occupants .occupant-list li.moderator {
color: #D24E2B; } color: #D24E2B; }
#conversejs .chatroom .box-flyout .chatroom-body .chatroom-form-container { #conversejs .chatroom .box-flyout .chatroom-body .chatroom-form-container {
background-color: white; background-color: white;
......
...@@ -184,7 +184,7 @@ Changelog ...@@ -184,7 +184,7 @@ Changelog
See the `keepalive <https://conversejs.org/docs/html/configuration.html#keepalive>`_ configuration setting. [jcbrand] See the `keepalive <https://conversejs.org/docs/html/configuration.html#keepalive>`_ configuration setting. [jcbrand]
* Allow changing of nickname in a chat room via /nick command. [jcbrand] * Allow changing of nickname in a chat room via /nick command. [jcbrand]
* Allow a chat room user to be muted or unmuted with the /mute and /voice commands. [jcbrand] * Allow a chat room user to be muted or unmuted with the /mute and /voice commands. [jcbrand]
* Add a chat room toolbar button for toggling the list of participants. [jcbrand] * Add a chat room toolbar button for toggling the list of occupants. [jcbrand]
* Converse.js now responds to XEP-0030: Service Discovery requests. [jcbrand] * Converse.js now responds to XEP-0030: Service Discovery requests. [jcbrand]
* Bugfix. Roster groups all appear offline after page reload (with prebind). * Bugfix. Roster groups all appear offline after page reload (with prebind).
See http://librelist.com/browser//conversejs/2014/8/26/problem-with-contact-list-everyone-is-offline/ [heban and jcbrand] See http://librelist.com/browser//conversejs/2014/8/26/problem-with-contact-list-everyone-is-offline/ [heban and jcbrand]
......
...@@ -629,7 +629,7 @@ visible_toolbar_buttons ...@@ -629,7 +629,7 @@ visible_toolbar_buttons
call: false, call: false,
clear: true, clear: true,
emoticons: true, emoticons: true,
toggle_participants: true toggle_occupants: true
} }
Allows you to show or hide buttons on the chat boxes' toolbars. Allows you to show or hide buttons on the chat boxes' toolbars.
...@@ -647,8 +647,8 @@ Allows you to show or hide buttons on the chat boxes' toolbars. ...@@ -647,8 +647,8 @@ Allows you to show or hide buttons on the chat boxes' toolbars.
Provides a button for clearing messages from a chat box. Provides a button for clearing messages from a chat box.
* *emoticons*: * *emoticons*:
Enables rendering of emoticons and provides a toolbar button for choosing them. Enables rendering of emoticons and provides a toolbar button for choosing them.
* toggle_participants: * toggle_occupants:
Shows a button for toggling (i.e. showing/hiding) the list of participants in a chat room. Shows a button for toggling (i.e. showing/hiding) the list of occupants in a chat room.
.. _`websocket-url`: .. _`websocket-url`:
......
...@@ -73,7 +73,7 @@ Here are the different commands that may be used in a chat room: ...@@ -73,7 +73,7 @@ Here are the different commands that may be used in a chat room:
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
| **clear** | Clear the messages shown in the chat room. | /clear | | **clear** | Clear the messages shown in the chat room. | /clear |
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
| **deop** | Make a moderator a normal participant. | /deop $nickname [$reason] | | **deop** | Make a moderator a normal occupant. | /deop $nickname [$reason] |
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
| **help** | Show the list of available commands. | /help | | **help** | Show the list of available commands. | /help |
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
...@@ -85,7 +85,7 @@ Here are the different commands that may be used in a chat room: ...@@ -85,7 +85,7 @@ Here are the different commands that may be used in a chat room:
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
| **nick** | Change your nickname. | /nick $nickname | | **nick** | Change your nickname. | /nick $nickname |
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
| **op** | Make a normal participant a moderator. | /op $nickname [$reason] | | **op** | Make a normal occupant a moderator. | /op $nickname [$reason] |
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
| **topic** | Set the topic of the chat room. | /topic ${topic text} | | **topic** | Set the topic of the chat room. | /topic ${topic text} |
+------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+ +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
......
...@@ -246,10 +246,6 @@ ...@@ -246,10 +246,6 @@
null, null,
"" ""
], ],
"Hide the list of participants": [
null,
"Verskuil die lys van deelnemers"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"Verfris versleutelde gesprek" "Verfris versleutelde gesprek"
...@@ -470,10 +466,6 @@ ...@@ -470,10 +466,6 @@
null, null,
"Verban gebruiker uit hierdie kletskamer" "Verban gebruiker uit hierdie kletskamer"
], ],
"Change user role to participant": [
null,
"Verander gebruikersrol na deelnemer"
],
"Kick user from room": [ "Kick user from room": [
null, null,
"Skop gebruiker uit hierdie kletskamer" "Skop gebruiker uit hierdie kletskamer"
......
This diff is collapsed.
This diff is collapsed.
...@@ -243,10 +243,6 @@ ...@@ -243,10 +243,6 @@
null, null,
"" ""
], ],
"Hide the list of participants": [
null,
"Teilnehmerliste ausblenden"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"" ""
...@@ -467,10 +463,6 @@ ...@@ -467,10 +463,6 @@
null, null,
"Verbanne einen Benutzer aus dem Raum." "Verbanne einen Benutzer aus dem Raum."
], ],
"Change user role to participant": [
null,
"Benutzerrolle zu Teilnehmer ändern"
],
"Kick user from room": [ "Kick user from room": [
null, null,
"Werfe einen Benutzer aus dem Raum." "Werfe einen Benutzer aus dem Raum."
......
This diff is collapsed.
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -471,7 +471,7 @@ ...@@ -471,7 +471,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -247,10 +247,6 @@ ...@@ -247,10 +247,6 @@
null, null,
"" ""
], ],
"Hide the list of participants": [
null,
"Cacher la liste des participants"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"Actualiser la conversation cryptée" "Actualiser la conversation cryptée"
...@@ -471,10 +467,6 @@ ...@@ -471,10 +467,6 @@
null, null,
"Bannir l'utilisateur du salon" "Bannir l'utilisateur du salon"
], ],
"Change user role to participant": [
null,
"Changer le rôle de l'utilisateur en participant"
],
"Kick user from room": [ "Kick user from room": [
null, null,
"Expulser l'utilisateur du salon" "Expulser l'utilisateur du salon"
......
This diff is collapsed.
...@@ -247,10 +247,6 @@ ...@@ -247,10 +247,6 @@
null, null,
"הכנס סמיילי" "הכנס סמיילי"
], ],
"Hide the list of participants": [
null,
"הסתר רשימת משתתפים"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"רענן ישיבה מוצפנת" "רענן ישיבה מוצפנת"
...@@ -471,10 +467,6 @@ ...@@ -471,10 +467,6 @@
null, null,
"אסור משתמש מתוך חדר" "אסור משתמש מתוך חדר"
], ],
"Change user role to participant": [
null,
"שנה תפקיד משתמש למשתתף"
],
"Kick user from room": [ "Kick user from room": [
null, null,
"בעט משתמש מתוך חדר" "בעט משתמש מתוך חדר"
......
This diff is collapsed.
...@@ -234,10 +234,6 @@ ...@@ -234,10 +234,6 @@
null, null,
"" ""
], ],
"Hide the list of participants": [
null,
"A jelenlevők listájának elrejtése"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"A titkosított kapcsolat frissítése" "A titkosított kapcsolat frissítése"
......
This diff is collapsed.
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -398,7 +398,7 @@ ...@@ -398,7 +398,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -471,7 +471,7 @@ ...@@ -471,7 +471,7 @@
null, null,
"Bandisci utente dalla stanza" "Bandisci utente dalla stanza"
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -235,10 +235,6 @@ ...@@ -235,10 +235,6 @@
null, null,
"" ""
], ],
"Hide the list of participants": [
null,
"Skjul deltakerlisten"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"Last inn kryptert samtale på nytt" "Last inn kryptert samtale på nytt"
......
This diff is collapsed.
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -235,10 +235,6 @@ ...@@ -235,10 +235,6 @@
null, null,
"" ""
], ],
"Hide the list of participants": [
null,
"Ukryj listę rozmówców"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"Odśwież szyfrowaną rozmowę" "Odśwież szyfrowaną rozmowę"
......
This diff is collapsed.
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -387,7 +387,7 @@ ...@@ -387,7 +387,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -247,10 +247,6 @@ ...@@ -247,10 +247,6 @@
null, null,
"" ""
], ],
"Hide the list of participants": [
null,
"Сховати список учасників"
],
"Refresh encrypted conversation": [ "Refresh encrypted conversation": [
null, null,
"Оновити криптовану розмову" "Оновити криптовану розмову"
...@@ -471,10 +467,6 @@ ...@@ -471,10 +467,6 @@
null, null,
"Заблокувати і викинути з кімнати" "Заблокувати і викинути з кімнати"
], ],
"Change user role to participant": [
null,
"Зробити користувача учасником"
],
"Kick user from room": [ "Kick user from room": [
null, null,
"Викинути з кімнати" "Викинути з кімнати"
......
This diff is collapsed.
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
null, null,
"" ""
], ],
"Hide the list of participants": [ "Hide the list of occupants": [
null, null,
"" ""
], ],
...@@ -394,7 +394,7 @@ ...@@ -394,7 +394,7 @@
null, null,
"" ""
], ],
"Change user role to participant": [ "Change user role to occupant": [
null, null,
"" ""
], ],
......
This diff is collapsed.
...@@ -153,17 +153,17 @@ $(document).ready(function () { ...@@ -153,17 +153,17 @@ $(document).ready(function () {
}); });
}); });
$('.toggle-participants a').click(function (ev) { $('.toggle-occupants a').click(function (ev) {
var $el = $(ev.target); var $el = $(ev.target);
if ($el.hasClass("icon-hide-users")) { if ($el.hasClass("icon-hide-users")) {
$el.removeClass('icon-hide-users').addClass('icon-show-users'); $el.removeClass('icon-hide-users').addClass('icon-show-users');
$('div.participants').animate({width: 0}).hide(); $('div.occupants').animate({width: 0}).hide();
$el.closest('.chat-area').animate({width: '100%'}); $el.closest('.chat-area').animate({width: '100%'});
$el.closest('form.sendXMPPMessage').animate({width: '100%'}); $el.closest('form.sendXMPPMessage').animate({width: '100%'});
} else { } else {
$el.removeClass('icon-show-users').addClass('icon-hide-users'); $el.removeClass('icon-show-users').addClass('icon-hide-users');
$el.closest('.chat-area').animate({width: '200px'}, function () { $el.closest('.chat-area').animate({width: '200px'}, function () {
$('div.participants').css({width: '100px'}).show(); $('div.occupants').css({width: '100px'}).show();
}); });
$el.closest('form.sendXMPPMessage').animate({width: '200px'}); $el.closest('form.sendXMPPMessage').animate({width: '200px'});
} }
......
...@@ -83,21 +83,21 @@ ...@@ -83,21 +83,21 @@
<li><a class="icon-heart" href="#" data-emoticon="<3"></a></li> <li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>
</ul> </ul>
</li> </li>
<li class="toggle-participants"><a class="icon-hide-users" title="Hide the list of participants"></a></li> <li class="toggle-occupants"><a class="icon-hide-users" title="Hide the list of occupants"></a></li>
<li class="toggle-clear"><a class="icon-remove" title="Clear all messages"></a></li> <li class="toggle-clear"><a class="icon-remove" title="Clear all messages"></a></li>
</ul> </ul>
<textarea type="text" class="chat-textarea" placeholder="Message"></textarea> <textarea type="text" class="chat-textarea" placeholder="Message"></textarea>
</form> </form>
</div> </div>
<div class="participants"> <div class="occupants">
<form class="room-invite"> <form class="room-invite">
<span class="twitter-typeahead" style="position: relative; display: inline-block; direction: ltr;"><input class="invited-contact tt-hint" type="text" readonly="" autocomplete="off" spellcheck="false" tabindex="-1" style="position: absolute; top: 0px; left: 0px; border-color: transparent; box-shadow: none; opacity: 1;"><input class="invited-contact tt-input" placeholder="Invite..." type="text" autocomplete="off" spellcheck="false" dir="auto" style="position: relative; vertical-align: top; background-color: transparent;"><pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre;"></pre><span class="tt-dropdown-menu" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="tt-dataset-contacts-dataset"></div></span></span> <span class="twitter-typeahead" style="position: relative; display: inline-block; direction: ltr;"><input class="invited-contact tt-hint" type="text" readonly="" autocomplete="off" spellcheck="false" tabindex="-1" style="position: absolute; top: 0px; left: 0px; border-color: transparent; box-shadow: none; opacity: 1;"><input class="invited-contact tt-input" placeholder="Invite..." type="text" autocomplete="off" spellcheck="false" dir="auto" style="position: relative; vertical-align: top; background-color: transparent;"><pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre;"></pre><span class="tt-dropdown-menu" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="tt-dataset-contacts-dataset"></div></span></span>
</form> </form>
<label>Occupants:</label> <label>Occupants:</label>
<ul class="participant-list"> <ul class="occupant-list">
<li class="participant" title="This user can send messages in this room">Obi-wan Kenobi, Jedi Master</li> <li class="occupant" title="This user can send messages in this room">Obi-wan Kenobi, Jedi Master</li>
<li class="participant" title="This user can send messages in this room">jabber the hut</li> <li class="occupant" title="This user can send messages in this room">jabber the hut</li>
<li class="participant" title="This user can send messages in this room">leia</li> <li class="occupant" title="This user can send messages in this room">leia</li>
<li class="moderator" title="This user is a moderator">luke</li> <li class="moderator" title="This user is a moderator">luke</li>
</ul> </ul>
</div> </div>
...@@ -266,17 +266,17 @@ $(document).ready(function () { ...@@ -266,17 +266,17 @@ $(document).ready(function () {
}); });
}); });
$('.toggle-participants a').click(function (ev) { $('.toggle-occupants a').click(function (ev) {
var $el = $(ev.target); var $el = $(ev.target);
if ($el.hasClass("icon-hide-users")) { if ($el.hasClass("icon-hide-users")) {
$el.removeClass('icon-hide-users').addClass('icon-show-users'); $el.removeClass('icon-hide-users').addClass('icon-show-users');
$('div.participants').animate({width: 0}).hide(); $('div.occupants').animate({width: 0}).hide();
$el.closest('.chat-area').animate({width: '100%'}); $el.closest('.chat-area').animate({width: '100%'});
$el.closest('form.sendXMPPMessage').animate({width: '100%'}); $el.closest('form.sendXMPPMessage').animate({width: '100%'});
} else { } else {
$el.removeClass('icon-show-users').addClass('icon-hide-users'); $el.removeClass('icon-show-users').addClass('icon-hide-users');
$el.closest('.chat-area').animate({width: '200px'}, function () { $el.closest('.chat-area').animate({width: '200px'}, function () {
$('div.participants').css({width: '100px'}).show(); $('div.occupants').css({width: '100px'}).show();
}); });
$el.closest('form.sendXMPPMessage').animate({width: '200px'}); $el.closest('form.sendXMPPMessage').animate({width: '200px'});
} }
......
...@@ -380,21 +380,21 @@ ...@@ -380,21 +380,21 @@
<li><a class="icon-heart" href="#" data-emoticon="<3"></a></li> <li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>
</ul> </ul>
</li> </li>
<li class="toggle-participants"><a class="icon-hide-users" title="Hide the list of participants"></a></li> <li class="toggle-occupants"><a class="icon-hide-users" title="Hide the list of occupants"></a></li>
<li class="toggle-clear"><a class="icon-remove" title="Clear all messages"></a></li> <li class="toggle-clear"><a class="icon-remove" title="Clear all messages"></a></li>
</ul> </ul>
<textarea type="text" class="chat-textarea" placeholder="Message"></textarea> <textarea type="text" class="chat-textarea" placeholder="Message"></textarea>
</form> </form>
</div> </div>
<div class="participants"> <div class="occupants">
<form class="pure-form room-invite"> <form class="pure-form room-invite">
<span class="twitter-typeahead" style="position: relative; display: inline-block; direction: ltr;"><input class="invited-contact tt-hint" type="text" readonly="" autocomplete="off" spellcheck="false" tabindex="-1" style="position: absolute; top: 0px; left: 0px; border-color: transparent; box-shadow: none; opacity: 1;"><input class="invited-contact tt-input" placeholder="Invite..." type="text" autocomplete="off" spellcheck="false" dir="auto" style="position: relative; vertical-align: top; background-color: transparent;"><pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre;"></pre><span class="tt-dropdown-menu" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="tt-dataset-contacts-dataset"></div></span></span> <span class="twitter-typeahead" style="position: relative; display: inline-block; direction: ltr;"><input class="invited-contact tt-hint" type="text" readonly="" autocomplete="off" spellcheck="false" tabindex="-1" style="position: absolute; top: 0px; left: 0px; border-color: transparent; box-shadow: none; opacity: 1;"><input class="invited-contact tt-input" placeholder="Invite..." type="text" autocomplete="off" spellcheck="false" dir="auto" style="position: relative; vertical-align: top; background-color: transparent;"><pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre;"></pre><span class="tt-dropdown-menu" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="tt-dataset-contacts-dataset"></div></span></span>
</form> </form>
<p class="participants-heading">Occupants:</strong> <p class="occupants-heading">Occupants:</strong>
<ul class="participant-list"> <ul class="occupant-list">
<li class="participant" title="This user can send messages in this room">Obi-wan Kenobi, Jedi Master</li> <li class="occupant" title="This user can send messages in this room">Obi-wan Kenobi, Jedi Master</li>
<li class="participant" title="This user can send messages in this room">jabber the hut</li> <li class="occupant" title="This user can send messages in this room">jabber the hut</li>
<li class="participant" title="This user can send messages in this room">leia</li> <li class="occupant" title="This user can send messages in this room">leia</li>
<li class="moderator" title="This user is a moderator">luke</li> <li class="moderator" title="This user is a moderator">luke</li>
</ul> </ul>
</div> </div>
...@@ -567,17 +567,17 @@ $(document).ready(function () { ...@@ -567,17 +567,17 @@ $(document).ready(function () {
}); });
}); });
$('.toggle-participants a').click(function (ev) { $('.toggle-occupants a').click(function (ev) {
var $el = $(ev.target); var $el = $(ev.target);
if ($el.hasClass("icon-hide-users")) { if ($el.hasClass("icon-hide-users")) {
$el.removeClass('icon-hide-users').addClass('icon-show-users'); $el.removeClass('icon-hide-users').addClass('icon-show-users');
$('div.participants').animate({width: 0}).hide(); $('div.occupants').animate({width: 0}).hide();
$el.closest('.chat-area').animate({width: '100%'}); $el.closest('.chat-area').animate({width: '100%'});
$el.closest('form.sendXMPPMessage').animate({width: '100%'}); $el.closest('form.sendXMPPMessage').animate({width: '100%'});
} else { } else {
$el.removeClass('icon-show-users').addClass('icon-hide-users'); $el.removeClass('icon-show-users').addClass('icon-hide-users');
$el.closest('.chat-area').animate({width: '200px'}, function () { $el.closest('.chat-area').animate({width: '200px'}, function () {
$('div.participants').css({width: '100px'}).show(); $('div.occupants').css({width: '100px'}).show();
}); });
$el.closest('form.sendXMPPMessage').animate({width: '200px'}); $el.closest('form.sendXMPPMessage').animate({width: '200px'});
} }
......
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
.private { .private {
color: #4b7003; color: #4b7003;
} }
.toggle-participants, .toggle-occupants,
.toggle-clear, .toggle-clear,
.toggle-otr { .toggle-otr {
float: right; float: right;
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
.chat-msg-room { .chat-msg-room {
color: $message-them-color; color: $message-them-color;
} }
.participants { .occupants {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
background-color: white; background-color: white;
...@@ -54,11 +54,11 @@ ...@@ -54,11 +54,11 @@
&.hidden { &.hidden {
display: none; display: none;
} }
.participants-heading { .occupants-heading {
padding: 0.3em; padding: 0.3em;
font-weight: bold; font-weight: bold;
} }
.participant-list { .occupant-list {
height: 100%; height: 100%;
overflow-y: scroll; overflow-y: scroll;
list-style: none; list-style: none;
......
This diff is collapsed.
<!-- <div class="participants"> --> <!-- <div class="occupants"> -->
<form class="pure-form room-invite"> <form class="pure-form room-invite">
<input class="invited-contact" placeholder="{{label_invitation}}" type="text"/> <input class="invited-contact" placeholder="{{label_invitation}}" type="text"/>
</form> </form>
<p class="participants-heading">{{label_occupants}}:</p> <p class="occupants-heading">{{label_occupants}}:</p>
<ul class="participant-list"></ul> <ul class="occupant-list"></ul>
<!-- </div> --> <!-- </div> -->
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
{[ if (role === "moderator") { ]} {[ if (role === "moderator") { ]}
title="{{desc_moderator}}" title="{{desc_moderator}}"
{[ } ]} {[ } ]}
{[ if (role === "participant") { ]} {[ if (role === "occupant") { ]}
title="{{desc_participant}}" title="{{desc_occupant}}"
{[ } ]} {[ } ]}
{[ if (role === "visitor") { ]} {[ if (role === "visitor") { ]}
title="{{desc_visitor}}" title="{{desc_visitor}}"
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
{[ if (show_call_button) { ]} {[ if (show_call_button) { ]}
<li class="toggle-call"><a class="icon-phone" title="{{label_start_call}}"></a></li> <li class="toggle-call"><a class="icon-phone" title="{{label_start_call}}"></a></li>
{[ } ]} {[ } ]}
{[ if (show_participants_toggle) { ]} {[ if (show_occupants_toggle) { ]}
<li class="toggle-participants"><a class="icon-hide-users" title="{{label_hide_participants}}"></a></li> <li class="toggle-occupants"><a class="icon-hide-users" title="{{label_hide_occupants}}"></a></li>
{[ } ]} {[ } ]}
{[ if (show_clear_button) { ]} {[ if (show_clear_button) { ]}
<li class="toggle-clear"><a class="icon-remove" title="{{label_clear}}"></a></li> <li class="toggle-clear"><a class="icon-remove" title="{{label_clear}}"></a></li>
......
...@@ -37,10 +37,10 @@ ...@@ -37,10 +37,10 @@
mock.chatroom_roles = { mock.chatroom_roles = {
'Anne Ebersbacher': { affiliation: "owner", role: "moderator" }, 'Anne Ebersbacher': { affiliation: "owner", role: "moderator" },
'Dirk Theissen': { affiliation: "admin", role: "moderator" }, 'Dirk Theissen': { affiliation: "admin", role: "moderator" },
'Dyon van de Wege': { affiliation: "member", role: "participant" }, 'Dyon van de Wege': { affiliation: "member", role: "occupant" },
'Felix Hofmann': { affiliation: "member", role: "participant" }, 'Felix Hofmann': { affiliation: "member", role: "occupant" },
'Ka Lek': { affiliation: "member", role: "participant" }, 'Ka Lek': { affiliation: "member", role: "occupant" },
'Thomas Kalb': { affiliation: "member", role: "participant" } 'Thomas Kalb': { affiliation: "member", role: "occupant" }
}; };
mock.event = { mock.event = {
......
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