1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00
forgejo/routers/repo/single.go

15 lines
277 B
Go
Raw Normal View History

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