Commit 5cf076d3 authored by Tim Zallmann's avatar Tim Zallmann Committed by Phil Hughes

Resolve "Add Web IDE button to project page"

parent 40b6c91f
......@@ -311,7 +311,7 @@ module ApplicationHelper
end
def show_new_ide?(project)
cookies["new_repo"] == "true" && body_data_page != 'projects:show' && project.feature_available?(:ide)
cookies["new_repo"] == "true" && project.feature_available?(:ide)
end
def locale_path
......
......@@ -72,14 +72,14 @@
#{ _('New tag') }
.tree-controls
- if show_new_ide?(@project)
= succeed " " do
= link_to ide_edit_path(@project, @id), class: 'btn btn-default' do
= ide_edit_text
= lock_file_link(html_options: { class: 'btn path-lock' })
= link_to s_('Commits|History'), project_commits_path(@project, @id), class: 'btn'
= render 'projects/find_file_link'
- if show_new_ide?(@project)
= succeed " " do
= link_to ide_edit_path(@project, @id), class: 'btn btn-default' do
= ide_edit_text
= render 'projects/buttons/download', project: @project, ref: @ref
---
title: Activated the Web IDE Button also on the main project page
merge_request: 4250
author:
type: other
......@@ -12,7 +12,7 @@ feature 'Multi-file editor new file', :js do
set_cookie('new_repo', 'true')
visit project_tree_path(project, :master)
visit project_path(project)
wait_for_requests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment