mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
polish
This commit is contained in:
parent
2deb04aa4c
commit
f2663fddb1
@ -34,10 +34,12 @@ class SubscriptionsController < ApplicationController
|
||||
|
||||
def prepay
|
||||
@invoices = current_user.paypal_invoices
|
||||
.where.not(status: 'CREATED')
|
||||
.where(status: 'COMPLETED')
|
||||
.includes(:page_unlock_promo_code)
|
||||
.order('id desc')
|
||||
|
||||
.sort_by { |invoice| invoice.page_unlock_promo_code.uses_remaining }
|
||||
.reverse
|
||||
|
||||
promo_code_ids = @invoices.map(&:page_unlock_promo_code_id).flatten
|
||||
@promo_codes = PageUnlockPromoCode.where(id: promo_code_ids)
|
||||
end
|
||||
|
||||
@ -11,6 +11,18 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% unless current_user.notice_dismissals.where(notice_id: 4).any? %>
|
||||
<div class="col s12">
|
||||
<div class="hoverable card-panel orange lighten-5">
|
||||
<%= link_to 'Dismiss this notice.', notice_dismissal_dismiss_path(notice_id: 4), class: 'blue-text right' %>
|
||||
<%= link_to prepay_path, class: 'black-text' do %>
|
||||
<i class="fa fa-paypal left"></i>
|
||||
New in Notebook.ai: You can now purchase Premium for yourself — or your friends — with PayPal.
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%
|
||||
s_width = 12
|
||||
m_width = 6
|
||||
|
||||
@ -268,8 +268,8 @@
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
These codes let you prepay for however many months of Premium you'd like, and can be activated afterwards
|
||||
whenever you'd like. Each code can be used only once, but can be used by anyone you share the code with —
|
||||
These codes let you prepay for however many months of Premium you'd like, and can be manually activated at any time.
|
||||
Each code can be used only once, but can be used by anyone you share the code with —
|
||||
so they make great gifts, too!
|
||||
</p>
|
||||
<br />
|
||||
|
||||
@ -161,7 +161,7 @@
|
||||
<div class="card-action">
|
||||
<%= link_to '#', class: 'btn hoverable black-text white right activator', onclick: 'return false' do %>
|
||||
<i class="material-icons left">share</i>
|
||||
Share
|
||||
Gift
|
||||
<% end %>
|
||||
<% unless current_user.on_premium_plan? %>
|
||||
<%= form_for :promotional_code, url: redeem_path do |form| %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user