blob: be7a664c4475529c0028543dd195ab3b46aa50ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<!doctype html>
<html ng-app="Alias">
<head>
<meta charset="utf-8"/>
<title>Alias</title>
<link rel="stylesheet/less" href="css/less/bootstrap.less" />
<link rel="stylesheet/less" href="css/app.less" />
<script src="lib/less.js" type="text/javascript"></script>
</head>
<body>
<div id="titlebar" class="well">
<h1 class="pull-left">Alias</h1>
<div ng-controller="ConnectCtl" class="pull-right" id="connect">
<form class="form-inline" ng-submit="login()" ng-hide="is_connected()">
<input type="text" ng-model="username" class="input-medium" placeholder="Email"/>
<input type="password" ng-model="password" class="input-medium" placeholder="Password"/>
<button class="btn" type="submit" ng-disabled="!username || !password">Sign in</button>
</form>
<button class="btn" ng-show="is_connected()" ng-click="disconnect()">Disconnect</button>
</div>
</div>
<div id="roster" ng-controller="RosterCtl">
<form class="form-inline">
<div class="input-prepend">
<span class="add-on"><i class="icon-search"></i></span><!--
--><input class="span2" type="text" placeholder="Search" ng-model="query"/>
</div>
</form>
<input type="checkbox" ng-model="checkoffline"/>
<span>Show offline contacts</span>
<ul>
<li ng-repeat="contact in get_contacts() | hideoffline:checkoffline | rosterFilter:query|orderBy:'status'">{{contact.name}} <small>{{contact.jid}} {{contact.status}}</small></li>
</ul>
</div>
<script src="lib/angular/angular.js"></script>
<script src="lib/jquery-1.7.2.min.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="lib/config.js"></script>
<script src="js/alias.js"></script>
<script src="lib/strophe.js"></script>
<script src="js/services.js"></script>
<script src="js/controllers.js"></script>
<script src="js/filters.js"></script>
<script src="js/directives.js"></script>
</body>
</html>
|