blob: cdab20ceb7f819fa1b895e5ee19b0a142f85fb26 (
plain)
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
|
{{define "versionrows"}}
{{- range $index, $version := .Package.Versions -}}
<tr>
<td class="kk-version ">
<strong><a class="kk-ebuild-link" href="https://gitweb.gentoo.org/repo/gentoo.git/tree/{{$version.Atom}}/{{$version.Package}}-{{$version.Version}}.ebuild">{{$version.Version}}</a></strong><span class="kk-slot" title="subslot {{ $version.Subslot }}"> : {{ $version.Slot }}</span>
{{- if $version.Restricts -}}
<span class="badge badge-danger kk-restrict-label" title="The following features are restricted: {{ $version.Restricts }}">{{ formatRestricts $version.Restricts }}</span>
{{- end -}}
{{- if eq $.UserPreferences.Packages.Overview.EAPI "inline" -}}
<span style="background-color: white;border:1px solid grey;color: grey;" class="badge badge-danger kk-restrict-label" title="The following features are restricted:">EAPI {{$version.EAPI}}</span>
{{- end }}
</td>
{{- if eq $.UserPreferences.Packages.Overview.EAPI "column" -}}
<td class="text-center">
{{- $version.EAPI -}}
</td>
{{- end -}}
{{- range $.UserPreferences.Packages.Overview.Keywords -}}
{{- if contains (print " " $version " ") (print "~" . " ") -}}
{{- if ge (len $version.Masks) 1 }}
<td class="kk-keyword kk-keyword-masked" title="{{$version.Version}} is masked (testing) on {{.}}">
<svg height="16" class="octicon octicon-diff-modified" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-mask" xlink:href="#svg-ver-mask" /></svg>
<span class="sr-only">~{{.}}</span>
</td>
{{- else }}
<td class="kk-keyword kk-keyword-testing" title="{{$version.Version}} is testing on {{.}}">
<svg height="16" class="octicon octicon-diff-modified" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-testing" xlink:href="#svg-ver-testing" /></svg>
<span class="sr-only">~{{.}}</span>
</td>
{{- end -}}
{{- else if contains (print " " $version.Keywords " ") (print "-" . " ") }}
<td class="kk-keyword kk-keyword-unavailable" title="{{$version.Version}} is unavailable on {{.}}">
<svg height="16" class="octicon octicon-diff-removed" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-unavailable" xlink:href="#svg-ver-unavailable" /></svg>
<span class="sr-only">-{{.}}</span>
</td>
{{- else if contains (print " " $version.Keywords " ") (print . " ") }}
{{- if ge (len $version.Masks) 1 -}}
<td class="kk-keyword kk-keyword-masked" title="{{$version.Version}} is masked (stable) on {{.}}">
<svg height="16" class="octicon octicon-diff-added" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-mask" xlink:href="#svg-ver-mask" /></svg>
<span class="sr-only">{{.}}</span>
</td>
{{- else -}}
<td class="kk-keyword kk-keyword-stable" title="{{$version.Version}} is stable on {{.}}">
<svg height="16" class="octicon octicon-diff-added" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-stable" xlink:href="#svg-ver-stable" /></svg>
<span class="sr-only">{{.}}</span>
</td>
{{- end -}}
{{- else if contains $version.Keywords "-*" }}
<td class="kk-keyword kk-keyword-unavailable" title="{{$version.Version}} is unavailable on {{.}}">
<svg height="16" class="octicon octicon-diff-removed" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-unavailable" xlink:href="#svg-ver-unavailable" /></svg>
<span class="sr-only">-{{.}}</span>
</td>
{{- else }}
<td class="kk-keyword kk-keyword-unkown" title="{{$version.Version}} is unknown on {{.}}">
<span class="sr-only">?{{.}}</span>
</td>
{{- end -}}
{{- end -}}
</tr>
{{- end -}}
{{- end -}}
|