mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 18:12:20 +01:00 
			
		
		
		
	Merge pull request #968 from Stefan-Code/dev
Changed repo-clone url behavior on bare repo page, added LESS compile script
This commit is contained in:
		
						commit
						be19fe48d7
					
				| @ -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; | ||||
|  | ||||
| @ -81,9 +81,6 @@ | ||||
|     .btn>i { | ||||
|         margin-right: 6px; | ||||
|     } | ||||
|     input { | ||||
|         cursor: default; | ||||
|     } | ||||
|     button, input { | ||||
|         font-size: 11px; | ||||
|     } | ||||
| @ -104,6 +101,7 @@ | ||||
|     border-right: none; | ||||
|     width: 190px; | ||||
|     border-left: none; | ||||
|     cursor: default; | ||||
| } | ||||
| #repo-clone-help { | ||||
|     clear: both; | ||||
|  | ||||
							
								
								
									
										5
									
								
								scripts/less.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								scripts/less.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,5 @@ | ||||
| #!/bin/sh | ||||
| echo "compiling LESS Files" | ||||
| lessc ../public/ng/less/gogs.less ../public/ng/css/gogs.css | ||||
| lessc ../public/ng/less/ui.less ../public/ng/css/ui.css | ||||
| echo "done" | ||||
| @ -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" .}} | ||||
| {{template "ng/base/footer" .}} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user