diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl new file mode 100644 index 000000000..92195283c --- /dev/null +++ b/templates/repo/clone_buttons.tmpl @@ -0,0 +1,35 @@ +{{if not $.DisableHTTP}} + +{{end}} +{{if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}} + +{{end}} +{{if not $.DisableHTTP}} + +{{else if and (not .DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}} + +{{end}} +{{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}} + +{{end}} +{{if not (and $.DisableHTTP $.DisableSSH)}} + +{{end}} diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl index b5a39d0a9..7dae7c012 100644 --- a/templates/repo/empty.tmpl +++ b/templates/repo/empty.tmpl @@ -18,26 +18,7 @@