-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathspec_list.html
More file actions
44 lines (44 loc) · 1.28 KB
/
spec_list.html
File metadata and controls
44 lines (44 loc) · 1.28 KB
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
<table class="spec__table">
<thead>
<tr>
<td>Recommendations</td>
<td title="The following projects support these recommendations">
Endorsed By
</td>
<td>
Tags
</td>
</tr>
</thead>
{{- range ($.Paginator.Pages.ByParam "number") }}
{{- if and (hasPrefix .Title "SPEC") (in .Title "—") }}
<tr class="spec">
<td class="spec__title">
<a href="{{ .RelPermalink }}">
{{- .Title }}
</a>
</td>
<td class="spec__status">
{{- $endorsed_by := index .Params "endorsed-by" }}
{{- $N := len (or $endorsed_by "") }}
{{- if ge $N 2 }}
{{- range $idx, $el := $endorsed_by }}
{{ $project_page := $.GetPage (printf "core-projects/%s" $el) }}
{{ $url := $project_page.RelPermalink }}
<a href="{{ $url }}">
<img title="{{ $project_page.Title }}" src="{{ $project_page.Params.avatar }}" class="icon"/>
</a>
{{ end }}
{{ else }}
DRAFT
{{ end -}}
</td>
<td class="spec__tags">
{{ range .Params.tags }}
<span class="spec__label"> {{ . }}</span>
{{ end }}
</td>
</tr>
{{ end }}
{{- end }}
</table>