Fix cancel link
This commit is contained in:
parent
ccf50e81b7
commit
5f6166a256
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@
|
|||
for this project.
|
||||
|
||||
- if issuable.new_record?
|
||||
= link_to 'Cancel', polymorphic_path([@project.namespace, @project, issuable.class]), class: 'btn btn-cancel'
|
||||
= link_to 'Cancel', polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable.class]), class: 'btn btn-cancel'
|
||||
- else
|
||||
.pull-right
|
||||
- if current_user.can?(:"destroy_#{issuable.to_ability_name}", @project)
|
||||
|
|
Loading…
Reference in a new issue