summaryrefslogtreecommitdiffstats
path: root/templates/repo/clone_buttons.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-04-07 15:31:41 +0800
committerGitHub <noreply@github.com>2023-04-07 03:31:41 -0400
commitff2f479a4b23484f3717e1efaa24819f9b0e5e60 (patch)
treeee058e712df158a7a4884be463de661cfd6c01ec /templates/repo/clone_buttons.tmpl
parent17623bba0d62e1954031fadc019c3cd104cb5fb8 (diff)
downloadgitea-ff2f479a4b23484f3717e1efaa24819f9b0e5e60.tar.gz
gitea-ff2f479a4b23484f3717e1efaa24819f9b0e5e60.zip
Clean template/helper.go (#23922)
The first step of #23328 This PR cleans: 1. Dead function like `SubStr` 2. Unnecessary function like `UseHTTPS`, it should be provided by `window.origin` 3. Duplicate function like `IsShowFullName`, there was already a `DeafultShowFullName` I have searched these removed functions globally, no use in code.
Diffstat (limited to 'templates/repo/clone_buttons.tmpl')
-rw-r--r--templates/repo/clone_buttons.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl
index 278ae3a925..656a487915 100644
--- a/templates/repo/clone_buttons.tmpl
+++ b/templates/repo/clone_buttons.tmpl
@@ -1,7 +1,7 @@
<!-- there is always at least one button (by context/repo.go) -->
{{if $.CloneButtonShowHTTPS}}
<button class="ui basic small compact clone button gt-no-transition" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
- {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
+ HTTPS
</button>
{{end}}
{{if $.CloneButtonShowSSH}}