diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 4001e3a4f8..4b73571e66 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -242,6 +242,10 @@ func checkPullInfo(ctx *context.Context) *models.Issue {
ctx.ServerError("LoadPoster", err)
return nil
}
+ if err := issue.LoadRepo(); err != nil {
+ ctx.ServerError("LoadRepo", err)
+ return nil
+ }
ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
ctx.Data["Issue"] = issue
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index ae2b6b954d..c0686ca93e 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -131,16 +131,25 @@
-
+ {{if .Owner.Description}}
+
+ {{end}}
{{else if .Repository}}
-
+ {{if .Issue}}
+
+
+ {{if .Issue.Content}}
+
+ {{end}}
+ {{else}}
+
+
+ {{if .Repository.Description}}
+
+ {{end}}
+ {{end}}
-
- {{if .Repository.Description}}
-
- {{end}}
-
{{else}}
@@ -148,6 +157,7 @@
{{end}}
+
{{if .IsSigned }}
{{ if ne .SignedUser.Theme "gitea" }}