From b38430e511b370bc617f706ee62df0190d3be919 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 11 Dec 2018 22:46:44 -0600 Subject: [PATCH] add customization cta to dashboard --- app/assets/stylesheets/dashboard.css.scss | 2 +- .../customization/content_types.html.erb | 1 - app/views/main/dashboard.html.erb | 20 ++++++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/dashboard.css.scss b/app/assets/stylesheets/dashboard.css.scss index 45e89e24..ca5fba42 100644 --- a/app/assets/stylesheets/dashboard.css.scss +++ b/app/assets/stylesheets/dashboard.css.scss @@ -2,4 +2,4 @@ .card-image { max-height: 200px; } -} \ No newline at end of file +} diff --git a/app/views/customization/content_types.html.erb b/app/views/customization/content_types.html.erb index 7b25f543..00786854 100644 --- a/app/views/customization/content_types.html.erb +++ b/app/views/customization/content_types.html.erb @@ -100,7 +100,6 @@
-
diff --git a/app/views/main/dashboard.html.erb b/app/views/main/dashboard.html.erb index a912adc7..68cfbecb 100644 --- a/app/views/main/dashboard.html.erb +++ b/app/views/main/dashboard.html.erb @@ -33,11 +33,21 @@
<% end %> - <% if @activated_content_types.length < 5 && BillingPlan::PREMIUM_IDS.include?(current_user.selected_billing_plan_id) %> -
"> - <%= render partial: 'content/cards/activate_premium_pages_cta' %> -
- <% end %> +
"> + <%= link_to customization_content_types_path do %> +
+
+ <%= image_tag "card-headers/more.jpg", height: 265 %> + +
+ add + <%= Rails.application.config.content_types[:all].count - @activated_content_types.count %> other page types available +
+
+
+
+ <% end %> +
hide-on-med-and-up"> <%= render partial: 'content/cards/mobile_links' %>