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
ef71c390
Commit
ef71c390
authored
May 29, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
b983bc46
cd4eb5ac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
app/assets/javascripts/repository/components/table/index.vue
app/assets/javascripts/repository/components/table/index.vue
+1
-1
app/assets/javascripts/repository/index.js
app/assets/javascripts/repository/index.js
+13
-0
app/assets/javascripts/repository/router.js
app/assets/javascripts/repository/router.js
+1
-8
app/views/projects/_files.html.haml
app/views/projects/_files.html.haml
+1
-1
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+1
-1
No files found.
app/assets/javascripts/repository/components/table/index.vue
View file @
ef71c390
...
...
@@ -50,7 +50,7 @@ export default {
);
},
showParentRow
()
{
return
!
this
.
isLoadingFiles
&&
this
.
path
!==
''
;
return
!
this
.
isLoadingFiles
&&
[
''
,
'
/
'
].
indexOf
(
this
.
path
)
===
-
1
;
},
},
watch
:
{
...
...
app/assets/javascripts/repository/index.js
View file @
ef71c390
...
...
@@ -17,6 +17,19 @@ export default function setupVueRepositoryList() {
});
router
.
afterEach
(({
params
:
{
pathMatch
}
})
=>
setTitle
(
pathMatch
,
ref
,
fullName
));
router
.
afterEach
(
to
=>
{
const
isRoot
=
to
.
params
.
pathMatch
===
undefined
||
to
.
params
.
pathMatch
===
'
/
'
;
if
(
!
isRoot
)
{
document
.
querySelectorAll
(
'
.js-keep-hidden-on-navigation
'
)
.
forEach
(
elem
=>
elem
.
classList
.
add
(
'
hidden
'
));
}
document
.
querySelectorAll
(
'
.js-hide-on-navigation
'
)
.
forEach
(
elem
=>
elem
.
classList
.
toggle
(
'
hidden
'
,
!
isRoot
));
});
return
new
Vue
({
el
,
...
...
app/assets/javascripts/repository/router.js
View file @
ef71c390
...
...
@@ -16,15 +16,8 @@ export default function createRouter(base, baseRef) {
name
:
'
treePath
'
,
component
:
TreePage
,
props
:
route
=>
({
path
:
route
.
params
.
pathMatch
.
replace
(
/^
\/
/
,
''
),
path
:
route
.
params
.
pathMatch
&&
route
.
params
.
pathMatch
.
replace
(
/^
\/
/
,
''
),
}),
beforeEnter
(
to
,
from
,
next
)
{
document
.
querySelectorAll
(
'
.js-hide-on-navigation
'
)
.
forEach
(
el
=>
el
.
classList
.
add
(
'
hidden
'
));
next
();
},
},
{
path
:
'
/
'
,
...
...
app/views/projects/_files.html.haml
View file @
ef71c390
...
...
@@ -14,7 +14,7 @@
=
render
'shared/commit_well'
,
commit:
commit
,
ref:
ref
,
project:
project
-
if
is_project_overview
.project-buttons.append-bottom-default
{
class:
(
"js-
hide
-on-navigation"
if
vue_file_list
)
}
.project-buttons.append-bottom-default
{
class:
(
"js-
keep-hidden
-on-navigation"
if
vue_file_list
)
}
=
render
'stat_anchor_list'
,
anchors:
@project
.
statistics_buttons
(
show_auto_devops_callout:
show_auto_devops_callout
)
-
if
vue_file_list
...
...
app/views/projects/_home_panel.html.haml
View file @
ef71c390
-
empty_repo
=
@project
.
empty_repo?
-
show_auto_devops_callout
=
show_auto_devops_callout?
(
@project
)
-
max_project_topic_length
=
15
.project-home-panel
{
class:
[(
"empty-project"
if
empty_repo
),
(
"js-
hide
-on-navigation"
if
Feature
.
enabled?
(
:vue_file_list
,
@project
))]
}
.project-home-panel
{
class:
[(
"empty-project"
if
empty_repo
),
(
"js-
keep-hidden
-on-navigation"
if
Feature
.
enabled?
(
:vue_file_list
,
@project
))]
}
.row.append-bottom-8
.home-panel-title-row.col-md-12.col-lg-6.d-flex
.avatar-container.rect-avatar.s64.home-panel-avatar.append-right-default.float-none
...
...
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