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
Léo-Paul Géneau
gitlab-ce
Commits
8d454b8e
Commit
8d454b8e
authored
Jul 28, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move new repo to shared view and only load it and repo bundle with new_repo is true
parent
834ebc3e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
app/views/projects/blob/show.html.haml
app/views/projects/blob/show.html.haml
+0
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+4
-3
app/views/projects/tree/_tree_content.html.haml
app/views/projects/tree/_tree_content.html.haml
+2
-1
app/views/projects/tree/show.html.haml
app/views/projects/tree/show.html.haml
+4
-3
app/views/shared/_repo.html.haml
app/views/shared/_repo.html.haml
+1
-0
No files found.
app/views/projects/blob/show.html.haml
View file @
8d454b8e
...
...
@@ -7,7 +7,6 @@
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'blob'
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'repo'
=
render
'projects/last_push'
...
...
app/views/projects/show.html.haml
View file @
8d454b8e
...
...
@@ -5,9 +5,10 @@
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
project_path
(
@project
,
rss_url_options
),
title:
"
#{
@project
.
name
}
activity"
)
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'repo'
-
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
}
...
...
app/views/projects/tree/_tree_content.html.haml
View file @
8d454b8e
#repo
{
data:
{
url:
repo_url
(
@project
),
'project-name'
=>
@project
.
name
,
refs_url:
refs_namespace_project_path
(
@project
.
namespace
,
@project
,
format:
"json"
),
project_url:
namespace_project_path
(
@project
.
namespace
,
@project
),
project_id:
@project
.
id
}
}
-
if
show_new_repo?
=
render
'shared/repo'
,
project:
@project
:javascript
// Load last commit log for each file in tree
...
...
app/views/projects/tree/show.html.haml
View file @
8d454b8e
...
...
@@ -6,9 +6,10 @@
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
project_commits_url
(
@project
,
@ref
,
rss_url_options
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'repo'
-
if
show_new_repo?
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'repo'
=
render
"projects/commits/head"
...
...
app/views/shared/_repo.html.haml
0 → 100644
View file @
8d454b8e
#repo
{
data:
{
url:
repo_url
(
project
),
project_name:
project
.
name
,
refs_url:
refs_project_path
(
project
,
format: :json
),
project_url:
project_path
(
project
),
project_id:
project
.
id
}
}
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