Add grey idle icon

(imported from commit f04d74a999a16d0118fdccccf8dcffe9d3da6bb0)
This commit is contained in:
Leo Franchi 2013-02-14 10:35:48 -05:00
parent 6efcfdf593
commit a86599fc28
3 changed files with 8 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -949,6 +949,9 @@ exports.set_presence_list = function(users, presence_info) {
case activity.user_away:
user.addClass('away-icon');
break;
case activity.user_idle:
user.addClass('idle-icon')
break;
}
$('#user_presences').append(user);

View File

@ -95,26 +95,21 @@ a:hover code {
overflow-y: auto;
}
#user_presences li {
margin-left: 15px;
}
#user_presences li.active-icon {
margin-left: 0px;
}
#user_presences li.active-icon:before {
content: url(/static/images/presence/user-active.png);
margin-right: 6px; /* +9px image = 15px */
}
#user_presences li.away-icon {
margin-left: 0px;
}
#user_presences li.away-icon:before {
content: url(/static/images/presence/user-away.png);
margin-right: 6px; /* +9px image = 15px */
}
#user_presences li.idle-icon:before {
content: url(/static/images/presence/user-idle.png);
margin-right: 6px; /* +9px image = 15px */
}
ul.filters {
list-style-type: none;
padding-right: 1em;