forked from astropy/astropy-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 5
/
template.html
110 lines (110 loc) · 4.06 KB
/
template.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
<html>
<head>
<link href='style.css' rel='stylesheet' type="text/css">
<link rel='icon' href='favicon.ico'>
</head>
<body>
<div id="wrapper">
<h1>Intake Project Dashboard</h1>
{% for section in config %}
<h2>{{ section.name }}</h2>
<table align='center'>
<tr>
<th>Name</th>
<th>Travis</th>
<th>AppVeyor</th>
<th>Coverage</th>
<th>ReadTheDocs</th>
<th>PyPI</th>
<th>Conda</th>
</tr>
{% for package in section.packages %}
<tr>
<td align='left'>
<a href="http://github.com/{{ package.repo }}">{{ package.name }}</a>
</td>
{% if 'travis' in package.badges %}
<td align='left'>
<a href="https://travis-ci.{{ package.travis_dot }}/{{ package.travis_project }}">
<img src="https://travis-ci.{{ package.travis_dot }}/{{ package.travis_project }}.svg?branch=master">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
{% if 'appveyor' in package.badges %}
<td align='left'>
<a href="https://ci.appveyor.com/project/{{ package.appveyor_project }}?branch=master">
<img src="https://img.shields.io/appveyor/ci/{{ package.appveyor_project }}/master.svg">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
{% if 'coveralls' in package.badges %}
<td align='left'>
<a href="https://coveralls.io/r/{{ package.repo }}?branch=master">
<img src="https://coveralls.io/repos/{{ package.repo }}/badge.svg?branch=master">
</a>
</td>
{% elif 'codecov' in package.badges %}
<td align='left'>
<a href="https://codecov.io/gh/{{ package.repo }}?branch=master">
<img src="https://codecov.io/gh/{{ package.repo }}/branch/master/graph/badge.svg">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
{% if 'rtd' in package.badges %}
<td align='left'>
<a href="https://readthedocs.org/projects/{{ package.rtd_name }}/?badge=latest">
<img src="https://readthedocs.org/projects/{{ package.rtd_name }}/badge/?version=latest">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
{% if 'pypi' in package.badges %}
<td align='left'>
<a href="https://pypi.org/project/{{ package.pypi_name }}">
<img src="https://img.shields.io/pypi/v/{{ package.pypi_name }}.svg?maxAge=3600">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
{% if 'conda' in package.badges %}
<td align='left'>
<a href="https://anaconda.org/{{ package.conda_channel }}/{{ package.conda_package }}">
<img src="https://img.shields.io/conda/vn/{{ package.conda_channel }}/{{ package.conda_package }}.svg?colorB=4488ff&style=flat">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
{% if 'conda-forge' in package.badges %}
<td align='left'>
<a href="https://anaconda.org/conda-forge/{{ package.conda_package }}">
<img src="https://img.shields.io/conda/vn/conda-forge/{{ package.conda_package }}.svg?colorB=4488ff&style=flat">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
{% if 'defaults' in package.badges %}
<td align='left'>
<a href="https://anaconda.org/anaconda/{{ package.conda_package }}">
<img src="https://img.shields.io/conda/vn/anaconda/{{ package.conda_package }}.svg?colorB=4488ff&label=defaults&style=flat">
</a>
</td>
{% else %}
<td align='center'>-</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endfor %}
</div>
</body>
</html>