Procházet zdrojové kódy

Show issue/PR number on title

tags/v1.0.0
Andrey Nering před 7 roky
rodič
revize
87b593f93e
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 1
    1
      routers/repo/issue.go
  2. 2
    1
      routers/repo/pull.go

+ 1
- 1
routers/repo/issue.go Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 {

Načítá se…
Zrušit
Uložit