2020-12-30 01:02:08 +00:00
class SupportsController < ApplicationController
respond_to :html
def show
if current_user . nil?
redirect_to signin_url + " ?redirect-to= " + URI . escape ( " /help_desk " ) , notice : " Please sign in. "
return
end
gon . has_support = current_user . has_support?
gon . email = current_user . email
2021-01-05 15:22:45 +00:00
gon . in_trial = ! current_user . subscription_trial_ended?
2020-12-30 22:27:35 +00:00
gon . plan_code = current_user . subscription_plan_code
2020-12-30 01:02:08 +00:00
@title = " Help Desk "
2021-02-15 04:32:27 +00:00
@description = " The JamKazam help desk offers 1:1 help desk support only to our Gold and Platinum plan subscribers, as well as those in their initial 30-day trial period. "
2020-12-30 01:02:08 +00:00
render 'show' , :layout = > 'support'
end
end