summary refs log tree commit diff
path: root/webclient/home/home.html
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-08 11:33:12 -0700
committerKegan Dougal <kegan@matrix.org>2014-09-08 11:33:12 -0700
commitde727f854a81c0a5610d82c4e173c13831836e9e (patch)
tree83bd2150dd4ae3d24f2756e7a8aa7d655abc0a32 /webclient/home/home.html
parentSort the public room list by display name. (diff)
downloadsynapse-de727f854a81c0a5610d82c4e173c13831836e9e.tar.xz
Make #matrix public rooms bold to make them stand out from the other public rooms. Ideally this would be metadata in /publicRooms to say something like 'featured channel', but for now, just make it a client side check.
Diffstat (limited to '')
-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 e3a49bb142..12b3c7f14e 100644
--- a/webclient/home/home.html
+++ b/webclient/home/home.html
@@ -26,7 +26,10 @@
     
     <div class="public_rooms" ng-repeat="room in public_rooms | orderBy:'room_display_name'">
         <div>
-            <a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}" >{{ room.room_display_name }}</a>
+            <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>
     </div>
     <br/>