-
Notifications
You must be signed in to change notification settings - Fork 0
/
userDetails.html
38 lines (35 loc) · 944 Bytes
/
userDetails.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
<div>
<div data-ng-if="showError">
<h2 class="error">{{error}}</h2>
</div>
<h2>{{foundUser.name}}</h2>
<img data-ng-src="{{foundUser.avatar_url}}" title="{{foundUser.name}}" />
<br>
<h2>Repositories</h2>
<strong>Order:</strong>
<select class="order-selection" ng-model="repoSortOrder">
<option value="+name">Name</option>
<option value="-stargazers_count">Stars</option>
<option value="+language">Language</option>
</select>
<table>
<thead>
<tr>
<td>Name</td>
<td>Commits</td>
<td>Stars</td>
<td>Language</td>
<td>Link</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="repo in repositories|orderBy:repoSortOrder">
<td>{{repo.name}}</td>
<td>{{myCommits[repo.full_name].length}}</td>
<td>{{repo.stargazers_count | number}}</td>
<td>{{repo.language}}</td>
<td><a class="links" href="{{repo.html_url}}">{{repo.html_url}}</a></td>
</tr>
</tbody>
</table>
</div>