-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.html
35 lines (31 loc) · 1021 Bytes
/
org.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
<div class="container">
<div class="content">
<h1>CRD Documentation: {{ .Repo }}</h1>
<select class="form-control w-md-400 w-sm-full mb-md-10 mb-5" onchange="handleSelect(this)">
{{ $actual := .Tag }}{{ $repo := .Repo }}{{ range $name := .Tags }}
{{ if eq $name $actual }}
<option value="/{{ $repo }}/{{ $name }}" selected="selected">{{ $name }}</option>
{{ else }}
<option value="/{{ $repo }}/{{ $name }}" >{{ $name }}</option>
{{ end }}
{{ end }}
</select>
<div id="crds"></div>
</div>
</div>
<script type="text/javascript">
function handleSelect(elm)
{
window.location = elm.value;
}
</script>
<script id="pageData" type="application/json">{{ . }}</script>
<script src="/static/js/org.js"></script>
<style>
#crds .sort-header {
margin-left: 1rem;
}
#crds .sort-header:not(.sort-header-active) {
opacity: 0.5;
}
</style>