mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Show issue/PR number on title
This commit is contained in:
		@@ -502,7 +502,7 @@ func ViewIssue(ctx *context.Context) {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	ctx.Data["Title"] = issue.Title
 | 
						ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Make sure type and URL matches.
 | 
						// Make sure type and URL matches.
 | 
				
			||||||
	if ctx.Params(":type") == "issues" && issue.IsPull {
 | 
						if ctx.Params(":type") == "issues" && issue.IsPull {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,6 +6,7 @@ package repo
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"container/list"
 | 
						"container/list"
 | 
				
			||||||
 | 
						"fmt"
 | 
				
			||||||
	"path"
 | 
						"path"
 | 
				
			||||||
	"strings"
 | 
						"strings"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -148,7 +149,7 @@ func checkPullInfo(ctx *context.Context) *models.Issue {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		return nil
 | 
							return nil
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	ctx.Data["Title"] = issue.Title
 | 
						ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
 | 
				
			||||||
	ctx.Data["Issue"] = issue
 | 
						ctx.Data["Issue"] = issue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if !issue.IsPull {
 | 
						if !issue.IsPull {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user