summary refs log tree commit diff
path: root/webclient/recents
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-24 01:12:59 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-24 01:12:59 +0100
commit7b8e24a588c394ff5c735b966078fe282dc5b833 (patch)
tree10594c951accf07f1ac7c91889d6334f2f1576c2 /webclient/recents
parentclose buttons on recents (SYWEB-68) (diff)
downloadsynapse-7b8e24a588c394ff5c735b966078fe282dc5b833.tar.xz
close buttons on recents (SYWEB-68)
Diffstat (limited to 'webclient/recents')
-rw-r--r--webclient/recents/recents.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/webclient/recents/recents.html b/webclient/recents/recents.html
index edfc1677eb..ff811b2b8d 100644
--- a/webclient/recents/recents.html
+++ b/webclient/recents/recents.html
@@ -2,7 +2,7 @@
     <table class="recentsTable">
         <tbody ng-repeat="(index, room) in events.rooms | orderRecents" 
                ng-click="goToPage('room/' + (room.room_alias ? room.room_alias : room.room_id) )" 
-               class ="recentsRoom" 
+               class="recentsRoom" 
                ng-class="{'recentsRoomSelected': (room.room_id === recentsSelectedRoomID)}">                                           
             <tr>
                 <td ng-class="room['m.room.join_rules'].content.join_rule == 'public' ? 'recentsRoomName recentsPublicRoom' : 'recentsRoomName'">
@@ -19,6 +19,8 @@
                     {{ lastMsg = eventHandlerService.getLastMessage(room.room_id, true);"" }}
 
                     {{ (lastMsg.ts) | date:'MMM d HH:mm' }}
+                    
+                    <img ng-click="leave(room.room_id); $event.stopPropagation();" src="img/close.png" width="10" height="10" style="margin-bottom: -1px; margin-left: 2px;" alt="close"/>
                 </td>
             </tr>