diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-10-30 11:14:29 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-10-30 11:15:44 +0000 |
commit | d5aa9655223d5a57b76194b155a6366791dd084c (patch) | |
tree | c0e13896fbe7394d3ad1e857d5bef4fb40dcac80 /webclient/room/room.html | |
parent | Fix pep8 warnings (diff) | |
download | synapse-d5aa9655223d5a57b76194b155a6366791dd084c.tar.xz |
SYWEB-12: Add a 'Room Info' button which displays all state content.
Content displayed in a modal dialog. Currently only read-only.
Diffstat (limited to '')
-rw-r--r-- | webclient/room/room.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html index 38b6d591ea..3458e97039 100644 --- a/webclient/room/room.html +++ b/webclient/room/room.html @@ -13,6 +13,34 @@ </div> </script> + <script type="text/ng-template" id="roomInfoTemplate.html"> + <div class="modal-body"> + <table id="roomInfoTable"> + <tr> + <th> + Event Type + </th> + <th> + Content + </th> + </tr> + <tr ng-repeat="(key, event) in events.rooms[room_id] | stateEventsFilter"> + <td> + <pre>{{ key }}</pre> + </td> + <td> + <pre>{{ event.content | json }}</pre> + </td> + </tr> + </table> + </div> + <div class="modal-footer"> + <button ng-click="dismiss()" type="button" class="btn"> + Close + </button> + </div> + </script> + <div id="roomHeader"> <a href ng-click="goToPage('/')"><img src="img/logo-small.png" width="100" height="43" alt="[matrix]"/></a> <div class="roomHeaderInfo"> @@ -216,6 +244,9 @@ > Video Call </button> + <button ng-click="openRoomInfo()"> + Room Info + </button> </div> {{ feedback }} |