-
Notifications
You must be signed in to change notification settings - Fork 0
/
_admin.html
49 lines (46 loc) · 2.16 KB
/
_admin.html
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
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin interface</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="author" content="Adam Koprowski">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--CSS styles-->
<link rel="stylesheet" href="css/bootstrap.css">
<link id="theme-style" rel="stylesheet" href="css/styles/default.css">
<!--/CSS styles-->
<!--Javascript files-->
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular-sanitize.min.js"></script>
<script type="text/javascript" src="js/angular.js"></script>
<!--/Javascript files-->
</head>
<body ng-app="admin" ng-controller="AdminCtrl">
<ul>
<li ng-repeat="d in data">
<span ng-bind="d.text"></span>:
<span class="text-danger" ng-hide="d.entries">loading...</span>
<span ng-show="d.entries">loaded <span ng-bind="d.entries.length"></span> entries.</span>
<li ng-repeat="c in checking" ng-show="c.toCheck">
<span ng-bind="c.text"></span>
<div class="progress" ng-show="c.checked != c.toCheck">
<div class="progress-bar" role="progressbar" aria-valuenow="{{c.checked}}" aria-valuemin="0" aria-valuemax="{{c.toCheck}" style="width: {{100. * c.checked / c.toCheck}}%;">
{{c.checked}}/{{c.toCheck}}
</div>
</div>
<span ng-show="c.checked == c.toCheck">
All checked.
</span>
</ul>
<div class="alert alert-danger" role="alert" ng-repeat="error in errors track by error.id" ng-bind-html="error.text"></div>
<div class="alert alert-danger" role="alert" ng-if="missingCollaborators.length">
Missing collaborators:
<ul>
<li ng-repeat="person in missingCollaborators | orderBy:numPapers:true">
<span ng-bind="person"></span>
(<span ng-bind="numPapers(person)"></span>)
</ul>
</div>
</body>
</html>