single.go 277 B

1234567891011121314
  1. package repo
  2. import (
  3. "github.com/gogits/gogs/modules/base"
  4. "github.com/martini-contrib/render"
  5. )
  6. func Single(r render.Render, data base.TmplData) {
  7. if !data["IsRepositoryValid"].(bool) {
  8. return
  9. }
  10. data["IsRepoToolbarSource"] = true
  11. r.HTML(200, "repo/single", data)
  12. }