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
083003bf
Commit
083003bf
authored
Feb 20, 2018
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve methods naming
parent
c445ef53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
project_presenter.rb
app/presenters/project_presenter.rb
+4
-4
empty.html.haml
app/views/projects/empty.html.haml
+2
-2
show.html.haml
app/views/projects/show.html.haml
+3
-3
No files found.
app/presenters/project_presenter.rb
View file @
083003bf
...
...
@@ -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 @
083003bf
...
...
@@ -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 @
083003bf
-
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