-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (93 loc) · 3.83 KB
/
index.html
File metadata and controls
100 lines (93 loc) · 3.83 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular-resource.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
<link rel="icon" href="favicon.png" type="image/png" />
<script>
<!-- Plugin search controller -->
function SearchCtrl($scope, $http, $document) {
$http.get('plugins.json').success(function(data) {
$scope.name = data.name;
$scope.plugins = data.registrations;
data.registrations.forEach(function(plugin) {
plugin.releases.forEach(function(release) {
release.url = release.url.replace('${self}/', window.location.href);
});
});
});
}
</script>
</head>
<body>
<!-- Begin page content -->
<div class="container" style="padding-top:20px;">
<div ng-controller="SearchCtrl">
<div class="row">
<div class="span8">
<h1>{{name}}</h1>
</div>
<div class="span4">
<input ng-model="query" type="text" autofocus="true"
placeholder="filter on id, description, provider" class="input-xlarge search-query">
</div>
</div>
<div class="row">
<div class="span12">
<div id="searchResults" style="clear:both;padding-top:10px;">
<div ng-repeat="plugin in plugins | filter:query | orderBy: 'id'">
<div ng-show="plugin.releases.length">
<div>
<i class="{{plugin.icon}}" ng-show="plugin.icon.length"></i>
<b>{{plugin.id}}</b>
<small>
<span class="muted">by {{plugin.provider}}</span>
<a ng-show="plugin.projectUrl.length" target="_blank" href="{{plugin.projectUrl}}"><i class="fa fa-link"></i></a>
<p>
{{plugin.description}}
<br/>
<a ng-click="showReleases = !showReleases">releases</a>
<a style="padding-left:10px;" ng-show="plugin.changelogUrl.length" target="_blank" href="{{plugin.changelogUrl}}">changelog</a>
</p>
</small>
</div>
<table class="table table-condensed" ng-show="showReleases">
<tbody>
<tr ng-repeat="release in plugin.releases | orderBy: '-version'">
<td>
<b>{{release.version}}</b>
</td>
<td>
<small>
<em>{{release.date | date :'longDate'}}</em>
</small>
</td>
<td>
<small>
<em>{{release.requires}}+</em>
</small>
</td>
<td>
<small>
<a ng-show="release.url.length" href="{{release.url}}">download</a>
</small>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>