diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-24 14:40:20 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-24 14:40:20 -0500 |
commit | 35ef7ff6cb9bd4fbc0ebb9cae8bc495d6a9d626e (patch) | |
tree | c01406e68e5482b5d45464fea730c210d6684165 /app | |
parent | 7f43049012cb9fed1208a7ede13e4279c4d89c82 (diff) | |
download | gitlab-ce-35ef7ff6cb9bd4fbc0ebb9cae8bc495d6a9d626e.tar.gz |
Fix link when issuable is new
Diffstat (limited to 'app')
-rw-r--r-- | app/views/shared/issuable/_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml index 6606904c77a..6a42a6e3f58 100644 --- a/app/views/shared/issuable/_form.html.haml +++ b/app/views/shared/issuable/_form.html.haml @@ -127,7 +127,7 @@ for this project. - if issuable.new_record? - = link_to 'Cancel', namespace_project_issues_path(@project.namespace, @project), class: 'btn btn-cancel' + = link_to 'Cancel', polymorphic_path([@project.namespace, @project, issuable.class]), class: 'btn btn-cancel' - else .pull-right - if current_user.can?(:"destroy_#{issuable.to_ability_name}", @project) |