display bare repo page
This commit is contained in:
parent
cd800d7837
commit
578d981d7e
4 changed files with 57 additions and 55 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue