Skip to content

Commit 30c81a1

Browse files
appleboylunny
authored andcommitted
fix: show Clipboard button if disable HTTP of git protocol (#3773)
1 parent daf70d3 commit 30c81a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/home.tmpl

+1-1
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)