diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-08-16 01:07:23 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-08-16 01:07:23 +0100 |
commit | 207ef144c5e5d7db16d42c6f15b8efc33a354e92 (patch) | |
tree | 861fab2f8f8d08fe3afb3c85caaf199814fd3877 /webclient/room/room.html | |
parent | slightly hacky but more functional infinite scrolling (diff) | |
download | synapse-207ef144c5e5d7db16d42c6f15b8efc33a354e92.tar.xz |
display mtime_age in webclient
Diffstat (limited to 'webclient/room/room.html')
-rw-r--r-- | webclient/room/room.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html index 47c07c7fec..f08cb61763 100644 --- a/webclient/room/room.html +++ b/webclient/room/room.html @@ -16,7 +16,9 @@ <!-- FIXME: does allowing <wbr/> to be unescaped introduce HTML injections from user IDs and display names? --> <div class="userName" ng-bind-html="info.displayname || (name.substr(0, name.indexOf(':')) + '<wbr/>' + name.substr(name.indexOf(':'))) | to_trusted"></div> </td> - <td class="userPresence" ng-class="info.presenceState === 'online' ? 'online' : (info.presenceState === 'unavailable' ? 'unavailable' : '')" /> + <td class="userPresence" ng-class="info.presenceState === 'online' ? 'online' : (info.presenceState === 'unavailable' ? 'unavailable' : '')"> + {{ info.mtime_age | duration }} {{ info.mtime_age ? "ago" : "" }} + </td> </table> </div> |