diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-02-20 15:51:52 -0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-02-20 15:51:52 -0300 |
commit | 083003bf1eeef8347c8cd8ac40bdf8a0d7f5672e (patch) | |
tree | 1913795b9c5d4e2fa7333e0f9af652a5537272d8 /app/presenters | |
parent | c445ef539ef62b0eb425b8cf60e240597b697ec1 (diff) | |
download | gitlab-ce-083003bf1eeef8347c8cd8ac40bdf8a0d7f5672e.tar.gz |
Improve methods naming
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/project_presenter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/presenters/project_presenter.rb b/app/presenters/project_presenter.rb index 1f37830e181..6a8227982cb 100644 --- a/app/presenters/project_presenter.rb +++ b/app/presenters/project_presenter.rb @@ -7,7 +7,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated presents :project - def project_stat_anchor_items(show_auto_devops_callout:) + def statistics_anchors(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_items(show_auto_devops_callout:) + def statistics_buttons(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_items + def empty_repo_statistics_anchors [ autodevops_anchor_data, kubernetes_cluster_anchor_data ].compact.reject { |i| !i[:enabled] } end - def empty_project_stat_button_items + def empty_repo_statistics_buttons [ new_file_anchor_data, readme_anchor_data, |