diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 8b9c9cef..a9e48021 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -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),
+ })
+ }
}
diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl
index ae908738..56d4a579 100644
--- a/templates/base/navbar.tmpl
+++ b/templates/base/navbar.tmpl
@@ -5,6 +5,7 @@
Dashboard
Explore
Help
+ Create a repository
Sign in