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