2014-08-26 16:57:29 +02:00
|
|
|
<div ng-controller="HomeController" data-ng-init="onInit()">
|
2014-08-12 16:10:52 +02:00
|
|
|
|
2014-08-16 00:24:42 +02:00
|
|
|
<div id="wrapper">
|
2014-08-31 01:40:42 +02:00
|
|
|
|
|
|
|
<div id="genericHeading">
|
2014-09-01 14:22:24 +02:00
|
|
|
<a href ng-click="goToPage('/')"><img src="img/logo-small.png" width="100" height="43" alt="[matrix]"/></a>
|
2014-08-31 01:40:42 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1>Welcome to homeserver {{ config.homeserver }}</h1>
|
|
|
|
|
2014-08-12 16:10:52 +02:00
|
|
|
<div>
|
2014-08-31 01:40:42 +02: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 16:10:52 +02:00
|
|
|
</div>
|
|
|
|
|
2014-08-31 01:40:42 +02:00
|
|
|
<h3>Recent conversations</h3>
|
2014-08-27 15:09:16 +02:00
|
|
|
<div ng-include="'recents/recents.html'"></div>
|
2014-08-12 16:10:52 +02:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
<h3>Public rooms</h3>
|
|
|
|
|
2014-09-08 20:17:44 +02:00
|
|
|
<div class="public_rooms" ng-repeat="room in public_rooms | orderBy:'room_display_name'">
|
2014-09-08 21:11:36 +02:00
|
|
|
<div class="publicRoomEntry">
|
2014-09-08 20:33:12 +02:00
|
|
|
<a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}"
|
|
|
|
ng-class="room.room_display_name.toLowerCase().indexOf('#matrix:') === 0 ? 'roomHighlight' : ''">
|
|
|
|
{{ room.room_display_name }}
|
|
|
|
</a>
|
2014-09-08 22:28:55 +02:00
|
|
|
<div ng-class="room.room_display_name.toLowerCase().indexOf('#matrix:') === 0 ? 'publicRoomJoinedUsers roomHighlight' : 'publicRoomJoinedUsers'"
|
|
|
|
ng-show="room.num_joined_members">
|
2014-09-08 21:11:36 +02:00
|
|
|
{{ room.num_joined_members }} {{ room.num_joined_members == 1 ? 'user' : 'users' }}
|
|
|
|
</div>
|
2014-09-09 02:14:58 +02:00
|
|
|
<div class="publicRoomTopic" ng-show="room.topic">
|
|
|
|
{{ room.topic }}
|
|
|
|
</div>
|
2014-08-12 16:10:52 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<form>
|
2014-08-31 01:40:42 +02:00
|
|
|
<input size="40" ng-model="newRoom.room_alias" ng-enter="createNewRoom(newRoom.room_alias, newRoom.private)" placeholder="(e.g. foo_channel)"/>
|
2014-08-12 16:10:52 +02:00
|
|
|
<input type="checkbox" ng-model="newRoom.private">private
|
2014-08-31 01:40:42 +02:00
|
|
|
<button ng-disabled="!newRoom.room_alias" ng-click="createNewRoom(newRoom.room_alias, newRoom.private)">Create room</button>
|
2014-08-12 16:10:52 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<form>
|
2014-08-15 18:42:02 +02: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 18:17:10 +02:00
|
|
|
<button ng-disabled="!joinAlias.room_alias" ng-click="joinAlias(joinAlias.room_alias)">Join room</button>
|
2014-08-12 16:10:52 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{ feedback }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|