2024-12-11 06:54:30 -07:00
|
|
|
<!-- there is always at least one button (guaranteed by context/repo.go) -->
|
|
|
|
<div class="ui action small input clone-buttons-combo">
|
|
|
|
{{if $.CloneButtonShowHTTPS}}
|
|
|
|
<button class="ui small button repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">HTTPS</button>
|
|
|
|
{{end}}
|
|
|
|
{{if $.CloneButtonShowSSH}}
|
|
|
|
<button class="ui small button repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">SSH</button>
|
|
|
|
{{end}}
|
|
|
|
<input size="10" class="repo-clone-url js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" readonly>
|
|
|
|
<button class="ui small icon button" data-clipboard-target=".repo-clone-url" data-tooltip-content="{{ctx.Locale.Tr "copy_url"}}">
|
|
|
|
{{svg "octicon-copy" 14}}
|
2020-12-28 11:30:06 -07:00
|
|
|
</button>
|
2024-12-11 06:54:30 -07:00
|
|
|
</div>
|