2014-08-26 18:57:29 +04:00
|
|
|
<div ng-controller="HomeController" data-ng-init="onInit()">
|
2014-08-12 18:10:52 +04:00
|
|
|
|
2014-08-16 02:24:42 +04:00
|
|
|
<div id="wrapper">
|
2014-08-31 03:40:42 +04:00
|
|
|
|
|
|
|
<div id="genericHeading">
|
2014-09-01 16:22:24 +04:00
|
|
|
<a href ng-click="goToPage('/')"><img src="img/logo-small.png" width="100" height="43" alt="[matrix]"/></a>
|
2014-08-31 03:40:42 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1>Welcome to homeserver {{ config.homeserver }}</h1>
|
|
|
|
|
2014-08-12 18:10:52 +04:00
|
|
|
<div>
|
2014-08-31 03:40:42 +04:00
|
|
|
<div class="profile-avatar">
|
|
|
|
<img ng-src="{{ (null !== profile.avatarUrl) ? profile.avatarUrl : 'img/default-profile.png' }}"/>
|
|
|
|
</div>
|
|
|
|
<div id="user-ids">
|
|
|
|
<div id="user-displayname">{{ profile.displayName }}</div>
|
|
|
|
<div>{{ config.user_id }}</div>
|
|
|
|
</div>
|
2014-08-12 18:10:52 +04:00
|
|
|
</div>
|
2014-09-23 16:36:58 +04:00
|
|
|
|
2014-08-31 03:40:42 +04:00
|
|
|
<h3>Recent conversations</h3>
|
2014-08-27 17:09:16 +04:00
|
|
|
<div ng-include="'recents/recents.html'"></div>
|
2014-08-12 18:10:52 +04:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
<h3>Public rooms</h3>
|
|
|
|
|
2014-09-12 18:46:20 +04:00
|
|
|
<table class="publicTable">
|
|
|
|
<tbody ng-repeat="room in public_rooms | orderBy:'room_display_name'"
|
|
|
|
class="publicRoomEntry"
|
|
|
|
ng-class="room.room_display_name.toLowerCase().indexOf('#matrix:') === 0 ? 'roomHighlight' : ''">
|
|
|
|
<tr>
|
|
|
|
<td class="publicRoomEntry">
|
|
|
|
<a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}" >
|
|
|
|
{{ room.room_display_name }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="publicRoomJoinedUsers"
|
|
|
|
ng-show="room.num_joined_members">
|
|
|
|
{{ room.num_joined_members }} {{ room.num_joined_members == 1 ? 'user' : 'users' }}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="publicRoomTopic">
|
|
|
|
{{ room.topic }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-08-12 18:10:52 +04:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<form>
|
2014-09-23 16:36:58 +04:00
|
|
|
<input size="40" ng-model="newRoom.room_alias" ng-enter="createNewRoom(newRoom.room_alias, newRoom.private)" placeholder="(e.g. foo)"/>
|
2014-08-12 18:10:52 +04:00
|
|
|
<input type="checkbox" ng-model="newRoom.private">private
|
2014-08-31 03:40:42 +04:00
|
|
|
<button ng-disabled="!newRoom.room_alias" ng-click="createNewRoom(newRoom.room_alias, newRoom.private)">Create room</button>
|
2014-08-12 18:10:52 +04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<form>
|
2014-09-23 16:36:58 +04:00
|
|
|
<input size="40" ng-model="joinAlias.room_alias" ng-enter="joinAlias(joinAlias.room_alias)" placeholder="(e.g. #foo:example.org)"/>
|
2014-08-12 20:17:10 +04:00
|
|
|
<button ng-disabled="!joinAlias.room_alias" ng-click="joinAlias(joinAlias.room_alias)">Join room</button>
|
2014-08-12 18:10:52 +04:00
|
|
|
</form>
|
|
|
|
</div>
|
2014-09-23 16:36:58 +04:00
|
|
|
<div>
|
|
|
|
<form>
|
|
|
|
<input size="40" ng-model="newChat.user" ng-enter="messageUser()" placeholder="e.g. @user:domain.com"/>
|
|
|
|
<button ng-disabled="!newChat.user" ng-click="messageUser()">Message user</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2014-08-12 18:10:52 +04:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{ feedback }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|