diff options
author | David Baker <dbkr@matrix.org> | 2014-09-01 17:15:26 +0100 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-09-01 17:16:27 +0100 |
commit | 57f047a05a310883d534a6b01ac99916586fa584 (patch) | |
tree | d69f36cd696ae91686823f9e5601920b5615553e /webclient/index.html | |
parent | Flesh out Room Events. (diff) | |
download | synapse-57f047a05a310883d534a6b01ac99916586fa584.tar.xz |
Fairly simple move of the call status widget to the header bar (and therefore into the index page rather than the rooms page).
Diffstat (limited to 'webclient/index.html')
-rw-r--r-- | webclient/index.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webclient/index.html b/webclient/index.html index bf24e392ac..f016dbb877 100644 --- a/webclient/index.html +++ b/webclient/index.html @@ -44,6 +44,19 @@ <div id="header"> <!-- Do not show buttons on the login page --> <div id="headerContent" ng-hide="'/login' == location || '/register' == location"> + <div id="callBar"> + <div ng-show="currentCall.state == 'ringing'"> + Incoming call from {{ currentCall.user_id }} + <button ng-click="answerCall()">Answer</button> + <button ng-click="hangupCall()">Reject</button> + </div> + <button ng-click="hangupCall()" ng-show="currentCall && currentCall.state != 'ringing' && currentCall.state != 'ended' && currentCall.state != 'fledgling'">Hang up</button> + <span ng-show="currentCall.state == 'invite_sent'">Calling...</span> + <span ng-show="currentCall.state == 'connecting'">Call Connecting...</span> + <span ng-show="currentCall.state == 'connected'">Call Connected</span> + <span ng-show="currentCall.state == 'ended'">Call Ended</span> + <span style="display: none; ">{{ currentCall.state }}</span> + </div> <a href id="headerUserId" ng-click='goToUserPage(user_id)'>{{ user_id }}</a> <button ng-click='goToPage("/")'>Home</button> |