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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
148cc3c2
Commit
148cc3c2
authored
Mar 01, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed helper methods
parent
4927cb75
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
29 deletions
+0
-29
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+0
-4
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+0
-14
app/views/projects/tree/_tree_header.html.haml
app/views/projects/tree/_tree_header.html.haml
+0
-5
app/views/shared/_ref_switcher.html.haml
app/views/shared/_ref_switcher.html.haml
+0
-6
No files found.
app/helpers/application_helper.rb
View file @
148cc3c2
...
@@ -320,10 +320,6 @@ module ApplicationHelper
...
@@ -320,10 +320,6 @@ module ApplicationHelper
cookies
[
"sidebar_collapsed"
]
==
"true"
cookies
[
"sidebar_collapsed"
]
==
"true"
end
end
def
show_new_ide?
cookies
[
"new_repo"
]
==
"true"
&&
body_data_page
!=
'projects:show'
end
def
locale_path
def
locale_path
asset_path
(
"locale/
#{
Gitlab
::
I18n
.
locale
}
/app.js"
)
asset_path
(
"locale/
#{
Gitlab
::
I18n
.
locale
}
/app.js"
)
end
end
...
...
app/helpers/blob_helper.rb
View file @
148cc3c2
...
@@ -33,20 +33,6 @@ module BlobHelper
...
@@ -33,20 +33,6 @@ module BlobHelper
ref
)
ref
)
end
end
def
ide_edit_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
options
=
{})
return
unless
show_new_ide?
return
unless
blob
=
readable_blob
(
options
,
path
,
project
,
ref
)
common_classes
=
"btn js-edit-ide
#{
options
[
:extra_class
]
}
"
edit_button_tag
(
blob
,
common_classes
,
_
(
'Web IDE'
),
ide_edit_path
(
project
,
ref
,
path
,
options
),
project
,
ref
)
end
def
modify_file_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
label
:,
action
:,
btn_class
:,
modal_type
:)
def
modify_file_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
label
:,
action
:,
btn_class
:,
modal_type
:)
return
unless
current_user
return
unless
current_user
...
...
app/views/projects/tree/_tree_header.html.haml
View file @
148cc3c2
...
@@ -72,11 +72,6 @@
...
@@ -72,11 +72,6 @@
#{
_
(
'New tag'
)
}
#{
_
(
'New tag'
)
}
.tree-controls
.tree-controls
-
if
show_new_ide?
=
succeed
" "
do
=
link_to
ide_edit_path
(
@project
,
@id
),
class:
'btn btn-default'
do
=
_
(
'Web IDE'
)
=
link_to
s_
(
'Commits|History'
),
project_commits_path
(
@project
,
@id
),
class:
'btn'
=
link_to
s_
(
'Commits|History'
),
project_commits_path
(
@project
,
@id
),
class:
'btn'
=
render
'projects/find_file_link'
=
render
'projects/find_file_link'
...
...
app/views/shared/_ref_switcher.html.haml
View file @
148cc3c2
-
show_create
=
local_assigns
.
fetch
(
:show_create
,
false
)
-
show_create
=
local_assigns
.
fetch
(
:show_create
,
false
)
-
show_new_branch_form
=
show_new_ide?
&&
show_create
&&
can?
(
current_user
,
:push_code
,
@project
)
-
dropdown_toggle_text
=
@ref
||
@project
.
default_branch
-
dropdown_toggle_text
=
@ref
||
@project
.
default_branch
=
form_tag
switch_project_refs_path
(
@project
),
method: :get
,
class:
"project-refs-form"
do
=
form_tag
switch_project_refs_path
(
@project
),
method: :get
,
class:
"project-refs-form"
do
=
hidden_field_tag
:destination
,
destination
=
hidden_field_tag
:destination
,
destination
...
@@ -22,8 +21,3 @@
...
@@ -22,8 +21,3 @@
%li
%li
%a
.dropdown-toggle-page
{
href:
"#"
}
%a
.dropdown-toggle-page
{
href:
"#"
}
Create new branch
Create new branch
-
if
show_new_branch_form
.dropdown-page-two
=
dropdown_title
(
"Create new branch"
,
options:
{
back:
true
})
=
dropdown_content
do
.js-new-branch-dropdown
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