summary refs log tree commit diff
path: root/webclient/home
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-08 12:11:36 -0700
committerKegan Dougal <kegan@matrix.org>2014-09-08 12:15:29 -0700
commit76fe7d4eba334cee8b5c18ac26da709106dff1a2 (patch)
tree7048fb140aa290d902d82b2911347f71e9078ecf /webclient/home
parentHandle the case where we don't have a common ancestor (diff)
downloadsynapse-76fe7d4eba334cee8b5c18ac26da709106dff1a2.tar.xz
Added num_joined_users key to /publicRooms for each room. Show this information in the webclient.
Diffstat (limited to 'webclient/home')
-rw-r--r--webclient/home/home.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/webclient/home/home.html b/webclient/home/home.html
index 12b3c7f14e..cf6771814c 100644
--- a/webclient/home/home.html
+++ b/webclient/home/home.html
@@ -25,11 +25,14 @@
     <h3>Public rooms</h3>
     
     <div class="public_rooms" ng-repeat="room in public_rooms | orderBy:'room_display_name'">
-        <div>
+        <div class="publicRoomEntry">
             <a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}" 
                 ng-class="room.room_display_name.toLowerCase().indexOf('#matrix:') === 0 ? 'roomHighlight' : ''">
                 {{ room.room_display_name }}
             </a>
+            <div ng-show="'num_joined_members' in room">
+                {{ room.num_joined_members }} {{ room.num_joined_members == 1 ? 'user' : 'users' }}
+            </div>
         </div>
     </div>
     <br/>