Skip to content

Commit e5d6f4c

Browse files
committed
Changes to repo-header-download-drop, different repo-clone-url input behaviour
1 parent 485ea6f commit e5d6f4c

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
*.db
33
*.log
4+
log/
45
custom/
56
data/
67
.vendor/
@@ -34,4 +35,4 @@ docker/fig.yml
3435
docker/docker/Dockerfile
3536
docker/docker/init_gogs.sh
3637
gogs.sublime-project
37-
gogs.sublime-workspace
38+
gogs.sublime-workspace

public/ng/css/gogs.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,9 @@ The register and sign-in page style
10661066
#repo-header-download-drop .btn > i {
10671067
margin-right: 6px;
10681068
}
1069+
#repo-header-download-drop input {
1070+
cursor: default;
1071+
}
10691072
#repo-header-download-drop button,
10701073
#repo-header-download-drop input {
10711074
font-size: 11px;

public/ng/less/gogs/repository.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
.btn>i {
8282
margin-right: 6px;
8383
}
84+
input {
85+
cursor: default;
86+
}
8487
button, input {
8588
font-size: 11px;
8689
}

templates/repo/header.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<button class="btn btn-blue left btn-left-radius" id="repo-clone-ssh" data-link="{{$.CloneLink.SSH}}">SSH</button>
2323
{{end}}
2424
<button class="btn {{if $.DisableSSH}}btn-blue{{else}}btn-gray{{end}} left" id="repo-clone-https" data-link="{{$.CloneLink.HTTPS}}">HTTPS</button>
25-
<input id="repo-clone-url" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly />
25+
<input id="repo-clone-url" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" onclick="this.select();" readonly />
2626
<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>
2727
<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>
2828
<hr/>
@@ -60,4 +60,4 @@
6060
</ul>
6161
</div>
6262
</div>
63-
{{end}}
63+
{{end}}

0 commit comments

Comments
 (0)