summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-02 11:54:11 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-02 11:54:35 +0200
commit828101dd5145d462add4900340874ea2147da994 (patch)
tree30c74fce2f819c899afe995674b287bb02ec4db7 /webclient/room/room.html
parentEnsure that event source unit tests could cope with get_new_events_for_user()... (diff)
downloadsynapse-828101dd5145d462add4900340874ea2147da994.tar.xz
Represent user power level in a room by a red bar at the bottom of his avatar image. The width of this bar depends on the power level.
Diffstat (limited to '')
-rw-r--r--webclient/room/room.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index e25c837aa0..e672b1d7e2 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -24,6 +24,7 @@
                          title="{{ member.id }}"
                          width="80" height="80"/>
                     <img class="userAvatarGradient" src="img/gradient.png" title="{{ member.id }}" width="80" height="24"/>
+                    <div class="userPowerLevel" ng-style="{'width': (10 * member.powerLevel) +'%'}"></div>
                     <div class="userName">{{ member.displayname || member.id.substr(0, member.id.indexOf(':')) }}<br/>{{ member.displayname ? "" : member.id.substr(member.id.indexOf(':')) }}</div>
                 </td>
                 <td class="userPresence" ng-class="(member.presence === 'online' ? 'online' : (member.presence === 'unavailable' ? 'unavailable' : '')) + ' ' + (member.membership == 'invite' ? 'invited' : '')">