diff options
author | Luke Bennett <lbennett@gitlab.com> | 2019-05-11 05:16:19 +0100 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2019-05-11 06:25:17 +0100 |
commit | bd4652753b6be1c2d4d74bd9e5599949974185aa (patch) | |
tree | 73526baa004368d56073a9d6471284263e7f11c4 /app | |
parent | 825b2bdafd76c1a6773f2ec2bf2b19487f64d4e7 (diff) | |
download | gitlab-ce-bd4652753b6be1c2d4d74bd9e5599949974185aa.tar.gz |
Resolve CE/EE diffs in zero_authorized_projectszero-auth-proj-scb
Part of single codebase changes.
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/dashboard_helper.rb | 4 | ||||
-rw-r--r-- | app/views/dashboard/projects/_zero_authorized_projects.html.haml | 15 |
2 files changed, 14 insertions, 5 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index d90ef8903a7..42732eb93dd 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -21,6 +21,10 @@ module DashboardHelper links.any? { |link| dashboard_nav_link?(link) } end + def has_start_trial? + false + end + private def get_dashboard_nav_links diff --git a/app/views/dashboard/projects/_zero_authorized_projects.html.haml b/app/views/dashboard/projects/_zero_authorized_projects.html.haml index 18a82feb189..8933c5d7227 100644 --- a/app/views/dashboard/projects/_zero_authorized_projects.html.haml +++ b/app/views/dashboard/projects/_zero_authorized_projects.html.haml @@ -1,4 +1,4 @@ -.blank-state-parent-container +.blank-state-parent-container{ class: ('has-start-trial-container' if has_start_trial?) } .section-container.section-welcome{ class: "#{ 'section-admin-welcome' if current_user.admin? }" } .container.section-body .row @@ -7,7 +7,12 @@ Welcome to GitLab %p.blank-state-text Code, test, and deploy together - - if current_user.admin? - = render "blank_state_admin_welcome" - - else - = render "blank_state_welcome" + .blank-state-row + %div{ class: ('column-large' if has_start_trial?) } + - if current_user.admin? + = render "blank_state_admin_welcome" + - else + = render "blank_state_welcome" + - if has_start_trial? + .column-small + = render_if_exists "blank_state_ee_trial" |