mirror of https://github.com/docker/docs.git
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
{{- /*
|
|
Adds links for editing the page or requesting changes:
|
|
- "Edit this page": Only in production, skips files from `_vendor/` (upstream repositories).
|
|
- "Request changes": Links to a pre-filled issue form.
|
|
*/ -}}
|
|
{{ if hugo.IsProduction }}
|
|
{{ with .File }}
|
|
{{ if not (in .Filename "/_vendor/") }}
|
|
<p class="flex items-center gap-2">
|
|
<span class="icon-svg">{{ partialCached "icon" "edit" "edit" }}</span>
|
|
<a class="link" rel="noopener"
|
|
href="{{ site.Params.repo }}/edit/main/content/{{ .Path }}">{{- T "editPage" -}}
|
|
<span class="icon-svg icon-sm">
|
|
{{ partialCached "icon" "open_in_new" "open_in_new" }}
|
|
</span></a>
|
|
</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
<p class="flex items-center gap-2">
|
|
<span class="icon-svg">{{ partialCached "icon" "check" "check" }}</span>
|
|
<a class="link" rel="noopener"
|
|
href="{{ site.Params.repo }}/issues/new?template=doc_issue.yml&location={{ .Permalink }}&labels=status%2Ftriage">{{- T "requestChanges" -}}
|
|
<span class="icon-svg icon-sm">
|
|
{{ partialCached "icon" "open_in_new" "open_in_new" }}
|
|
</span></a>
|
|
</a>
|
|
</p>
|
|
{{ end }}
|