Commit 01d8c7d6dd27410c41447c867e96d6587f17572f

Authored by Dmitriy Zaporozhets
2 parents d5d0c00e e8d2f288

Merge pull request #4000 from babatakao/fix_link_404

Fix link 404.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/deploy_keys/_deploy_key.html.haml
... ... @@ -13,7 +13,7 @@
13 13 = link_to 'Remove', project_deploy_key_path(@project, deploy_key), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove delete-key btn-small pull-right"
14 14  
15 15  
16   - = link_to project_deploy_key_path(@project, deploy_key) do
  16 + = link_to project_deploy_key_path(deploy_key.projects.include?(@project) ? @project : deploy_key.projects.first, deploy_key) do
17 17 %i.icon-key
18 18 %strong= deploy_key.title
19 19  
... ...