0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 02:14:06 -05:00
forgejo/routers/repo/single.go
2014-03-13 12:50:07 +08:00

14 lines
277 B
Go

package repo
import (
"github.com/gogits/gogs/modules/base"
"github.com/martini-contrib/render"
)
func Single(r render.Render, data base.TmplData) {
if !data["IsRepositoryValid"].(bool) {
return
}
data["IsRepoToolbarSource"] = true
r.HTML(200, "repo/single", data)
}