2014-08-29 12:22:05 -04:00
|
|
|
<div ng-controller="SettingsController" class="user" data-ng-init="onInit()">
|
2014-08-22 11:11:39 -04:00
|
|
|
|
|
|
|
<div id="wrapper">
|
2014-08-30 19:40:42 -04:00
|
|
|
|
|
|
|
<div id="genericHeading">
|
2014-09-01 08:22:24 -04:00
|
|
|
<a href ng-click="goToPage('/')"><img src="img/logo-small.png" width="100" height="43" alt="[matrix]"/></a>
|
2014-08-30 19:40:42 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1>Settings</h1>
|
2014-08-29 19:50:51 -04:00
|
|
|
<div class="section">
|
2014-08-22 11:11:39 -04:00
|
|
|
<form>
|
2014-08-29 19:50:51 -04:00
|
|
|
<div class="profile-avatar">
|
2014-08-30 19:40:42 -04:00
|
|
|
<img ng-src="{{ (null !== profile.avatarUrl) ? profile.avatarUrl : 'img/default-profile.png' }}" m-file-input="profile.avatarFile"/>
|
2014-08-29 19:50:51 -04:00
|
|
|
</div>
|
2014-09-02 11:00:47 -04:00
|
|
|
<div>
|
|
|
|
<input id="user-displayname-input" size="40" ng-model="profile.displayName" placeholder="Your display name"/>
|
2014-08-30 19:40:42 -04:00
|
|
|
<br/>
|
2014-09-02 11:00:47 -04:00
|
|
|
<button id="user-save-button"
|
|
|
|
ng-disabled="(profile.displayName === profileOnServer.displayName) && (profile.avatarUrl === profileOnServer.avatarUrl)"
|
|
|
|
ng-click="saveProfile()">Save changes</button>
|
2014-08-29 19:50:51 -04:00
|
|
|
</div>
|
2014-08-22 11:11:39 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
2014-09-04 06:38:26 -04:00
|
|
|
<h3>Linked emails</h3>
|
|
|
|
<div class="section">
|
2014-08-22 11:11:39 -04:00
|
|
|
<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>
|
2014-09-04 06:38:26 -04:00
|
|
|
{{ emailFeedback }}
|
2014-08-22 11:11:39 -04:00
|
|
|
</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 11:11:03 -04:00
|
|
|
|
|
|
|
<h3>Desktop notifications</h3>
|
2014-08-29 19:50:51 -04:00
|
|
|
<div class="section" ng-switch="settings.notifications">
|
2014-08-29 11:11:03 -04:00
|
|
|
<div ng-switch-when="granted">
|
2014-09-18 10:25:11 -04:00
|
|
|
Notifications are enabled.
|
2014-09-16 09:20:26 -04:00
|
|
|
<div class="section">
|
2014-09-18 10:25:11 -04:00
|
|
|
<h4>Specific words to alert on:</h4>
|
|
|
|
<p>Leave blank to alert on all messages. Your username & display name always alerts.</p>
|
2014-09-16 11:01:38 -04:00
|
|
|
<input size=40 name="bingWords" ng-model="settings.bingWords" ng-list placeholder="Enter words separated with , (supports regex)"
|
2014-09-16 09:20:26 -04:00
|
|
|
ng-blur="saveBingWords()"/>
|
|
|
|
<ul>
|
|
|
|
<li ng-repeat="word in settings.bingWords">{{word}}</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-08-29 11:11:03 -04:00
|
|
|
</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">
|
2014-08-30 19:40:42 -04:00
|
|
|
<button ng-click="requestNotifications()" style="font-size: 14pt">Enable desktop notifications</button>
|
2014-08-29 11:11:03 -04:00
|
|
|
</div>
|
|
|
|
<div ng-switch-default="">
|
|
|
|
Sorry, your browser does not support notifications.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
2014-08-22 11:11:39 -04:00
|
|
|
<h3>Configuration</h3>
|
2014-08-29 19:50:51 -04:00
|
|
|
<div class="section">
|
2014-08-22 11:11:39 -04:00
|
|
|
<div>Home server: {{ config.homeserver }} </div>
|
2014-08-29 19:50:51 -04:00
|
|
|
<div>Identity server: {{ config.identityServer }} </div>
|
2014-08-22 11:11:39 -04:00
|
|
|
<div>User ID: {{ config.user_id }} </div>
|
|
|
|
<div>Access token: {{ config.access_token }} </div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2014-09-03 11:01:12 -04:00
|
|
|
|
|
|
|
<h3>Commands</h3>
|
|
|
|
<div class="section">
|
|
|
|
The following commands are available in the room chat:
|
|
|
|
<ul>
|
|
|
|
<li>/nick <display_name>: change your display name</li>
|
|
|
|
<li>/me <action>: send the action you are doing. /me will be replaced by your display name</li>
|
2014-09-08 12:25:56 -04:00
|
|
|
<li>/join <room_alias>: join a room</li>
|
2014-09-05 11:32:35 -04:00
|
|
|
<li>/kick <user_id> [<reason>]: kick the user</li>
|
2014-09-03 11:01:12 -04:00
|
|
|
<li>/ban <user_id> [<reason>]: ban the user</li>
|
|
|
|
<li>/unban <user_id>: unban the user</li>
|
|
|
|
<li>/op <user_id> <power_level>: set user power level</li>
|
|
|
|
<li>/deop <user_id>: reset user power level to the room default value</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2014-08-22 11:11:39 -04:00
|
|
|
|
|
|
|
{{ feedback }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|