Browse Source

Show issue/PR number on title

tags/v1.2.0-rc1
Andrey Nering 9 years ago
parent
commit
d709866a8a
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      routers/repo/issue.go
  2. +2
    -1
      routers/repo/pull.go

+ 1
- 1
routers/repo/issue.go 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 {


+ 2
- 1
routers/repo/pull.go 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 {


Loading…
Cancel
Save