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