This repository was archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathrepos.html
80 lines (78 loc) · 2.58 KB
/
repos.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
{% extends "layout.html" %}
{% block title %}
Active Installations For User
{% endblock %}
{% block body %}
{% if repos %}
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark bg-light">
<ul class="navbar-nav">
<li>
<h4>App Installations</h4>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="{{ url_for('show_users') }}" style="color:chocolate">
<i class="fas fa-arrow-alt-to-left"></i>
See all users
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('index') }}" style="color:blue">
<i class="fas fa-angle-double-left"></i>
Back To Main Page
</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<a class="nav-link" href="https://github.com/hamelsmu/MLapp/" style="color:grey">
See App On
<i class="fab fa-github"></i>
</a>
</ul>
</nav>
</div>
<br>
<p><span style="font-weight:bold">{{ username }}</span> has the app installed on {{ repos | length }} repo(s).</p>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Repo Name</th>
<th scope="col">Stars</th>
<th scope="col">Last Update At</th>
<th scope="col">Link</th>
<th scope="col">Predictions</th>
</tr>
</thead>
<tbody>
{% for repo in repos %}
<tr>
<th scope="row">{{ loop.index }}</th>
{% if repo['name'] in repos_with_preds %}
<td>{{ repo['full_name'] }}</td>
{% else %}
<td><span style="color:grey">{{ repo['full_name'] }}</span></td>
{% endif %}
<td>{{ repo['stargazers_count'] }}</td>
<td>{{ repo['updated_at'] | truncate(13) }}</td>
<td>
<a class="nav-link" href="{{ repo['html_url'] }}" style="color:grey">
<i class="fab fa-github"></i>
</a>
</td>
<td>
{% if repo['name'] in repos_with_preds %}
<a class="nav-link" href="{{ url_for('data', owner=repo['owner']['login'], repo=repo['name']) }}" style="color:blue">
{% else %}
<a class="nav-link" style="color:lightgray">
{% endif %}
<i class="fas fa-arrow-from-left"></i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}