-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (86 loc) · 4.69 KB
/
Copy pathindex.html
File metadata and controls
87 lines (86 loc) · 4.69 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
<!DOCTYPE html>
<html class="no-js" lang="pt-BR" xml:lang="pt-BR">
<head>
<meta charset="utf-8">
<title>Search with AngularJS</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<script type="text/javascript">
// to identify if javascript is active
var tagHtml = document.getElementsByTagName("html")[0];
tagHtml.className = tagHtml.className.replace('no-js', 'js');
</script>
<link rel="stylesheet" type="text/css" href="source/css/style.css">
</head>
<body ng-app="githubApp">
<div class="container wrapper" ng-controller="MainCtrl">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="container">
<div class="col-sm-12 text-center">
<h2 class="text-success">Search Github</h2>
</div>
<div class="row">
<div class="col-xs-8 col-xs-offset-2">
<div class="input-group">
<select ng-model="searchCategory" class="form-control"
ng-options="cat.name as cat.name for cat in categories">
</select>
<input type="text" class="form-control" name="search-git"
ng-model="searchTerm" placeholder="Search term..."
on-enter="doSearch()">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="doSearch()">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 text-center project"
ng-repeat="result in results | offset: pconfig.currentPage*pconfig.itemsPerPage | limitTo: pconfig.itemsPerPage">
<div class="panel panel-info clearfix">
<div class="panel-heading">
<a ng-href="{{result.url}}" class="color-primary" title="Go to project page" target="_blank">
<h4>{{result.title}}</h4>
</a>
</div>
<div class="panel-body">
<div class="general-description clearfix">
<div class="col-sm-6">
<img ng-src="{{result.owner.avatarUrl}}" />
<a ng-href="{{result.owner.profileUrl}}" title="Go to profile" target="_blank">
<span my-truncate="{{result.owner.name}}"></span>
</a>
</div>
<div class="col-sm-6 text-left">
<div ng-show="result.createdAt">
<span>Created:</span>
<i>{{result.createdAt | date}}</i><br/>
</div>
<div ng-show="result.watchers">
<span>Watchers:</span>
<b>{{result.watchers}}</b><br/>
</div>
<span>Score:</span>
<label class="label label-success">{{result.score | number:2}}</label>
</div>
</div>
<div class="col-sm-12">
<p>{{result.description}}</p>
</div>
</div>
</div>
</div>
</div>
<div id="pagination" class="text-center"></div>
</div>
</div>
<script src="node_modules/jquery/dist/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="node_modules/angular/angular.min.js" type="text/javascript" charset="utf-8"></script>
<script src="node_modules/angular-resource/angular-resource.min.js" type="text/javascript" charset="utf-8"></script>
<script src="node_modules/angular-route/angular-route.min.js" type="text/javascript" charset="utf-8"></script>
<script src="source/js/app.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>