mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Early access (#1272)
* Stubbing in early access * Styling * Title tweak * Early access tweaks Also removed the allow_browser helper as it tends to cause more headaches than we really care about at this point * Lint
This commit is contained in:
parent
54596d51f7
commit
3893060f8e
7 changed files with 226 additions and 6 deletions
|
@ -2,9 +2,6 @@ class ApplicationController < ActionController::Base
|
|||
include Localize, AutoSync, Authentication, Invitable, SelfHostable, StoreLocation
|
||||
include Pagy::Backend
|
||||
|
||||
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
||||
allow_browser versions: :modern
|
||||
|
||||
private
|
||||
|
||||
def with_sidebar
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class PagesController < ApplicationController
|
||||
layout :with_sidebar
|
||||
skip_before_action :authenticate_user!, only: %i[early_access]
|
||||
layout :with_sidebar, except: %i[early_access]
|
||||
|
||||
include Filterable
|
||||
|
||||
|
@ -37,6 +38,11 @@ class PagesController < ApplicationController
|
|||
def feedback
|
||||
end
|
||||
|
||||
def invites
|
||||
def early_access
|
||||
redirect_to root_path if self_hosted?
|
||||
|
||||
@invite_codes_count = InviteCode.count
|
||||
@invite_code = InviteCode.order("RANDOM()").limit(1).first
|
||||
render layout: false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue