16 lines
577 B
HTML
16 lines
577 B
HTML
{{ define "docker-command" }}
|
|
{{/*
|
|
Docker command component - displays a docker command with icon and copy button
|
|
|
|
Expects: string - the docker command to display
|
|
Usage: {{ template "docker-command" "docker pull atcr.io/alice/myapp:latest" }}
|
|
*/}}
|
|
<div class="docker-command">
|
|
<i data-lucide="terminal" class="docker-command-icon"></i>
|
|
<code class="docker-command-text">{{ . }}</code>
|
|
<button class="copy-btn" onclick="copyToClipboard(this.getAttribute('data-cmd'))" data-cmd="{{ . }}">
|
|
<i data-lucide="copy"></i>
|
|
</button>
|
|
</div>
|
|
{{ end }}
|