Sha256: a40c14dfd0d0210879d7d8237a31bcea33a8fe38e8c86b8108809df7b7acfb3d

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

<%= render component_tag do %>
  <% if recommended? %>
    <%= coco_badge("Recommended", icon: :award, size: :sm, class: "plan-badge") %>
  <% elsif active? %>
    <%= coco_badge("Current plan", icon: :award, size: :sm, class: "plan-badge") %>
  <% end %>

  <div class="plan-container">
    
    <div class="plan-header">
      <h3 class="plan-name" data-role="name"><%= name %></h3>
      <p class="plan-price" data-role="price"><%= price %></p>      
      <% if promo.present? %>
        <p class="plan-promo" data-role="promo"><%= promo %></p>
      <% end %>
    </div>

    <div class="plan-action" data-role="action">
      <%= action %>
    </div>

    <div class="plan-info" data-role="info">
      <p><%= content %></p>
    </div>

    <ul class="plan-benefits">
      <% @benefits.each do |benefit, info| %>
        <li class="plan-benefit">
          <%= coco_icon(:check, size: :sm) %>
          <div class="plan-benefit-detail" data-role="benefit">
            <%= benefit %>
          </div>
        </li>  
      <% end %>
    </ul>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coveragebook_components-0.13.1 app/components/coco/app/plan_card/plan_card.html.erb
coveragebook_components-0.13.0 app/components/coco/app/plan_card/plan_card.html.erb
coveragebook_components-0.12.2 app/components/coco/app/elements/plan_card/plan_card.html.erb
coveragebook_components-0.12.1 app/components/coco/app/elements/plan_card/plan_card.html.erb
coveragebook_components-0.12.0 app/components/coco/app/elements/plan_card/plan_card.html.erb