summary refs log tree commit diff
path: root/webclient/recents/recents.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-27 17:20:41 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-27 17:20:53 +0200
commitd9155b6a25d706edb85706a1c0cff6dacbdc1640 (patch)
treeb1b0119000e2c5ab0a3ca5866040764700a003c6 /webclient/recents/recents.html
parentAdded the recents component at the left hand side of the room page (diff)
downloadsynapse-d9155b6a25d706edb85706a1c0cff6dacbdc1640.tar.xz
Highlight the current room in the recents list
Diffstat (limited to 'webclient/recents/recents.html')
-rw-r--r--webclient/recents/recents.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/webclient/recents/recents.html b/webclient/recents/recents.html
index 6d2864ac97..6fda6c5c6b 100644
--- a/webclient/recents/recents.html
+++ b/webclient/recents/recents.html
@@ -1,6 +1,9 @@
 <div ng-controller="RecentsController" data-ng-init="onInit()">
     <table class="recentsTable">
-        <tbody ng-repeat="(rm_id, room) in rooms | orderRecents" ng-click="goToPage('room/' + (room.room_alias ? room.room_alias : room.room_id) )" class ="recentsRoom" >
+        <tbody ng-repeat="(rm_id, room) in rooms | orderRecents" 
+               ng-click="goToPage('room/' + (room.room_alias ? room.room_alias : room.room_id) )" 
+               class ="recentsRoom" 
+               ng-class="{'recentsRoomSelected': (room.room_id === recentsSelectedRoomID)}">
             <tr>
                 <td class="recentsRoomName">
                     {{ room.room_display_name }}