<%= plan.name %>
<%= plan_price(plan) %>
<% if @subscription.nil? %>
<%= link_to Tellimus.free_trial? ? t('tellimus.plan_difference.start_trial') : t('tellimus.subscriptions.sign_up'), tellimus.new_subscription_path(plan: plan.id), class: "btn btn-success btn-large" %>
<% elsif @subscription.persisted? %>
<% if @subscription.plan == plan %>
<%= form_for @subscription, url: owner_subscription_path(@owner, @subscription) do |f| %>
<%= f.submit t('tellimus.plan_difference.selected'), class: "btn btn-large", disabled: 'disabled' %>
<% end %>
<% else %>
<%= form_for @subscription, url: owner_subscription_path(@owner, @subscription) do |f| %>
<%= f.hidden_field :plan_id, value: plan.id %>
<%= f.submit @subscription.describe_difference(plan), class: "btn btn-success btn-large" %>
<% end %>
<% end %>
<% else %>
<%= link_to Tellimus.free_trial? ? t('tellimus.plan_difference.start_trial') : t('tellimus.plan_difference.upgrade'), new_owner_subscription_path(@owner, plan: plan.id), class: "btn btn-success btn-large" %>
<% end %>
<% if Tellimus.free_trial? %>
- <%= t('tellimus.subscriptions.free_trial_for_days', days: Tellimus.free_trial_length) %>
<% end %>
<%= BlueCloth.new(plan.features.gsub(/\n/, "\n\n")).to_html.gsub(/<(\/?)p>/, '<\1li>').html_safe %>