2022-03-29 08:51:30 +05:30
|
|
|
<!-- 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-29 00:00:06 +05:30
|
|
|
{{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
|
|
|
|
</button>
|
|
|
|
{{end}}
|
2022-03-29 08:51:30 +05:30
|
|
|
{{if $.CloneButtonShowSSH}}
|
|
|
|
<button class="ui basic clone button no-transition" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
|
2020-12-29 00:00:06 +05:30
|
|
|
SSH
|
|
|
|
</button>
|
|
|
|
{{end}}
|
2022-08-02 08:22:05 +05:30
|
|
|
<input id="repo-clone-url" class="js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" size="1" readonly>
|
2022-07-26 21:13:13 +05:30
|
|
|
<button class="ui basic icon button tooltip" id="clipboard-btn" data-content="{{.locale.Tr "copy_url"}}" data-clipboard-target="#repo-clone-url" aria-label="{{.locale.Tr "copy_url"}}">
|
2022-03-29 08:51:30 +05:30
|
|
|
{{svg "octicon-paste"}}
|
|
|
|
</button>
|