summaryrefslogtreecommitdiff
path: root/app/presenters/project_presenter.rb
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2019-03-12 15:20:52 +0100
committerMartin Wortschack <mwortschack@gitlab.com>2019-03-12 15:21:02 +0100
commitb1318cd18873971041a8fa0ec52cfbdc420a007f (patch)
tree5161478eb8d742454e5abdad36c1d6e295fe44e5 /app/presenters/project_presenter.rb
parent6fd7149e655113f187160a143af5ebd8a87fab25 (diff)
downloadgitlab-ce-b1318cd18873971041a8fa0ec52cfbdc420a007f.tar.gz
Clean up empty repository state UI
- Remove irrelevante information - Remove horizontal scrolling on smaller viewports - Hide auto devops flash message for empty projects
Diffstat (limited to 'app/presenters/project_presenter.rb')
-rw-r--r--app/presenters/project_presenter.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/presenters/project_presenter.rb b/app/presenters/project_presenter.rb
index 000b7c433a2..161eebcfb3f 100644
--- a/app/presenters/project_presenter.rb
+++ b/app/presenters/project_presenter.rb
@@ -42,11 +42,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
def empty_repo_statistics_anchors
[
- license_anchor_data,
- commits_anchor_data,
- branches_anchor_data,
- tags_anchor_data,
- files_anchor_data
+ license_anchor_data
].compact.select { |item| item.is_link }
end
@@ -55,9 +51,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
new_file_anchor_data,
readme_anchor_data,
changelog_anchor_data,
- contribution_guide_anchor_data,
- autodevops_anchor_data,
- kubernetes_cluster_anchor_data
+ contribution_guide_anchor_data
].compact.reject { |item| item.is_link }
end