2014-08-12 10:10:52 -04:00
|
|
|
<div ng-controller="RoomsController" class="rooms">
|
|
|
|
|
2014-08-15 18:24:42 -04:00
|
|
|
<div id="page">
|
|
|
|
<div id="wrapper">
|
2014-08-13 21:13:14 -04:00
|
|
|
|
2014-08-12 10:10:52 -04:00
|
|
|
<div>
|
|
|
|
<form>
|
2014-08-14 05:39:03 -04:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="profile-avatar">
|
2014-08-14 05:51:31 -04:00
|
|
|
<img ng-src="{{ newProfileInfo.avatar || 'img/default-profile.jpg' }}" m-file-input="newProfileInfo.avatarFile"/>
|
2014-08-14 05:39:03 -04:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-08-18 04:54:43 -04:00
|
|
|
<!-- TODO: To enable once we have an upload server
|
2014-08-14 05:39:03 -04:00
|
|
|
<button m-file-input="newProfileInfo.avatarFile">Upload new Avatar</button>
|
|
|
|
or use an existing image URL:
|
2014-08-18 04:54:43 -04:00
|
|
|
-->
|
2014-08-14 05:39:03 -04:00
|
|
|
<div>
|
2014-08-18 04:54:43 -04:00
|
|
|
<input size="40" ng-model="newProfileInfo.avatar" ng-enter="setAvatar(newProfileInfo.avatar)" placeholder="Image URL"/>
|
2014-08-14 05:39:03 -04:00
|
|
|
<button ng-disabled="!newProfileInfo.avatar" ng-click="setAvatar(newProfileInfo.avatar)">Update Avatar</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2014-08-12 10:10:52 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
2014-08-14 05:39:03 -04:00
|
|
|
|
2014-08-12 10:10:52 -04:00
|
|
|
<div>
|
|
|
|
<form>
|
2014-08-14 05:39:03 -04:00
|
|
|
<input size="40" ng-model="newProfileInfo.name" ng-enter="setDisplayName(newProfileInfo.name)" />
|
|
|
|
<button ng-disabled="!newProfileInfo.name" ng-click="setDisplayName(newProfileInfo.name)">Update Name</button>
|
2014-08-12 10:10:52 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
2014-08-14 05:39:03 -04:00
|
|
|
|
2014-08-12 10:10:52 -04:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<form>
|
|
|
|
<input size="40" ng-model="linkedEmails.linkNewEmail" ng-enter="linkEmail(linkedEmails.linkNewEmail)" />
|
|
|
|
<button ng-disabled="!linkedEmails.linkNewEmail" ng-click="linkEmail(linkedEmails.linkNewEmail)">
|
|
|
|
Link Email
|
|
|
|
</button>
|
|
|
|
{{ emailFeedback }}
|
|
|
|
</form>
|
|
|
|
<form ng-hide="!linkedEmails.emailBeingAuthed">
|
|
|
|
Enter validation token for {{ linkedEmails.emailBeingAuthed }}:
|
|
|
|
<br />
|
|
|
|
<input size="20" ng-model="linkedEmails.emailCode" ng-enter="submitEmailCode(linkedEmails.emailCode)" />
|
|
|
|
<button ng-disabled="!linkedEmails.emailCode || !linkedEmails.linkNewEmail" ng-click="submitEmailCode(linkedEmails.emailCode)">
|
|
|
|
Submit Code
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
Linked emails:
|
|
|
|
<table>
|
|
|
|
<tr ng-repeat="(address, info) in linkedEmails.linkedEmailList">
|
|
|
|
<td>{{address}}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<h3>My rooms</h3>
|
|
|
|
|
2014-08-15 10:40:37 -04:00
|
|
|
<div class="rooms" ng-repeat="(rm_id, room) in rooms">
|
2014-08-12 10:10:52 -04:00
|
|
|
<div>
|
2014-08-21 10:30:57 -04:00
|
|
|
<a href="#/room/{{ room.room_alias ? room.room_alias : rm_id }}" >{{ room.room_display_name }}</a> {{room.membership === 'invite' ? ' (invited)' : ''}}
|
2014-08-12 10:10:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<h3>Public rooms</h3>
|
|
|
|
|
|
|
|
<div class="public_rooms" ng-repeat="room in public_rooms">
|
|
|
|
<div>
|
2014-08-18 11:14:57 -04:00
|
|
|
<a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}" >{{ room.room_alias }}</a>
|
2014-08-12 10:10:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<form>
|
|
|
|
<input size="40" ng-model="newRoom.room_id" ng-enter="createNewRoom(newRoom.room_id, newRoom.private)" placeholder="(e.g. foo_channel)"/>
|
|
|
|
<input type="checkbox" ng-model="newRoom.private">private
|
|
|
|
<button ng-disabled="!newRoom.room_id" ng-click="createNewRoom(newRoom.room_id, newRoom.private)">Create room</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<form>
|
2014-08-15 12:42:02 -04:00
|
|
|
<input size="40" ng-model="joinAlias.room_alias" ng-enter="joinAlias(joinAlias.room_alias)" placeholder="(e.g. #foo_channel:example.org)"/>
|
2014-08-12 12:17:10 -04:00
|
|
|
<button ng-disabled="!joinAlias.room_alias" ng-click="joinAlias(joinAlias.room_alias)">Join room</button>
|
2014-08-12 10:10:52 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{ feedback }}
|
|
|
|
|
|
|
|
</div>
|
2014-08-13 21:13:14 -04:00
|
|
|
</div>
|
2014-08-12 10:10:52 -04:00
|
|
|
</div>
|