File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ func EditProject(ctx *context.Context) {
249249 ctx .Data ["title" ] = p .Title
250250 ctx .Data ["content" ] = p .Description
251251 ctx .Data ["redirect" ] = ctx .FormString ("redirect" )
252+ ctx .Data ["HomeLink" ] = ctx .ContextUser .HomeLink ()
252253
253254 ctx .HTML (http .StatusOK , tplProjectsNew )
254255}
Original file line number Diff line number Diff line change 5050 <div class="ui divider"></div>
5151 <div class="ui left">
5252 {{if .PageIsEditProjects}}
53- <a class="ui cancel button" href="{{AppSubUrl}}/{{.Org.Name }}/-/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
53+ <a class="ui cancel button" href="{{$.HomeLink }}/-/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
5454 {{.locale.Tr "repo.milestones.cancel"}}
5555 </a>
5656 <button class="ui primary button">
You can’t perform that action at this time.
0 commit comments