Sha256: fefee027efcf31db7b1b6dc277ef946a30400d3b0e817a11c670d69c930e2a06

Contents?: true

Size: 873 Bytes

Versions: 26

Compression:

Stored size: 873 Bytes

Contents

<p class="name"><%= plan.name %></p>
<p class="price">
  <% if plan.billed? %>
    $<%= plan.price %>/month
  <% else %>
    Free
  <% end %>
  <% if plan.trial? %>
    Trial
  <% end -%>
</p>
<ul class="features">
  <% if plan.trial? -%>
    <li class="trial"><%= t(".trial_will_expire",
                            :default => "Your trial will expire after 30 days.") %></li>
  <% else -%>
    <% plan.limits.numbered.each do |limit| %>
      <%= content_tag_for :li, limit, :class => limit.name do %>
        <%= pluralize(limit.value, limit.name.singularize) %>
      <% end %>
    <% end %>
    <% plan.limits.boolean.each do |limit| %>
      <%= content_tag_for :li, limit, :class => limit.name do %>
        <% if limit.allowed? -%>
          <%= limit.name %>
        <% else %>
          &nbsp;
        <% end -%>
      <% end -%>
    <% end %>
  <% end -%>
</ul>

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
saasy-0.0.2.alpha3 app/views/plans/_plan.html.erb
saasy-0.0.2.alpha2 app/views/plans/_plan.html.erb
saasy-0.0.2.alpha1 app/views/plans/_plan.html.erb
saasy-0.0.1 app/views/plans/_plan.html.erb
saucy-0.8.2 app/views/plans/_plan.html.erb
saucy-0.8.1 app/views/plans/_plan.html.erb
saucy-0.8.0 app/views/plans/_plan.html.erb
saucy-0.7.3 app/views/plans/_plan.html.erb
saucy-0.7.2 app/views/plans/_plan.html.erb
saucy-0.7.1 app/views/plans/_plan.html.erb
saucy-0.7.0 app/views/plans/_plan.html.erb
saucy-0.6.1 app/views/plans/_plan.html.erb
saucy-0.6.0 app/views/plans/_plan.html.erb
saucy-0.5.5 app/views/plans/_plan.html.erb
saucy-0.5.4 app/views/plans/_plan.html.erb
saucy-0.5.3 app/views/plans/_plan.html.erb
saucy-0.5.2 app/views/plans/_plan.html.erb
saucy-0.5.1 app/views/plans/_plan.html.erb
saucy-0.5.0 app/views/plans/_plan.html.erb
saucy-0.4.10 app/views/plans/_plan.html.erb