mirror of
https://github.com/go-gitea/gitea
synced 2024-11-21 22:51:10 +01:00
add create repository button
This commit is contained in:
parent
c5132b87a6
commit
0632198a40
2 changed files with 8 additions and 5 deletions
|
@ -44,8 +44,8 @@ func Create(req *http.Request, r render.Render) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
r.HTML(403, "status/403", map[string]interface{}{
|
r.HTML(200, "base/error", map[string]interface{}{
|
||||||
"Title": fmt.Sprintf("%v", err),
|
"Error": fmt.Sprintf("%v", err),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,9 @@ func Delete(req *http.Request, r render.Render) {
|
||||||
|
|
||||||
u := &models.User{}
|
u := &models.User{}
|
||||||
err := models.DeleteRepository(u, "")
|
err := models.DeleteRepository(u, "")
|
||||||
r.HTML(403, "status/403", map[string]interface{}{
|
if err != nil {
|
||||||
"Title": fmt.Sprintf("%v", err),
|
r.HTML(200, "base/error", map[string]interface{}{
|
||||||
})
|
"Error": fmt.Sprintf("%v", err),
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<a class="gogs-nav-item" href="#">Dashboard</a>
|
<a class="gogs-nav-item" href="#">Dashboard</a>
|
||||||
<a class="gogs-nav-item" href="#">Explore</a>
|
<a class="gogs-nav-item" href="#">Explore</a>
|
||||||
<a class="gogs-nav-item" href="#">Help</a>
|
<a class="gogs-nav-item" href="#">Help</a>
|
||||||
|
<a class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/repo/create">Create a repository</a>
|
||||||
<a class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/login/">Sign in</a>
|
<a class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/login/">Sign in</a>
|
||||||
<!--<a class="gogs-nav-item navbar-right" href="#">Profile</a>-->
|
<!--<a class="gogs-nav-item navbar-right" href="#">Profile</a>-->
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue