File tree 4 files changed +5
-2
lines changed 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -232,9 +232,11 @@ func EditProject(ctx *context.Context) {
232
232
return
233
233
}
234
234
235
+ ctx .Data ["projectID" ] = p .ID
235
236
ctx .Data ["title" ] = p .Title
236
237
ctx .Data ["content" ] = p .Description
237
238
ctx .Data ["redirect" ] = ctx .FormString ("redirect" )
239
+ ctx .Data ["HomeLink" ] = ctx .ContextUser .HomeLink ()
238
240
239
241
ctx .HTML (http .StatusOK , tplProjectsNew )
240
242
}
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ func EditProject(ctx *context.Context) {
232
232
return
233
233
}
234
234
235
+ ctx .Data ["projectID" ] = p .ID
235
236
ctx .Data ["title" ] = p .Title
236
237
ctx .Data ["content" ] = p .Description
237
238
ctx .Data ["card_type" ] = p .CardType
Original file line number Diff line number Diff line change 48
48
<div class="ui divider"></div>
49
49
<div class="ui left">
50
50
{{if .PageIsEditProjects}}
51
- <a class="ui primary basic button" href="{{.RepoLink }}/projects">
51
+ <a class="ui primary basic button" href="{{$.HomeLink }}/-/ projects{{if eq .redirect "project"}}/{{.projectID}}{{end}} ">
52
52
{{.locale.Tr "repo.milestones.cancel"}}
53
53
</a>
54
54
<button class="ui green button">
Original file line number Diff line number Diff line change 72
72
<div class="ui divider"></div>
73
73
<div class="ui left">
74
74
{{if .PageIsEditProjects}}
75
- <a class="ui primary basic button" href="{{.RepoLink}}/projects">
75
+ <a class="ui primary basic button" href="{{.RepoLink}}/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}} ">
76
76
{{.locale.Tr "repo.milestones.cancel"}}
77
77
</a>
78
78
<button class="ui green button">
You can’t perform that action at this time.
0 commit comments