Sha256: a7a68d9a3098df249cc0b74df9d00e57b5e36e35fb5c77245bf04009caa764d4

Contents?: true

Size: 618 Bytes

Versions: 16

Compression:

Stored size: 618 Bytes

Contents

<p class="name"><%= link_to_unless current_account?, plan.name, new_plan_account_path(plan) %></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

16 entries across 16 versions & 1 rubygems

Version Path
saucy-0.2.13 app/views/plans/_plan.html.erb
saucy-0.2.12 app/views/plans/_plan.html.erb
saucy-0.2.11 app/views/plans/_plan.html.erb
saucy-0.2.10 app/views/plans/_plan.html.erb
saucy-0.2.9 app/views/plans/_plan.html.erb
saucy-0.2.8.1 app/views/plans/_plan.html.erb
saucy-0.2.8 app/views/plans/_plan.html.erb
saucy-0.2.7 app/views/plans/_plan.html.erb
saucy-0.2.6.1 app/views/plans/_plan.html.erb
saucy-0.2.6 app/views/plans/_plan.html.erb
saucy-0.2.5 app/views/plans/_plan.html.erb
saucy-0.2.4.1 app/views/plans/_plan.html.erb
saucy-0.2.4 app/views/plans/_plan.html.erb
saucy-0.2.3 app/views/plans/_plan.html.erb
saucy-0.2.2 app/views/plans/_plan.html.erb
saucy-0.2.1 app/views/plans/_plan.html.erb