mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 19:04:13 -04:00
SYWEB-12: More formatting.
This commit is contained in:
parent
40342af459
commit
6f3f631fd1
4 changed files with 32 additions and 7 deletions
|
@ -1039,9 +1039,9 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
|
|||
.controller('RoomInfoController', function($scope, $modalInstance, $filter) {
|
||||
console.log("Displaying room info.");
|
||||
|
||||
$scope.submitState = function(eventType, content) {
|
||||
console.log("Submitting " + eventType + " with " + content);
|
||||
}
|
||||
$scope.submit = function(event) {
|
||||
console.error("submit >>> " + JSON.stringify(event));
|
||||
};
|
||||
|
||||
$scope.dismiss = $modalInstance.dismiss;
|
||||
|
||||
|
|
|
@ -17,15 +17,19 @@
|
|||
<div class="modal-body">
|
||||
<table class="room-info">
|
||||
<tr ng-repeat="(key, event) in events.rooms[room_id] | stateEventsFilter" class="room-info-event">
|
||||
<td class="room-info-event-meta">
|
||||
<td class="room-info-event-meta" width="30%">
|
||||
<span class="monospace">{{ key }}</span>
|
||||
<br/>
|
||||
{{ (event.origin_server_ts) | date:'MMM d HH:mm' }}
|
||||
<br/>
|
||||
Set by: <span class="monospace">{{ event.user_id }}</span>
|
||||
<br/>
|
||||
<button ng-click="submit(event)" type="button" class="btn btn-success">
|
||||
Submit
|
||||
</button>
|
||||
</td>
|
||||
<td class="room-info-event-content">
|
||||
<pre>{{ event.content | json }}</pre>
|
||||
<td class="room-info-event-content" width="70%">
|
||||
<textarea class="room-info-textarea-content" elastic ng-model="event.content | json"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue