Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
bccdedc6
Commit
bccdedc6
authored
Feb 28, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also show a hint explaining the roomchat status
parent
f20d391e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
7 deletions
+20
-7
css/converse.css
css/converse.css
+4
-3
sass/_chatrooms.scss
sass/_chatrooms.scss
+2
-1
src/converse-core.js
src/converse-core.js
+9
-0
src/converse-muc.js
src/converse-muc.js
+4
-2
src/templates/occupant.html
src/templates/occupant.html
+1
-1
No files found.
css/converse.css
View file @
bccdedc6
...
...
@@ -2375,15 +2375,16 @@
margin-right
:
0.5em
;
width
:
0.5em
;
height
:
0.5em
;
}
#converse-embedded-chat
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-online
,
#conversejs
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-online
{
#converse-embedded-chat
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-online
,
#converse-embedded-chat
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-chat
,
#conversejs
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-online
,
#conversejs
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-chat
{
background-color
:
green
;
}
#converse-embedded-chat
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-dnd
,
#conversejs
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-dnd
{
background-color
:
red
;
}
#converse-embedded-chat
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-away
,
#conversejs
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-away
{
background-color
:
orange
;
}
background-color
:
dark
orange
;
}
#converse-embedded-chat
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-xa
,
#conversejs
.chatroom
.box-flyout
.chatroom-body
.occupants
ul
li
.occupant
.occupant-status.occupant-xa
{
background-color
:
orange
;
}
...
...
sass/_chatrooms.scss
View file @
bccdedc6
...
...
@@ -144,7 +144,8 @@
margin-right
:
0
.5em
;
width
:
0
.5em
;
height
:
0
.5em
;
&
.occupant-online
{
&
.occupant-online
,
&
.occupant-chat
{
background-color
:
green
;
}
&
.occupant-dnd
{
...
...
src/converse-core.js
View file @
bccdedc6
...
...
@@ -95,6 +95,15 @@
'
chat
'
:
1
,
// We currently don't differentiate between "chat" and "online"
'
online
'
:
1
};
_converse
.
PRETTY_CHAT_STATUS
=
{
'
offline
'
:
'
Offline
'
,
'
unavailable
'
:
'
Unavailable
'
,
'
xa
'
:
'
Extended Away
'
,
'
away
'
:
'
Away
'
,
'
dnd
'
:
'
Do not disturb
'
,
'
chat
'
:
'
Chattty
'
,
'
online
'
:
'
Online
'
};
_converse
.
ANONYMOUS
=
"
anonymous
"
;
_converse
.
CLOSED
=
'
closed
'
;
_converse
.
EXTERNAL
=
"
external
"
;
...
...
src/converse-muc.js
View file @
bccdedc6
...
...
@@ -1925,11 +1925,13 @@
},
render
:
function
()
{
var
show
=
this
.
model
.
get
(
'
show
'
)
||
'
online
'
;
var
new_el
=
tpl_occupant
(
_
.
extend
(
{
'
jid
'
:
''
,
'
show
'
:
'
online
'
,
'
hint_occupant
'
:
__
(
'
Click to mention this user in your message.
'
),
'
show
'
:
show
,
'
hint_show
'
:
_converse
.
PRETTY_CHAT_STATUS
[
show
],
'
hint_occupant
'
:
__
(
'
Click to mention
'
+
this
.
model
.
get
(
'
nick
'
)
+
'
in your message.
'
),
'
desc_moderator
'
:
__
(
'
This user is a moderator.
'
),
'
desc_occupant
'
:
__
(
'
This user can send messages in this room.
'
),
'
desc_visitor
'
:
__
(
'
This user can NOT send messages in this room.
'
)
...
...
src/templates/occupant.html
View file @
bccdedc6
...
...
@@ -10,4 +10,4 @@
{[
}
]}
{[
if
(!
_
.
includes
(["
visitor
",
"
occupant
",
"
moderator
"],
role
))
{
]}
title=
"{{{ jid }}} {{{ hint_occupant }}}"
{[
}
]}
><div
class=
"occupant-status occupant-{{{show}}} circle
"
></div>
{{{nick}}}
</li>
{[
}
]}
><div
class=
"occupant-status occupant-{{{show}}} circle"
title=
"{{{hint_show}}}
"
></div>
{{{nick}}}
</li>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment