-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
174 lines (145 loc) · 7.57 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html >
<html lang="en">
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/ngStorage/0.3.6/ngStorage.min.js"></script>-->
<script type="text/javascript" src="https://cdn.jsdelivr.net/ngstorage/0.3.6/ngStorage.min.js"></script>
<link rel='stylesheet' href='http://cdnjs.cloudflare.com/ajax/libs/angular-loading-bar/0.9.0/loading-bar.min.css'
type='text/css' media='all'/>
<script type='text/javascript'
src='http://cdnjs.cloudflare.com/ajax/libs/angular-loading-bar/0.9.0/loading-bar.min.js'></script>
<script src="jquery.js"></script>
<link rel="stylesheet" href="app.css">
<script src="app.js"></script>
<script src="controllers/getDetailsCtrl.js"></script>
<script src="services/getDetaSvc.js"></script>
<script src="directive/dirPagination.js"></script>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body ng-app="task">
<div class="row" ng-controller="getDetailsCtrl">
<div class="side-menu">
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<div class="brand-wrapper">
<!-- Hamburger -->
<button type="button" class="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Brand -->
<div class="brand-name-wrapper">
<a class="navbar-brand" href="#">
REPOS
</a>
</div>
<!-- Search -->
<a data-toggle="collapse" href="#search" class="btn btn-default" id="search-trigger">
<span class="glyphicon glyphicon-search"></span>
</a>
<!-- Search body -->
<div id="search" class="panel-collapse collapse">
<div class="panel-body">
<form class="navbar-form" role="search">
<div class="form-group">
<input type="text" ng-model="searchKeyword" class="form-control"
placeholder="Search">
</div>
<button type="submit" class="btn btn-default "><span
class="glyphicon glyphicon-ok"></span></button>
</form>
</div>
</div>
</div>
</div>
<!-- Main Menu -->
<div class="side-menu-container">
<ul class="nav navbar-nav">
<li class="active" ng-click="order('name')"><a href=""><span
class="glyphicon glyphicon-sort-by-attributes-alt"></span>sort by</a></li>
<!-- Dropdown-->
<li class="panel panel-default" id="dropdown">
<a data-toggle="collapse" href="#dropdown-lvl1">
<span class="glyphicon glyphicon-sort-by-attributes"></span> Sub Level <span
class="caret"></span>
</a>
<!-- Dropdown level 1 -->
<div id="dropdown-lvl1" class="panel-collapse collapse">
<div class="panel-body">
<ul class="nav navbar-nav">
<li ng-click=" order('forks')"><a href="">forks</a></li>
<li ng-click=" order('stargazers_count')"><a href="">score</a></li>
<li><a href="" ng-click="order('updated_at')">updated</a></li>
</ul>
</div>
</div>
</li>
<li><a href=""><span class="glyphicon glyphicon-align-center"></span> submit</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
</div>
<!-- Main Content -->
<div class="container-fluid">
<div class="side-body">
<h1>REPOSITORY'S</h1>
<div > </div>
<table class="table table-fixed">
<thead>
<tr>
<th class="col-xs-6" ng-click=" order('name')">
name
<span ng-show="list == 'name' && reverse" class="glyphicon glyphicon-chevron-down"></span>
<span ng-show="list == 'name' && !reverse" class="glyphicon glyphicon-chevron-up"></span>
</th>
<th class="col-xs-2" ng-click=" order('forks')">
forks
<span ng-show="list == 'forks' && reverse" class="glyphicon glyphicon-chevron-down"></span>
<span ng-show="list == 'forks' && !reverse" class="glyphicon glyphicon-chevron-up"></span>
</th>
<th class="col-xs-2" ng-click=" order('stargazers_count')">
stars
<span ng-show="list == 'stargazers_count' && reverse" class="glyphicon glyphicon-chevron-down"></span>
<span ng-show="list == 'stargazers_count' && !reverse" class="glyphicon glyphicon-chevron-up"></span>
</th>
<th class="col-xs-2" ng-click="order('updated_at')">
updated
<span ng-show="list == 'updated_at' && reverse" class="glyphicon glyphicon-chevron-down"></span>
<span ng-show="list == 'updated_at' && !reverse" class="glyphicon glyphicon-chevron-up"></span>
</th>
</tr>
</thead>
<tr dir-paginate="x in totallist | filter: searchKeyword | orderBy:list:reverse | itemsPerPage:10| limitTo:limit ">
<td class="col-xs-6"><a href="{{x.url}}"> {{x.name}}</a></td>
<td class="col-xs-2">{{x.forks}}</td>
<td class="col-xs-2">{{x.stargazers_count}}</td>
<td class="col-xs-2">{{x.updated_at}}</td>
</tr>
</table>
</div>
</div>
</div>
<pagination total-items="totalItems" ng-model="currentPage"
boundary-links="true"
items-per-page="numPerPage" class="pagination-sm">
</pagination>
<div class="modal-footer">
<select name="hall" id="hall" ng-model="limit" class="opt">
<option >3</option>
<option >5</option>
<option>8</option>
</select>
<dir-pagination-controls max-size="10" direction-link="true" boundary-links="true"></dir-pagination-controls>
</div>
</body>
</html>