mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	gitlab-like hash naming
This commit is contained in:
		@@ -106,13 +106,13 @@
 | 
			
		||||
                <table>
 | 
			
		||||
                    <tbody>
 | 
			
		||||
                        {{range $j, $section := $file.Sections}}
 | 
			
		||||
                        {{range $k, $line := $section.Lines}}                        
 | 
			
		||||
                        {{range $k, $line := $section.Lines}}
 | 
			
		||||
                        <tr class="{{DiffLineTypeToStr .Type}}-code nl-{{$i}} ol-{{$i}}">
 | 
			
		||||
                            <td class="lines-num lines-num-old">
 | 
			
		||||
                                <span rel="diff-{{Add $i 1}}L{{$j}}{{$k}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span>
 | 
			
		||||
                                <span rel="{{if $line.LeftIdx}}diff-L{{Sha1 $file.Name}}{{$line.LeftIdx}}{{end}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span>
 | 
			
		||||
                            </td>
 | 
			
		||||
                            <td class="lines-num lines-num-new">
 | 
			
		||||
                                <span rel="diff-{{Add $i 1}}L{{$j}}{{$k}}">{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}</span>
 | 
			
		||||
                                <span rel="{{if $line.RightIdx}}diff-{{Sha1 $file.Name}}R{{$line.RightIdx}}{{end}}">{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}</span>
 | 
			
		||||
                            </td>
 | 
			
		||||
                            
 | 
			
		||||
                            <td class="lines-code">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user