-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.html
More file actions
44 lines (40 loc) · 1022 Bytes
/
Copy pathuser.html
File metadata and controls
44 lines (40 loc) · 1022 Bytes
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
<div>
<div>
<img style="height:120px;" ng-src="{{user.avatar_url}}" />
</div>
<p>Name: {{user.name}}</p>
<p>Location: {{user.location}}</p>
<p>Company: {{user.company}}</p>
<p># of public repos: {{user.public_repos}}</p>
<p>Repos URL: <a href="{{user.repos_url}}" target=_blank>{{user.repos_url}}</a>
</div>
Order:
<select ng-model="repoSortOrder">
<option value="+name">Name</option>
<option value="-stargazers_count">Stars</option>
<option value="+language">Language</option>
</select>
<table>
<thead>
<tr>
<th>Name</th>
<th>Stars</th>
<th>Language</th>
<th>Url</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="repo in repos | orderBy:repoSortOrder">
<td>{{repo.name}}</td>
<td>{{repo.stargazers_count | number}}</td>
<td>{{repo.language}}</td>
<td><a href="{{repo.html_url}}" target=_blank>view</a>
</td>
</tr>
</tbody>
</table>
<div>
{{error}}
</div>
<hr/>
<a class="btn btn-primary" href="#/main">Back to search</a>