2014-08-26 08:57:29 -06:00
|
|
|
<div ng-controller="HomeController" data-ng-init="onInit()">
|
2014-08-12 08:10:52 -06:00
|
|
|
|
2014-08-15 16:24:42 -06:00
|
|
|
<div id="page">
|
|
|
|
<div id="wrapper">
|
2014-08-22 09:11:39 -06:00
|
|
|
|
2014-08-12 08:10:52 -06:00
|
|
|
<div>
|
|
|
|
<form>
|
2014-08-14 03:39:03 -06:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="profile-avatar">
|
2014-08-29 10:22:05 -06:00
|
|
|
<img ng-src="{{ (null !== profile.avatarUrl) ? profile.avatarUrl : 'img/default-profile.jpg' }}"/>
|
2014-08-14 03:39:03 -06:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-08-22 09:11:39 -06:00
|
|
|
<div id="user-ids">
|
2014-08-29 10:22:05 -06:00
|
|
|
<div id="user-displayname">{{ profile.displayName }}</div>
|
|
|
|
<div>{{ config.user_id }}</div>
|
2014-08-14 03:39:03 -06:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2014-08-12 08:10:52 -06:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2014-08-27 06:31:20 -06:00
|
|
|
<h3>Recents</h3>
|
2014-08-27 07:09:16 -06:00
|
|
|
<div ng-include="'recents/recents.html'"></div>
|
2014-08-12 08:10:52 -06:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
<h3>Public rooms</h3>
|
|
|
|
|
|
|
|
<div class="public_rooms" ng-repeat="room in public_rooms">
|
|
|
|
<div>
|
2014-08-18 09:14:57 -06:00
|
|
|
<a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}" >{{ room.room_alias }}</a>
|
2014-08-12 08:10:52 -06: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 10:42:02 -06: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 10:17:10 -06:00
|
|
|
<button ng-disabled="!joinAlias.room_alias" ng-click="joinAlias(joinAlias.room_alias)">Join room</button>
|
2014-08-12 08:10:52 -06:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{ feedback }}
|
|
|
|
|
|
|
|
</div>
|
2014-08-13 19:13:14 -06:00
|
|
|
</div>
|
2014-08-12 08:10:52 -06:00
|
|
|
</div>
|