mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fixed
This commit is contained in:
		@@ -97,6 +97,7 @@ func Single(ctx *middleware.Context, params martini.Params) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if readmeFile != nil {
 | 
			
		||||
		ctx.Data["ReadmeExist"] = true
 | 
			
		||||
		// if file large than 1M not show it
 | 
			
		||||
		if readmeFile.Size > 1024*1024 || readmeFile.Filemode != git.FileModeBlob {
 | 
			
		||||
			ctx.Data["FileIsLarge"] = true
 | 
			
		||||
 
 | 
			
		||||
@@ -83,6 +83,7 @@
 | 
			
		||||
                </tbody>
 | 
			
		||||
            </table>
 | 
			
		||||
        </div>
 | 
			
		||||
        {{if .ReadmeExist}}
 | 
			
		||||
        <div class="panel panel-default file-content">
 | 
			
		||||
            <div class="panel-heading file-head">
 | 
			
		||||
                <i class="icon fa fa-book"></i> README.md
 | 
			
		||||
@@ -97,6 +98,7 @@
 | 
			
		||||
                </div>
 | 
			
		||||
            {{end}}
 | 
			
		||||
        </div>
 | 
			
		||||
        {{end}}
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
{{template "base/footer" .}}
 | 
			
		||||
		Reference in New Issue
	
	Block a user