Port signup to new layout
This commit is contained in:
@@ -2,7 +2,10 @@ class Admin::BaseController < ApplicationController
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :authorize_admin
|
||||
before_action :set_context
|
||||
|
||||
layout "admin"
|
||||
def set_context
|
||||
@context = :admin
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -2,8 +2,6 @@ class InvitationsController < ApplicationController
|
||||
before_action :require_user_signed_in, except: ["show"]
|
||||
before_action :require_user_signed_out, only: ["show"]
|
||||
|
||||
layout "signup", only: ["show"]
|
||||
|
||||
# GET /invitations
|
||||
def index
|
||||
@invitations_unused = current_user.invitations.unused
|
||||
|
||||
@@ -3,8 +3,7 @@ class SignupController < ApplicationController
|
||||
before_action :require_invitation
|
||||
before_action :set_invitation
|
||||
before_action :set_new_user, only: ["steps", "validate"]
|
||||
|
||||
layout "signup"
|
||||
before_action :set_context
|
||||
|
||||
def index
|
||||
@invited_by_name = @invitation.user.address
|
||||
@@ -105,4 +104,8 @@ class SignupController < ApplicationController
|
||||
invitation: @invitation
|
||||
)
|
||||
end
|
||||
|
||||
def set_context
|
||||
@context = :signup
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user