2022-03-29 03:21:30 +00:00
|
|
|
<!-- there is always at least one button (by context/repo.go) -->
|
|
|
|
{{if $.CloneButtonShowHTTPS}}
|
|
|
|
<button class="ui basic clone button no-transition" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
|
2020-12-28 18:30:06 +00:00
|
|
|
{{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
|
|
|
|
</button>
|
|
|
|
{{end}}
|
2022-03-29 03:21:30 +00:00
|
|
|
{{if $.CloneButtonShowSSH}}
|
|
|
|
<button class="ui basic clone button no-transition" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
|
2020-12-28 18:30:06 +00:00
|
|
|
SSH
|
|
|
|
</button>
|
|
|
|
{{end}}
|
2022-08-02 04:31:38 +00:00
|
|
|
<input id="repo-clone-url" class="js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" size="1" readonly>
|
2022-07-28 20:21:36 +00:00
|
|
|
<button class="ui basic icon button tooltip" id="clipboard-btn" data-content="{{.i18n.Tr "copy_url"}}" data-clipboard-target="#repo-clone-url" aria-label="{{.i18n.Tr "copy_url"}}">
|
2022-03-29 03:21:30 +00:00
|
|
|
{{svg "octicon-paste"}}
|
|
|
|
</button>
|