summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 18:55:27 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 18:55:48 +0200
commit1a32b1f002bcc436070bacd931e6abbd40a793d1 (patch)
tree5f9746c0044fc3a3af95a4937df3e1d5067916f5 /webclient/room/room.html
parentAdded more terms. (diff)
downloadsynapse-1a32b1f002bcc436070bacd931e6abbd40a793d1.tar.xz
Normalise users power levels so that the user with the higher power level will have a bar covering 100% of the width of his avatar
Diffstat (limited to 'webclient/room/room.html')
-rw-r--r--webclient/room/room.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 05e87387a5..e29f511ecf 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -24,7 +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="userPowerLevel" ng-style="{'width': member.powerLevelNorm +'%'}"></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' : '')">