diff options
author | Stefan-Code <Stefan-Code@users.noreply.github.com> | 2015-02-11 07:28:51 +0100 |
---|---|---|
committer | Stefan-Code <Stefan-Code@users.noreply.github.com> | 2015-02-11 07:28:51 +0100 |
commit | e5d6f4ce56fbd32cc9a178cffd40a72efee59e74 (patch) | |
tree | 0ce0b44760d40c6f76d8898b9480de8a6d55e176 | |
parent | 485ea6f14f38cfa5da4fa27865f62fcc7691ffb4 (diff) | |
download | gitea-e5d6f4ce56fbd32cc9a178cffd40a72efee59e74.tar.gz gitea-e5d6f4ce56fbd32cc9a178cffd40a72efee59e74.zip |
Changes to repo-header-download-drop, different repo-clone-url input behaviour
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | public/ng/css/gogs.css | 3 | ||||
-rw-r--r-- | public/ng/less/gogs/repository.less | 3 | ||||
-rw-r--r-- | templates/repo/header.tmpl | 4 |
4 files changed, 10 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index b21581331e..ba878d92d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store *.db *.log +log/ custom/ data/ .vendor/ @@ -34,4 +35,4 @@ docker/fig.yml docker/docker/Dockerfile docker/docker/init_gogs.sh gogs.sublime-project -gogs.sublime-workspace
\ No newline at end of file +gogs.sublime-workspace diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css index 71208f4b56..9f6cf12f97 100644 --- a/public/ng/css/gogs.css +++ b/public/ng/css/gogs.css @@ -1066,6 +1066,9 @@ The register and sign-in page style #repo-header-download-drop .btn > i { margin-right: 6px; } +#repo-header-download-drop input { + cursor: default; +} #repo-header-download-drop button, #repo-header-download-drop input { font-size: 11px; diff --git a/public/ng/less/gogs/repository.less b/public/ng/less/gogs/repository.less index 59513c77c7..d683d03341 100644 --- a/public/ng/less/gogs/repository.less +++ b/public/ng/less/gogs/repository.less @@ -81,6 +81,9 @@ .btn>i { margin-right: 6px; } + input { + cursor: default; + } button, input { font-size: 11px; } diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 9e52efc727..a0b927be60 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -22,7 +22,7 @@ <button class="btn btn-blue left btn-left-radius" id="repo-clone-ssh" data-link="{{$.CloneLink.SSH}}">SSH</button> {{end}} <button class="btn {{if $.DisableSSH}}btn-blue{{else}}btn-gray{{end}} left" id="repo-clone-https" data-link="{{$.CloneLink.HTTPS}}">HTTPS</button> - <input id="repo-clone-url" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly /> + <input id="repo-clone-url" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" onclick="this.select();" readonly /> <button id="repo-clone-copy" class="btn btn-black left btn-right-radius" data-copy-val="val" data-copy-from="#repo-clone-url" original-title="{{$.i18n.Tr "repo.click_to_copy"}}" data-original-title="{{$.i18n.Tr "repo.click_to_copy"}}" data-after-title="{{$.i18n.Tr "repo.copied"}}">{{$.i18n.Tr "repo.copy_link"}}</button> <p class="text-center" id="repo-clone-help">{{$.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</p> <hr/> @@ -60,4 +60,4 @@ </ul> </div> </div> -{{end}}
\ No newline at end of file +{{end}} |