mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 05:39:21 +02:00
add create repository button
This commit is contained in:
1 parent
c5132b87a6
commit
0632198a40
2 files changed
+8
-5
No files matched your search
@@ -44,8 +44,8 @@ func Create(req *http.Request, r render.Render) {
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
r.HTML(403, "status/403", map[string]interface{}{
|
||||
"Title": fmt.Sprintf("%v", err),
|
||||
r.HTML(200, "base/error", map[string]interface{}{
|
||||
"Error": fmt.Sprintf("%v", err),
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -60,7 +60,9 @@ func Delete(req *http.Request, r render.Render) {
|
||||
|
||||
u := &models.User{}
|
||||
err := models.DeleteRepository(u, "")
|
||||
r.HTML(403, "status/403", map[string]interface{}{
|
||||
"Title": fmt.Sprintf("%v", err),
|
||||
})
|
||||
if err != nil {
|
||||
r.HTML(200, "base/error", map[string]interface{}{
|
||||
"Error": fmt.Sprintf("%v", err),
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user