I mailto di prezzi/billing e i default privacy/mailer puntavano ancora a matchlive.it, dominio brand incoerente. Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
3.0 KiB
ERB
47 lines
3.0 KiB
ERB
<% content_for :title, t("team.billing.title", name: @team.name) %>
|
|
<% content_for :robots, "noindex, nofollow" %>
|
|
|
|
<div class="wrap" style="padding-top:20px">
|
|
<h1><%= t("billing.heading") %></h1>
|
|
<p><%= t("team.billing.team_label") %> <strong><%= @team.name %></strong> · <%= t("team.billing.current_plan_label") %> <strong><%= @entitlements.plan.name %></strong></p>
|
|
|
|
<div class="plans">
|
|
<% @plans.each do |plan| %>
|
|
<div class="plan-card">
|
|
<%= render "shared/plan_title", plan: plan %>
|
|
<% if plan.slug == "free" %>
|
|
<div class="plan-price">€0</div>
|
|
<% elsif plan.slug == "premium_light" %>
|
|
<div class="plan-price" style="color:#e53935"><%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %></div>
|
|
<p style="color:#888;font-size:0.85rem"><%= raw t("pages.plans.price_alt_html", price: Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly")) %></p>
|
|
<% else %>
|
|
<div class="plan-price"><%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %></div>
|
|
<p style="color:#888;font-size:0.85rem"><%= raw t("pages.plans.price_alt_html", price: Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly")) %></p>
|
|
<% end %>
|
|
<ul>
|
|
<li><%= t("team.billing.staff_line", count: plan.max_staff_transmission || t("pages.plans.staff_unlimited")) %></li>
|
|
<li><%= t("team.billing.matches_line", count: plan.concurrent_streams_limit || t("pages.plans.matches_unlimited")) %></li>
|
|
<li><%= t("team.billing.replay_line", value: plan.recordings_enabled? ? t("team.billing.replay_days", count: plan.recording_days) : t("team.billing.replay_none")) %></li>
|
|
<li><%= t("team.billing.youtube_line", value: if plan.slug == "premium_light" then t("team.billing.youtube_mltv") elsif plan.youtube_enabled? then t("team.billing.youtube_club") else t("team.billing.youtube_none") end) %></li>
|
|
</ul>
|
|
<% if plan.slug == @entitlements.plan.slug %>
|
|
<span class="btn btn-secondary" style="opacity:0.7"><%= t("team.billing.current_plan") %></span>
|
|
<% elsif plan.slug == "free" %>
|
|
<% elsif MatchLiveTv.stripe_enabled? %>
|
|
<%= link_to t("team.billing.manage_club_subscription"), public_club_billing_path(@team.club), class: "btn btn-primary" %>
|
|
<% else %>
|
|
<p style="color:#888"><%= t("team.billing.stripe_not_configured") %></p>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="card" style="margin-top:24px;text-align:center">
|
|
<p style="color:#aaa"><%= t("team.billing.contact_lead") %> <%= mail_to "info@matchlivetv.it", t("team.billing.contact_cta") %> <%= t("team.billing.contact_trailer") %></p>
|
|
</div>
|
|
|
|
<p style="margin-top:20px"><%= link_to t("team.billing.club_payments_link"), public_club_billing_path(@team.club) %></p>
|
|
|
|
<p><%= link_to t("team.back_to_details"), public_team_details_path(@team) %></p>
|
|
</div>
|