1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

Merge pull request #60 from andreynering/gitea/issue-pr-number-on-title

Show issue/PR number on title
This commit is contained in:
Kim "BKC" Carlbäcker 2016-11-04 03:14:31 +01:00 committed by GitHub
commit 5a8cb2dac1
2 changed files with 3 additions and 2 deletions

View File

@ -502,7 +502,7 @@ func ViewIssue(ctx *context.Context) {
}
return
}
ctx.Data["Title"] = issue.Title
ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
// Make sure type and URL matches.
if ctx.Params(":type") == "issues" && issue.IsPull {

View File

@ -6,6 +6,7 @@ package repo
import (
"container/list"
"fmt"
"path"
"strings"
@ -148,7 +149,7 @@ func checkPullInfo(ctx *context.Context) *models.Issue {
}
return nil
}
ctx.Data["Title"] = issue.Title
ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
ctx.Data["Issue"] = issue
if !issue.IsPull {