Sha256: 0de1052821583913714e05e784aae85771c0bf547487ea52e9b584198187cadc

Contents?: true

Size: 556 Bytes

Versions: 6

Compression:

Stored size: 556 Bytes

Contents

<p class="name"><%= plan.name %></p>
<p class="price"><% if plan.billed? %>$<%= plan.price %>/month<% else %>Free<% end %></p>
<ul class="features">
  <% 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| %>
    <% if limit.allowed? -%>
      <%= content_tag_for :li, limit, :class => limit.name do %>
        <%= limit.name %>
      <% end %>
    <% end -%>
  <% end %>
</ul>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
saucy-0.2.20 app/views/plans/_plan.html.erb
saucy-0.2.18 app/views/plans/_plan.html.erb
saucy-0.2.17 app/views/plans/_plan.html.erb
saucy-0.2.16 app/views/plans/_plan.html.erb
saucy-0.2.15 app/views/plans/_plan.html.erb
saucy-0.2.14 app/views/plans/_plan.html.erb