2014-08-22 09:11:39 -06:00
|
|
|
<div ng-controller="SettingsController" class="user">
|
|
|
|
|
|
|
|
<div id="page">
|
|
|
|
<div id="wrapper">
|
|
|
|
|
|
|
|
<h3>Me</h3>
|
|
|
|
<div>
|
|
|
|
<form>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="profile-avatar">
|
|
|
|
<img ng-src="{{ profile.avatarUrl || 'img/default-profile.jpg' }}" m-file-input="profile.avatarFile"/>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div id="user-ids">
|
2014-08-22 10:23:38 -06:00
|
|
|
<input size="40" ng-model="profile.displayName" placeholder="Your name"/>
|
2014-08-22 09:11:39 -06:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button ng-disabled="(profile.displayName == config.displayName) && (profile.avatarUrl == config.avatarUrl)"
|
|
|
|
ng-click="saveProfile()">Save</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<h3>Linked emails</h3>
|
|
|
|
<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>
|
|
|
|
<table>
|
|
|
|
<tr ng-repeat="(address, info) in linkedEmails.linkedEmailList">
|
|
|
|
<td>{{address}}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2014-08-29 09:11:03 -06:00
|
|
|
|
|
|
|
<h3>Desktop notifications</h3>
|
|
|
|
<div ng-switch="settings.notifications">
|
|
|
|
<div ng-switch-when="granted">
|
|
|
|
Notifications are enabled.
|
|
|
|
</div>
|
|
|
|
<div ng-switch-when="denied">
|
|
|
|
You have denied permission for notifications.<br/>
|
|
|
|
To enable it, reset the notification setting for this web site into your browser settings.
|
|
|
|
</div>
|
|
|
|
<div ng-switch-when="default">
|
|
|
|
<button ng-click="requestNotifications()">Click here to enable them</button>
|
|
|
|
</div>
|
|
|
|
<div ng-switch-default="">
|
|
|
|
Sorry, your browser does not support notifications.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
2014-08-22 09:11:39 -06:00
|
|
|
<h3>Configuration</h3>
|
|
|
|
<div>
|
|
|
|
<div>Home server: {{ config.homeserver }} </div>
|
|
|
|
<div>User ID: {{ config.user_id }} </div>
|
|
|
|
<div>Access token: {{ config.access_token }} </div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{ feedback }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|