mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
single repository page ui, add spec handler to get repo
This commit is contained in:
@@ -6,8 +6,6 @@ package repo
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/codegangsta/martini"
|
||||
"github.com/martini-contrib/render"
|
||||
"github.com/martini-contrib/sessions"
|
||||
|
||||
@@ -87,20 +85,6 @@ func Delete(req *http.Request, r render.Render, data base.TmplData, session sess
|
||||
}
|
||||
}
|
||||
|
||||
func Repo(params martini.Params, req *http.Request, r render.Render, data base.TmplData, session sessions.Session) {
|
||||
data["Title"] = "Repository"
|
||||
files, err := models.GetReposFiles(params["username"], params["reponame"], "HEAD", "/")
|
||||
if err != nil {
|
||||
data["ErrorMsg"] = err
|
||||
log.Error("repo.List: %v", err)
|
||||
r.HTML(200, "base/error", data)
|
||||
return
|
||||
}
|
||||
|
||||
data["Files"] = files
|
||||
r.HTML(200, "repo/repo", data)
|
||||
}
|
||||
|
||||
func List(req *http.Request, r render.Render, data base.TmplData, session sessions.Session) {
|
||||
u := auth.SignedInUser(session)
|
||||
if u != nil {
|
||||
|
Reference in New Issue
Block a user