mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix diff css style, hooks \r char
This commit is contained in:
		@@ -83,7 +83,7 @@ func (h *Hook) Update() error {
 | 
			
		||||
	if len(strings.TrimSpace(h.Content)) == 0 {
 | 
			
		||||
		return os.Remove(h.path)
 | 
			
		||||
	}
 | 
			
		||||
	return ioutil.WriteFile(h.path, []byte(h.Content), os.ModePerm)
 | 
			
		||||
	return ioutil.WriteFile(h.path, []byte(strings.Replace(h.Content, "\r", "", -1)), os.ModePerm)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ListHooks returns a list of Git hooks of given repository.
 | 
			
		||||
 
 | 
			
		||||
@@ -74,7 +74,7 @@
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        {{range .Diff.Files}}
 | 
			
		||||
        <div class="panel diff-file-box diff-box file-content" id="diff-{{.Index}}">
 | 
			
		||||
        <div class="panel panel-radius diff-file-box diff-box file-content" id="diff-{{.Index}}">
 | 
			
		||||
            <div class="panel-header">
 | 
			
		||||
                <div class="diff-counter count pull-left">
 | 
			
		||||
                    {{if not .IsBin}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user