forked from rosindex/rosindex
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathrepo_summary.html
130 lines (130 loc) · 5.66 KB
/
repo_summary.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
{% comment %}
- repo
- snapshot
{% endcomment %}
<link rel="stylesheet" href="{{ "/css/ci-status.css" | prepend: site.baseurl }}">
<table class="table table-condensed">
<tr>
<td class="text-right"><b>Description</b></td>
<td><span class="label label-default">{{snapshot.data.description}}</span></td>
</tr>
<tr>
<td style="width:100px;" class="text-right"><b>Checkout URI</b></td>
<td><a class="label label-default" href="{{repo.uri}}">{{repo.uri}}</a></td>
</tr>
<tr>
<td class="text-right"><b>VCS Type</b></td>
<td><span class="label label-default">{{repo.type}}</span></td>
</tr>
<tr>
<td class="text-right"><b>VCS Version</b></td>
<td><span class="label label-default">{{snapshot.version}}</span></td>
</tr>
<tr>
<td style="white-space: nowrap;" class="text-right"><b>Last Updated</b></div>
<td>
{% if snapshot.data.last_commit_time %}
<span class="label label-default"><span class="glyphicon glyphicon-time"></span> {{snapshot.data.last_commit_time}}
{% else %}
<span class="label label-warning">UNKNOWN
{% endif %}</span>
</td>
</tr>
<tr>
<td class="text-right"><b>Dev Status</b></td>
<td>
{% if repo.status %}
{% if repo.status == 'maintained' %}
<span class="label label-primary">
{% elsif repo.status == 'developed' %}
<span class="label label-success">
{% elsif repo.status == 'end-of-life' %}
<span class="label label-danger">
{% endif %}
{{repo.status | upcase}}
{% else %}
<span class="label label-warning">UNMAINTAINED
{% endif %}</span>
</td>
</tr>
<tr>
<td class="text-right"><b>CI status</b></td>
<td class="ci-status">
{% assign ci_data = package.data.ci_data %}
{% if ci_data.ci_available %}
{% if ci_data.history_available %}
<div class="dropdown">
<button type="button" data-toggle="dropdown" class="btn label label-primary dropdown-toggle ci-result-{{ ci_data.result }}" title="{{ ci_data.tooltip }}">
<span class="glyphicon glyphicon-check"></span>
Continuous Integration
{% if ci_data.stats_available %}
: {{ ci_data.tests_ok }} / {{ ci_data.tests_total }}
{% endif %}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Latest build history: {{ ci_data.timestamp }} (last {{ ci_data.history.size }} of {{ ci_data.total_builds }} builds)</li>
{% for build in ci_data.history %}
<li class="ci-build-info ci-result-{{ build.result }}">
<a href="http://build.ros.org/{{ build.uri }}" target="_blank">
<span class="glyphicon glyphicon-{{ build.icon }}"></span>
<span><strong>#{{ build.id }}</strong></span>
<span>{{ build.timestamp }}</span>
<span>{{ build.tests_ok }} / {{ build.tests_total }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
{% else %}
<a href="{{ ci_data.job_url }}" class="label ci-result-{{ ci_data.result }}" title="{{ ci_data.tooltip }}">
<span class="glyphicon glyphicon-check"></span>
Continuous Integration
{% if ci_data.stats_available %}
: {{ ci_data.tests_ok }} / {{ ci_data.tests_total }}
{% endif %}
</a>
{% endif %}
{% else %}
<span class="label label-default" title="{{ ci_data.tooltip }}">No Continuous Integration</span>
{% endif %}
</td>
</tr>
<tr>
<td class="text-right"><b>Released</b></td>
<td>
{% if snapshot.released %}
<span class="label label-primary"><span class="glyphicon glyphicon-flash"></span> RELEASED
{% else %}
<span class="label label-default">UNRELEASED
{% endif %}</span>
</td>
</tr>
<tr>
<td class="text-right"><b>Tags</b></td>
<td>
{% assign n_tags = repo.tags.size %}
{% if n_tags > 0 %}
{% for tag in repo.tags %}<span class="label label-default">{{ tag }}</span> {% endfor %}
{% else %}
<em>No category tags.</em>
{% endif %}
</td>
</tr>
<tr>
<td class="text-right"><b>Contributing</b></td>
<td>
<a class="label label-primary" href="/r/{{repo.name}}/#{{distro}}-contribute-lists-help-wanted">
Help Wanted (<span class="contribute-lists-help-wanted-count">0</span>)
</a>
<br>
<a class="label label-primary" href="/r/{{repo.name}}/#{{distro}}-contribute-lists-good-first-issue">
Good First Issues (<span class="contribute-lists-good-first-issue-count">0</span>)
</a>
<br>
<a class="label label-primary" href="/r/{{repo.name}}/#{{distro}}-contribute-lists-pull-requests">
Pull Requests to Review (<span class="contribute-lists-pull-requests-count">0</span>)
</a>
</td>
</tr>
</table>