2025-02-26 15:06:43 -05:00
|
|
|
<% content_for :title, "Subscriptions" %>
|
|
|
|
|
|
|
|
|
|
<div class="min-h-content w-full my-5">
|
|
|
|
|
<%= render 'settings/navigation' %>
|
|
|
|
|
|
|
|
|
|
<div class="hero bg-base-200 min-h-80">
|
|
|
|
|
<div class="hero-content text-center">
|
|
|
|
|
<div class="max-w-md">
|
|
|
|
|
<h1 class="text-5xl font-bold">Hello there!</h1>
|
2025-04-12 07:06:32 -04:00
|
|
|
<% if current_user.active_until&.future? %>
|
2025-02-26 15:06:43 -05:00
|
|
|
<p class="py-6">
|
|
|
|
|
You are currently subscribed to Dawarich, hurray!
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
2025-04-04 16:31:15 -04:00
|
|
|
Your subscription will be valid for the next <span class="text-accent"><%= days_left(current_user.active_until) %></span>.
|
2025-02-26 15:06:43 -05:00
|
|
|
</p>
|
|
|
|
|
|
2025-04-11 13:13:46 -04:00
|
|
|
<%= link_to 'Manage subscription', "#{MANAGER_URL}/auth/dawarich?token=#{current_user.generate_subscription_token}", class: 'btn btn-primary my-4' %>
|
2025-02-26 15:06:43 -05:00
|
|
|
<% else %>
|
|
|
|
|
<p class="py-6">
|
|
|
|
|
You are currently not subscribed to Dawarich. How about we fix that?
|
|
|
|
|
</p>
|
|
|
|
|
|
2025-04-11 13:13:46 -04:00
|
|
|
<%= link_to 'Manage subscription', "#{MANAGER_URL}/auth/dawarich?token=#{current_user.generate_subscription_token}", class: 'btn btn-primary my-4' %>
|
2025-02-26 15:06:43 -05:00
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|