-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (45 loc) · 1.89 KB
/
index.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
<html ng-app="githubreposearcher">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/styles.css" type="text/css" charset="utf-8">
<title>Angular GitHub repository searcher</title>
</head>
<body>
<div class="container theme-showcase" ng-clock ng-controller="SearchController" role="main">
<div class="well">
<h1>{{ title }}</h1>
<p>{{ introduction }}</p>
</div>
<div class="bar">
<form ng-submit="searchRepo()">
<input type="text" ng-model="query" placeholder="Enter a keyword" value="">
<button type="submit" class="btn btn-lg btn-primary">{{ searchReposText }}</button>
</form>
</div>
<div ng-class="{ 'loading': loadingForm == true }">
<table class="table table-striped" ng-show="withResults">
<tr>
<th>Name</th>
<th>Description</th>
<th>Issues</th>
<th>Forks</th>
<th>Watchers</th>
</tr>
<tr ng-repeat="repo in repos">
<td><a href="{{ repo.html_url }}" target="_blank">{{ repo.full_name }}</a></td>
<td>{{ repo.description }}</td>
<td>{{ repo.open_issues }}</td>
<td>{{ repo.forks_count }}</td>
<td>{{ repo.watchers_count }}</td>
</tr>
</table>
</div>
</div>
<script type="text/javascript" src="bower_components/angularjs/angular.min.js"></script>
<script type="text/javascript" src="app/app.js"></script>
<script type="text/javascript" src="app/controllers/searchController.js"></script>
<script type="text/javascript" src="app/factories/githubFactory.js"></script>
</body>
</html>