mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 18:13:10 +02:00
display bare repo page
This commit is contained in:
1 parent
cd800d7837
commit
578d981d7e
4 files changed
+57
-55
No files matched your search
@@ -77,10 +77,6 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
||||
if err != nil {
|
||||
ctx.Handle(404, "repo.Single(GetBranches)", err)
|
||||
return
|
||||
} else if ctx.Repo.Repository.IsBare {
|
||||
ctx.Data["IsBareRepo"] = true
|
||||
ctx.HTML(200, "repo/single")
|
||||
return
|
||||
}
|
||||
ctx.Data["Branches"] = brs
|
||||
|
||||
@@ -264,12 +260,6 @@ func Setting(ctx *middleware.Context, params martini.Params) {
|
||||
|
||||
ctx.Data["IsRepoToolbarSetting"] = true
|
||||
|
||||
if ctx.Repo.Repository.IsBare {
|
||||
ctx.Data["IsBareRepo"] = true
|
||||
ctx.HTML(200, "repo/setting")
|
||||
return
|
||||
}
|
||||
|
||||
var title string
|
||||
if t, ok := ctx.Data["Title"].(string); ok {
|
||||
title = t
|
||||
|
||||
Reference in new issue
Block a user