diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-03-12 17:20:52 +0300 |
---|---|---|
committer | Martin Wortschack <mwortschack@gitlab.com> | 2019-03-12 17:21:02 +0300 |
commit | b1318cd18873971041a8fa0ec52cfbdc420a007f (patch) | |
tree | 5161478eb8d742454e5abdad36c1d6e295fe44e5 /app/views/projects/_home_panel.html.haml | |
parent | 6fd7149e655113f187160a143af5ebd8a87fab25 (diff) |
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/views/projects/_home_panel.html.haml')
-rw-r--r-- | app/views/projects/_home_panel.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 1d7287410ea..4ac5a74c85c 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -57,7 +57,10 @@ - if can?(current_user, :download_code, @project) %nav.project-stats .nav-links.quick-links - = render 'stat_anchor_list', anchors: @project.statistics_anchors(show_auto_devops_callout: show_auto_devops_callout) + - if @project.empty_repo? + = render 'stat_anchor_list', anchors: @project.empty_repo_statistics_anchors + - else + = render 'stat_anchor_list', anchors: @project.statistics_anchors(show_auto_devops_callout: show_auto_devops_callout) .home-panel-home-desc.mt-1 - if @project.description.present? |