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
7cf32d1c
Commit
7cf32d1c
authored
Feb 20, 2018
by
Oswaldo Ferreira
Committed by
Eric Eastwood
Feb 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve methods naming
parent
0ae309f1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
app/presenters/project_presenter.rb
app/presenters/project_presenter.rb
+4
-4
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+2
-2
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+3
-3
No files found.
app/presenters/project_presenter.rb
View file @
7cf32d1c
...
...
@@ -7,7 +7,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
presents
:project
def
project_stat_anchor_item
s
(
show_auto_devops_callout
:)
def
statistics_anchor
s
(
show_auto_devops_callout
:)
[
files_anchor_data
,
commits_anchor_data
,
...
...
@@ -23,7 +23,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
].
compact
.
reject
{
|
i
|
!
i
[
:enabled
]
}
end
def
project_stat_button_item
s
(
show_auto_devops_callout
:)
def
statistics_button
s
(
show_auto_devops_callout
:)
[
changelog_anchor_data
,
license_anchor_data
,
...
...
@@ -35,14 +35,14 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
].
compact
.
reject
{
|
i
|
i
[
:enabled
]
}
end
def
empty_
project_stat_anchor_item
s
def
empty_
repo_statistics_anchor
s
[
autodevops_anchor_data
,
kubernetes_cluster_anchor_data
].
compact
.
reject
{
|
i
|
!
i
[
:enabled
]
}
end
def
empty_
project_stat_button_item
s
def
empty_
repo_statistics_button
s
[
new_file_anchor_data
,
readme_anchor_data
,
...
...
app/views/projects/empty.html.haml
View file @
7cf32d1c
...
...
@@ -33,8 +33,8 @@
.prepend-top-20
%nav
.project-stats
{
class:
container_class
}
=
render
'stat_anchor_list'
,
anchors:
@project
.
empty_
project_stat_anchor_item
s
=
render
'stat_anchor_list'
,
anchors:
@project
.
empty_
project_stat_button_item
s
=
render
'stat_anchor_list'
,
anchors:
@project
.
empty_
repo_statistics_anchor
s
=
render
'stat_anchor_list'
,
anchors:
@project
.
empty_
repo_statistics_button
s
-
if
can?
(
current_user
,
:push_code
,
@project
)
%div
{
class:
[
container_class
,
(
"limit-container-width-sm"
unless
fluid_layout
)]
}
...
...
app/views/projects/show.html.haml
View file @
7cf32d1c
-
project_stat_items_args
=
{
show_auto_devops_callout:
show_auto_devops_callout?
(
@project
)
}
-
@no_container
=
true
-
breadcrumb_title
"Details"
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
@project
=
@project
.
present
(
current_user:
current_user
)
-
show_auto_devops_callout
=
show_auto_devops_callout?
(
@project
)
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
project_path
(
@project
,
rss_url_options
),
title:
"
#{
@project
.
name
}
activity"
)
...
...
@@ -16,8 +16,8 @@
-
if
can?
(
current_user
,
:download_code
,
@project
)
%nav
.project-stats
{
class:
container_class
}
=
render
'stat_anchor_list'
,
anchors:
@project
.
project_stat_anchor_items
(
project_stat_items_args
)
=
render
'stat_anchor_list'
,
anchors:
@project
.
project_stat_button_items
(
project_stat_items_args
)
=
render
'stat_anchor_list'
,
anchors:
@project
.
statistics_anchors
(
show_auto_devops_callout:
show_auto_devops_callout
)
=
render
'stat_anchor_list'
,
anchors:
@project
.
statistics_buttons
(
show_auto_devops_callout:
show_auto_devops_callout
)
%div
{
class:
[
container_class
,
(
"limit-container-width"
unless
fluid_layout
)]
}
...
...
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