mirror of https://github.com/rancher/gitjob.git
58 lines
1.2 KiB
Smarty
58 lines
1.2 KiB
Smarty
{{ define "type" }}
|
|
|
|
<h3 id="{{ .Name.Name }}">
|
|
{{- .Name.Name }}
|
|
{{ if eq .Kind "Alias" }}(<code>{{.Underlying}}</code> alias)</p>{{ end -}}
|
|
</h3>
|
|
{{ with (typeReferences .) }}
|
|
<p>
|
|
(<em>Appears on:</em>
|
|
{{- $prev := "" -}}
|
|
{{- range . -}}
|
|
{{- if $prev -}}, {{ end -}}
|
|
{{ $prev = . }}
|
|
<a href="#{{ typeIdentifier . }}">{{ typeDisplayName . }}</a>
|
|
{{- end -}}
|
|
)
|
|
</p>
|
|
{{ end }}
|
|
|
|
|
|
<p>
|
|
{{ safe (renderComments .CommentLines) }}
|
|
</p>
|
|
|
|
{{ if .Members }}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Field</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ if isExportedType . }}
|
|
<tr>
|
|
<td>
|
|
<code>apiVersion</code></br>
|
|
string</td>
|
|
<td>
|
|
<code>
|
|
{{apiGroup .}}
|
|
</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<code>kind</code></br>
|
|
string
|
|
</td>
|
|
<td><code>{{.Name.Name}}</code></td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ template "members" .}}
|
|
</tbody>
|
|
</table>
|
|
{{ end }}
|
|
|
|
{{ end }} |