mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 17:30:36 +00:00
Fix navbar on project view (#17749)
- Shows that the project nav item is active when you're viewing a project.
This commit is contained in:
parent
58ff86ed4d
commit
8244cfb8eb
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,6 @@ func EditProjectPost(ctx *context.Context) {
|
|||
|
||||
// ViewProject renders the project board for a project
|
||||
func ViewProject(ctx *context.Context) {
|
||||
|
||||
project, err := models.GetProjectByID(ctx.ParamsInt64(":id"))
|
||||
if err != nil {
|
||||
if models.IsErrProjectNotExist(err) {
|
||||
|
@ -332,6 +331,7 @@ func ViewProject(ctx *context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
ctx.Data["IsProjectsPage"] = true
|
||||
ctx.Data["CanWriteProjects"] = ctx.Repo.Permission.CanWrite(unit.TypeProjects)
|
||||
ctx.Data["Project"] = project
|
||||
ctx.Data["Boards"] = boards
|
||||
|
|
Loading…
Reference in a new issue