webclient SYWEB-3 : Public rooms are bold. Can't think of a nicer way which doesn't clutter the recents list.

This commit is contained in:
Kegan Dougal 2014-09-17 16:29:21 +01:00
parent 246f5d2e20
commit 16f55d4275
4 changed files with 18 additions and 1 deletions

View File

@ -603,6 +603,10 @@ a:active { color: #000; }
width: auto;
}
.recentsPublicRoom {
font-weight: bold;
}
.recentsRoomSummaryUsersCount, .recentsRoomSummaryTS {
color: #888;
font-size: 12px;

View File

@ -511,6 +511,17 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
member = room.members[user_id];
}
return member;
},
setRoomVisibility: function(room_id, visible) {
if (!visible) {
return;
}
var room = $rootScope.events.rooms[room_id];
if (room) {
room.visibility = visible;
}
}
};
}]);

View File

@ -120,6 +120,8 @@ angular.module('eventStreamService', [])
if ("state" in room) {
eventHandlerService.handleEvents(room.state, false, true);
}
eventHandlerService.setRoomVisibility(room.room_id, room.visibility);
}
var presence = response.data.presence;

View File

@ -5,7 +5,7 @@
class ="recentsRoom"
ng-class="{'recentsRoomSelected': (room.room_id === recentsSelectedRoomID)}">
<tr>
<td class="recentsRoomName">
<td ng-class="room.visibility == 'public' ? 'recentsRoomName recentsPublicRoom' : 'recentsRoomName'">
{{ room.room_id | mRoomName }}
</td>
<td class="recentsRoomSummaryUsersCount">