Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5cf076d3
Commit
5cf076d3
authored
Jan 31, 2018
by
Tim Zallmann
Committed by
Phil Hughes
Jan 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Add Web IDE button to project page"
parent
40b6c91f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-1
app/views/projects/tree/_tree_header.html.haml
app/views/projects/tree/_tree_header.html.haml
+5
-5
changelogs/unreleased/4613-add-web-ide-button-to-project-page.yml
...gs/unreleased/4613-add-web-ide-button-to-project-page.yml
+5
-0
spec/features/projects/tree/create_file_spec.rb
spec/features/projects/tree/create_file_spec.rb
+1
-1
No files found.
app/helpers/application_helper.rb
View file @
5cf076d3
...
...
@@ -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
...
...
app/views/projects/tree/_tree_header.html.haml
View file @
5cf076d3
...
...
@@ -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
changelogs/unreleased/4613-add-web-ide-button-to-project-page.yml
0 → 100644
View file @
5cf076d3
---
title
:
Activated the Web IDE Button also on the main project page
merge_request
:
4250
author
:
type
:
other
spec/features/projects/tree/create_file_spec.rb
View file @
5cf076d3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment