File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{{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 }}">
3
3
{{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
4
4
</button>
5
5
{{end}}
6
6
{{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 }}">
8
8
SSH
9
9
</button>
10
10
{{end}}
11
11
{{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>
13
13
{{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>
15
15
{{end}}
16
16
{{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}}
17
17
<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