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
8977505f
Commit
8977505f
authored
Sep 13, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We didn't have an icon for unavailable state.
Also, the status description was not translation aware
parent
0dd4b3e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
converse.js
converse.js
+5
-4
fonticons/style.css
fonticons/style.css
+2
-1
spec/MainSpec.js
spec/MainSpec.js
+4
-0
No files found.
converse.js
View file @
8977505f
...
...
@@ -2260,10 +2260,11 @@
},
this
);
this
.
$el
.
addClass
(
'
current-xmpp-contact
'
);
var
status_desc
=
{
'
dnd
'
:
'
This contact is busy
'
,
'
online
'
:
'
This contact is online
'
,
'
offline
'
:
'
This contact is offline
'
,
'
away
'
:
'
This contact is away
'
'
dnd
'
:
__
(
'
This contact is busy
'
),
'
online
'
:
__
(
'
This contact is online
'
),
'
offline
'
:
__
(
'
This contact is offline
'
),
'
unavailable
'
:
__
(
'
This contact is unavailable
'
),
'
away
'
:
__
(
'
This contact is away
'
)
}[
item
.
get
(
'
chat_status
'
)
||
'
offline
'
];
this
.
$el
.
html
(
this
.
template
(
_
.
extend
(
item
.
toJSON
(),
{
'
status_desc
'
:
status_desc
})
...
...
fonticons/style.css
View file @
8977505f
...
...
@@ -28,7 +28,7 @@ Instead of a list of all class selectors,
you can use the generic selector below, but it's slower:
[class*="icon-"] {
*/
.icon-home
,
.icon-pencil
,
.icon-camera
,
.icon-camera-2
,
.icon-play
,
.icon-music
,
.icon-headphones
,
.icon-phone
,
.icon-phone-hang-up
,
.icon-address-book
,
.icon-notebook
,
.icon-envelop
,
.icon-pushpin
,
.icon-online
,
.icon-away
,
.icon-bubbles
,
.icon-bubbles-2
,
.icon-bubbles-3
,
.icon-user
,
.icon-users
,
.icon-quotes-left
,
.icon-spinner
,
.icon-search
,
.icon-cogs
,
.icon-wrench
,
.icon-unlocked
,
.icon-lock
,
.icon-lock-2
,
.icon-key
,
.icon-key-2
,
.icon-zoom-out
,
.icon-zoom-in
,
.icon-cog
,
.icon-remove
,
.icon-remove-2
,
.icon-eye
,
.icon-eye-blocked
,
.icon-attachment
,
.icon-globe
,
.icon-heart
,
.icon-happy
,
.icon-thumbs-up
,
.icon-smiley
,
.icon-tongue
,
.icon-sad
,
.icon-wink
,
.icon-wondering
,
.icon-confused
,
.icon-shocked
,
.icon-evil
,
.icon-angry
,
.icon-cool
,
.icon-grin
,
.icon-info
,
.icon-notification
,
.icon-warning
,
.icon-spell-check
,
.icon-volume-high
,
.icon-volume-medium
,
.icon-volume-low
,
.icon-volume-mute
,
.icon-volume-mute-2
,
.icon-volume-decrease
,
.icon-volume-increase
,
.icon-bold
,
.icon-underline
,
.icon-italic
,
.icon-strikethrough
,
.icon-new-tab
,
.icon-youtube
,
.icon-close
,
.icon-blocked
,
.icon-cancel-circle
,
.icon-minus
,
.icon-plus
,
.icon-checkbox-checked
,
.icon-checkbox-unchecked
,
.icon-checkbox-partial
,
.icon-radio-checked
,
.icon-radio-unchecked
,
.icon-room-info
,
.icon-newspaper
,
.icon-image
,
.icon-offline
,
.icon-dnd
{
.icon-home
,
.icon-pencil
,
.icon-camera
,
.icon-camera-2
,
.icon-play
,
.icon-music
,
.icon-headphones
,
.icon-phone
,
.icon-phone-hang-up
,
.icon-address-book
,
.icon-notebook
,
.icon-envelop
,
.icon-pushpin
,
.icon-online
,
.icon-away
,
.icon-bubbles
,
.icon-bubbles-2
,
.icon-bubbles-3
,
.icon-user
,
.icon-users
,
.icon-quotes-left
,
.icon-spinner
,
.icon-search
,
.icon-cogs
,
.icon-wrench
,
.icon-unlocked
,
.icon-lock
,
.icon-lock-2
,
.icon-key
,
.icon-key-2
,
.icon-zoom-out
,
.icon-zoom-in
,
.icon-cog
,
.icon-remove
,
.icon-remove-2
,
.icon-eye
,
.icon-eye-blocked
,
.icon-attachment
,
.icon-globe
,
.icon-heart
,
.icon-happy
,
.icon-thumbs-up
,
.icon-smiley
,
.icon-tongue
,
.icon-sad
,
.icon-wink
,
.icon-wondering
,
.icon-confused
,
.icon-shocked
,
.icon-evil
,
.icon-angry
,
.icon-cool
,
.icon-grin
,
.icon-info
,
.icon-notification
,
.icon-warning
,
.icon-spell-check
,
.icon-volume-high
,
.icon-volume-medium
,
.icon-volume-low
,
.icon-volume-mute
,
.icon-volume-mute-2
,
.icon-volume-decrease
,
.icon-volume-increase
,
.icon-bold
,
.icon-underline
,
.icon-italic
,
.icon-strikethrough
,
.icon-new-tab
,
.icon-youtube
,
.icon-close
,
.icon-blocked
,
.icon-cancel-circle
,
.icon-minus
,
.icon-plus
,
.icon-checkbox-checked
,
.icon-checkbox-unchecked
,
.icon-checkbox-partial
,
.icon-radio-checked
,
.icon-radio-unchecked
,
.icon-room-info
,
.icon-newspaper
,
.icon-image
,
.icon-offline
,
.icon-
unavailable
,
.icon-
dnd
{
font-family
:
'Converse-js'
;
speak
:
none
;
font-style
:
normal
;
...
...
@@ -287,6 +287,7 @@ you can use the generic selector below, but it's slower:
.icon-image
:before
{
content
:
"\2b14"
;
}
.icon-unavailable
:before
,
.icon-offline
:before
{
content
:
"\e002"
;
}
...
...
spec/MainSpec.js
View file @
8977505f
...
...
@@ -197,6 +197,10 @@
},
converse
));
describe
(
"
Existing Contacts
"
,
$
.
proxy
(
function
()
{
beforeEach
(
$
.
proxy
(
function
()
{
openControlBox
();
},
converse
));
it
(
"
do not have a heading if there aren't any
"
,
$
.
proxy
(
function
()
{
expect
(
this
.
rosterview
.
$el
.
find
(
'
dt#xmpp-contacts
'
).
css
(
'
display
'
)).
toEqual
(
'
none
'
);
},
converse
));
...
...
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