Fix for Snippets with a project
This commit is contained in:
parent
1a277c5025
commit
35853033b9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
- else
|
||||
= f.submit 'Save', class: "btn-save btn"
|
||||
|
||||
- if @snippet.respond_to?(:project)
|
||||
- if @snippet.project_id
|
||||
= link_to "Cancel", namespace_project_snippets_path(@project.namespace, @project), class: "btn btn-cancel"
|
||||
- else
|
||||
= link_to "Cancel", snippets_path(@project), class: "btn btn-cancel"
|
||||
|
|
Loading…
Reference in a new issue