add customization cta to dashboard

This commit is contained in:
Andrew Brown 2018-12-11 22:46:44 -06:00
parent 1c8f3df92b
commit b38430e511
3 changed files with 16 additions and 7 deletions

View File

@ -2,4 +2,4 @@
.card-image {
max-height: 200px;
}
}
}

View File

@ -100,7 +100,6 @@
</div>
<div class="row">
<div class="col s12 m6 offset-m3">
<div class="card">
<div class="card-image">

View File

@ -33,11 +33,21 @@
</div>
<% end %>
<% if @activated_content_types.length < 5 && BillingPlan::PREMIUM_IDS.include?(current_user.selected_billing_plan_id) %>
<div class="dashboard-row col <%= "s#{s_width} m#{m_width} l#{l_width}" %>">
<%= render partial: 'content/cards/activate_premium_pages_cta' %>
</div>
<% end %>
<div class="dashboard-row col <%= "s#{s_width} m#{m_width} l#{l_width}" %>">
<%= link_to customization_content_types_path do %>
<div class="hoverable card">
<div class="card-image">
<%= image_tag "card-headers/more.jpg", height: 265 %>
<span class="card-title bordered-text">
<div>
<i class="material-icons white-text" style="position: relative; top: 3px;">add</i>
<%= Rails.application.config.content_types[:all].count - @activated_content_types.count %> other page types available
</div>
</span>
</div>
</div>
<% end %>
</div>
<div class="dashboard-row col <%= "s#{s_width} m#{m_width} l#{l_width}" %> hide-on-med-and-up">
<%= render partial: 'content/cards/mobile_links' %>