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
Jérome Perrin
gitlab-ce
Commits
03598ca7
Commit
03598ca7
authored
Aug 04, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable new repo on project show
parent
91a60743
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
8 deletions
+1
-8
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-2
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+0
-5
No files found.
app/assets/javascripts/dispatcher.js
View file @
03598ca7
...
@@ -349,8 +349,6 @@ import FeatureHelper from './helpers/feature_helper';
...
@@ -349,8 +349,6 @@ import FeatureHelper from './helpers/feature_helper';
shortcut_handler
=
new
ShortcutsNavigation
();
shortcut_handler
=
new
ShortcutsNavigation
();
new
NotificationsForm
();
new
NotificationsForm
();
if
(
FeatureHelper
.
isNewRepo
())
break
;
if
(
$
(
'
#tree-slider
'
).
length
)
new
TreeView
();
if
(
$
(
'
#tree-slider
'
).
length
)
new
TreeView
();
if
(
$
(
'
.blob-viewer
'
).
length
)
new
BlobViewer
();
if
(
$
(
'
.blob-viewer
'
).
length
)
new
BlobViewer
();
break
;
break
;
...
...
app/helpers/application_helper.rb
View file @
03598ca7
...
@@ -307,6 +307,6 @@ module ApplicationHelper
...
@@ -307,6 +307,6 @@ module ApplicationHelper
end
end
def
show_new_repo?
def
show_new_repo?
cookies
[
"new_repo"
]
==
"true"
cookies
[
"new_repo"
]
==
"true"
&&
body_data_page
!=
'projects:show'
end
end
end
end
app/views/projects/show.html.haml
View file @
03598ca7
...
@@ -5,11 +5,6 @@
...
@@ -5,11 +5,6 @@
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
project_path
(
@project
,
rss_url_options
),
title:
"
#{
@project
.
name
}
activity"
)
=
auto_discovery_link_tag
(
:atom
,
project_path
(
@project
,
rss_url_options
),
title:
"
#{
@project
.
name
}
activity"
)
-
if
show_new_repo?
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'repo'
=
render
partial:
'flash_messages'
,
locals:
{
project:
@project
}
=
render
partial:
'flash_messages'
,
locals:
{
project:
@project
}
=
render
"projects/head"
=
render
"projects/head"
...
...
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