BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
03598ca7
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
8 deletions
+1
-8
dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-2
application_helper.rb
app/helpers/application_helper.rb
+1
-1
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';
shortcut_handler
=
new
ShortcutsNavigation
();
new
NotificationsForm
();
if
(
FeatureHelper
.
isNewRepo
())
break
;
if
(
$
(
'#tree-slider'
).
length
)
new
TreeView
();
if
(
$
(
'.blob-viewer'
).
length
)
new
BlobViewer
();
break
;
...
...
app/helpers/application_helper.rb
View file @
03598ca7
...
...
@@ -307,6 +307,6 @@ module ApplicationHelper
end
def
show_new_repo?
cookies
[
"new_repo"
]
==
"true"
cookies
[
"new_repo"
]
==
"true"
&&
body_data_page
!=
'projects:show'
end
end
app/views/projects/show.html.haml
View file @
03598ca7
...
...
@@ -5,11 +5,6 @@
=
content_for
:meta_tags
do
=
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
"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