diff options
author | silverwind <me@silverwind.io> | 2022-08-02 04:52:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 10:52:05 +0800 |
commit | ae3b88bef36179fb43ddcf2a14b46ca0969d8aad (patch) | |
tree | f94daab14cc40aad25561b2d526635774e5247d6 /templates/repo/clone_buttons.tmpl | |
parent | cf4061921548e1cffff0af66ef34ac793a1696c4 (diff) | |
download | gitea-ae3b88bef36179fb43ddcf2a14b46ca0969d8aad.tar.gz gitea-ae3b88bef36179fb43ddcf2a14b46ca0969d8aad.zip |
Add default value for clone URLs (#20600)
Default clone URLs to HTTP(S) in DOM rendering. JS will immediately
replace this if the user preference is SSH.
Fixes: https://github.com/go-gitea/gitea/issues/20558
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo/clone_buttons.tmpl')
-rw-r--r-- | templates/repo/clone_buttons.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl index 67a509835f..0d0fe73014 100644 --- a/templates/repo/clone_buttons.tmpl +++ b/templates/repo/clone_buttons.tmpl @@ -9,7 +9,7 @@ SSH </button> {{end}} -<input id="repo-clone-url" class="js-clone-url" value="" size="1" readonly> +<input id="repo-clone-url" class="js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" size="1" readonly> <button class="ui basic icon button tooltip" id="clipboard-btn" data-content="{{.locale.Tr "copy_url"}}" data-clipboard-target="#repo-clone-url" aria-label="{{.locale.Tr "copy_url"}}"> {{svg "octicon-paste"}} </button> |