File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{{if not $.DisableHTTP}}
2- <button class="ui basic clone button no-transition" id="repo-clone-https" data-link="{{. CloneLink.HTTPS}}">
2+ <button class="ui basic clone button no-transition" id="repo-clone-https" data-link="{{if $.PageIsWiki}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$. CloneLink.HTTPS}}{{end }}">
33 {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
44 </button>
55{{end}}
66{{if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
7- <button class="ui basic clone button no-transition" id="repo-clone-ssh" data-link="{{. CloneLink.SSH}}">
7+ <button class="ui basic clone button no-transition" id="repo-clone-ssh" data-link="{{if $.PageIsWiki}}{{$.WikiCloneLink.SSH}}{{else}}{{$. CloneLink.SSH}}{{end }}">
88 SSH
99 </button>
1010{{end}}
1111{{if not $.DisableHTTP}}
12- <input id="repo-clone-url" value="{{$. CloneLink.HTTPS}}" readonly>
12+ <input id="repo-clone-url" value="{{if $.PageIsWiki}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$. CloneLink.HTTPS}}{{end }}" readonly>
1313{{else if and (not .DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
14- <input id="repo-clone-url" value="{{$. CloneLink.SSH}}" readonly>
14+ <input id="repo-clone-url" value="{{if $.PageIsWiki}}{{$.WikiCloneLink.SSH}}{{else}}{{$. CloneLink.SSH}}{{end }}" readonly>
1515{{end}}
1616{{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}}
1717 <button class="ui basic icon button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url">
You can’t perform that action at this time.
0 commit comments