aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/single.go
blob: 322f6ce87f89e47cf67b104d4f0c4b5bdf06d5ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
}