diff --git a/cmd/web-app/handlers/projects.go b/cmd/web-app/handlers/projects.go index 630465d..8dfa2d6 100644 --- a/cmd/web-app/handlers/projects.go +++ b/cmd/web-app/handlers/projects.go @@ -292,7 +292,7 @@ func (h *Projects) View(ctx context.Context, w http.ResponseWriter, r *http.Requ return err } data["project"] = prj.Response(ctx) - + data["urlProjectsView"] = urlProjectsView(projectID) data["urlProjectsUpdate"] = urlProjectsUpdate(projectID) return h.Renderer.Render(ctx, w, r, TmplLayoutBase, "projects-view.gohtml", web.MIMETextHTMLCharsetUTF8, http.StatusOK, data) @@ -373,6 +373,8 @@ func (h *Projects) Update(ctx context.Context, w http.ResponseWriter, r *http.Re } data["project"] = prj.Response(ctx) + data["urlProjectsView"] = urlProjectsView(projectID) + if req.ID == "" { req.Name = &prj.Name req.Status = &prj.Status diff --git a/cmd/web-app/templates/content/projects-create.gohtml b/cmd/web-app/templates/content/projects-create.gohtml index 333a222..706af3c 100644 --- a/cmd/web-app/templates/content/projects-create.gohtml +++ b/cmd/web-app/templates/content/projects-create.gohtml @@ -4,6 +4,13 @@ {{end}} {{define "content"}} + +