]> source.dussan.org Git - gitea.git/commitdiff
changed repo-clone-url behaviour for bare repo
authorStefan-Code <Stefan-Code@users.noreply.github.com>
Wed, 18 Feb 2015 07:22:13 +0000 (08:22 +0100)
committerStefan-Code <Stefan-Code@users.noreply.github.com>
Wed, 18 Feb 2015 07:22:13 +0000 (08:22 +0100)
public/ng/css/gogs.css
public/ng/less/gogs/repository.less
templates/repo/bare.tmpl

index 9f6cf12f97b17b98eca895f0c02d01ffa8231501..43931e94d3bed59d2c846ebe4a3b8a28ab2d34e5 100644 (file)
@@ -1066,9 +1066,6 @@ 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;
@@ -1089,6 +1086,7 @@ The register and sign-in page style
   border-right: none;
   width: 190px;
   border-left: none;
+  cursor: default;
 }
 #repo-clone-help {
   clear: both;
index d683d0334177b4bcaed8e983799b65c01bdc4d7c..63c25d06b6a5f1a23971b7edffc6f80a8ee82a3f 100644 (file)
@@ -81,9 +81,6 @@
     .btn>i {
         margin-right: 6px;
     }
-    input {
-        cursor: default;
-    }
     button, input {
         font-size: 11px;
     }
     border-right: none;
     width: 190px;
     border-left: none;
+    cursor: default;
 }
 #repo-clone-help {
     clear: both;
index 2a1409a6e8a5251fc126024bca2389621d554408..c050b6238db7d677bb9415c1278285841055d45d 100644 (file)
@@ -23,7 +23,7 @@
                         <h2>{{.i18n.Tr "repo.clone_this_repo"}}</h2>
                         <button class="btn btn-blue current left btn-left-radius" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}">SSH</button>
                         <button class="btn btn-gray left" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}">HTTPS</button>
-                        <input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" readonly />
+                        <input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" onclick="this.select()" readonly />
                         <button class="btn btn-black left btn-right-radius" id="repo-clone-copy" data-copy-val="val" data-copy-from="#repo-clone-url">{{.i18n.Tr "repo.copy_link"}}</button>
                         <p class="text-center" id="repo-clone-help">{{.i18n.Tr "repo.clone_helper" | Str2html}}</p>
                         <hr/>
@@ -50,4 +50,4 @@ git push -u origin master</code></pre>
         </div>
     </div>
 </div>
-{{template "ng/base/footer" .}}
\ No newline at end of file
+{{template "ng/base/footer" .}}