-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
licenses.html
121 lines (104 loc) · 2.79 KB
/
licenses.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
---
layout: default
title: Licenses
description: Which Licenses is each repository using?
---
{% assign org_href = "https://github.com/eustasy" %}
<script defer src="sortable.mega-advanced.min.js"></script>
<style>
.wrapper {
max-width: 1080px;
width: auto;
}
section {
width: calc(100% - 270px);
}
h1,
a:focus,
a:hover {
font-weight: normal;
}
.name {
display: block;
font-weight: normal;
color: inherit;
}
.status {
background-color: rgba(212, 212, 212, 0.5);
border-radius: 1em;
color: #555761;
font-size: 0.85em;
padding: 0.15em 0.75em;
}
.version a,
.status a {
color: inherit;
font-weight: inherit;
}
.good {
background-color: rgba(209, 255, 130, 0.5);
color: #206b00;
}
.warn {
background-color: rgba(255, 243, 148, 0.5);
color: #ad5f00;
}
.critical {
background-color: rgba(255, 140, 130, 0.5);
color: #7a0000;
}
.beta {
color: #ad5f00;
}
.alpha {
color: #7a0000;
}
</style>
<table class="releases sortable">
<thead>
<th>Repository</th>
<th>License</th>
<th>Year</th>
<th>Last Commit</th>
</thead>
<tbody>
{% for repo in site.data.licenses %}
{% unless site.data.exclusions contains repo.name %}
{% assign repo_href = org_href | append: "/" | append: repo.name %}
<tr id="{{ repo.name }}" >
<td data-sort="{{ repo.name }}">
<a href="{{ repo_href }}" class="name">{{ repo.name }}</a>
</td>
<td data-sort="{{ repo.license_type }}">
{{ repo.license_type }}
</td>
<td data-sort="{{ repo.license_year }}">
{% if repo.license_year == "2024" %}
<span class="status good">Up to date</span>
{% elsif repo.license_year == "" %}
<span class="status critical">{{ repo.license_year }}</span>
{% elsif repo.license_year == "false" %}
<span class="status critical">{{ repo.license_year }}</span>
{% elsif repo.license_file == "" %}
<span class="status critical">{{ repo.license_year }}</span>
{% elsif repo.license_file == "false" %}
<span class="status critical">{{ repo.license_year }}</span>
{% else %}
<span class="status warn">{{ repo.license_year }}</span>
{% endif %}
</td>
<td data-sort="{{ repo.pushed_at }}">
{{ repo.pushed_at | date: "%Y-%m" }}
</td>
</tr>
{% endunless %}
{% endfor %}
</tbody>
</table>
{% assign st = site.time %}
<p><small>Last updated <time datetime="{{ st }}" title="{{ st }}">
{% assign d = st | date: "%-d" %}
{{ st | date: "%B" }}
{% case d %}{% when '1' or '21' or '31' %}{{ d }}st{% when '2' or '22' %}{{ d }}nd{% when '3' or '23' %}{{ d }}rd{% else %}{{ d }}th{% endcase %},
{{ st | date: "%Y at %r %Z" }}
</time>.</small></p>