Skip to content

Commit 251e1b6

Browse files
authored
Backport: fix: show Clipboard button if disable HTTP of git protocol #3773 (#3774)
1 parent 641d481 commit 251e1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
{{else if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
7474
<input id="repo-clone-url" value="{{$.CloneLink.SSH}}" readonly>
7575
{{end}}
76-
{{if or ((not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)))}}
76+
{{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}}
7777
<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">
7878
<i class="octicon octicon-clippy"></i>
7979
</button>

0 commit comments

Comments
 (0)