Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions app/helpers/teams_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,8 @@ def message_to_create_ehanced_team
end
end

def no_account_no_team?
!signed_in?
end

def member_no_team?
signed_in? && current_user.team.nil?
current_user.membership.nil?
end

def add_job_path(team)
Expand Down
14 changes: 4 additions & 10 deletions app/views/teams/upgrade.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,22 @@
%section.title#learnmore
%h1 A simple & engaging way to turn your organizations’ best qualities into an engineer magnet

-if no_account_no_team?
%section.feature.cf
.intro
%h2 Signin to create your team
.signup-buttons
=render 'sessions/signup'
-elsif member_no_team?
- if member_no_team?
%section.feature.cf
.intro
=render 'form'
.results
%section.feature.payment.cf.hide
-elsif @team.can_post_job?
- elsif @team.can_post_job?
%section.feature.cf
.intro
= form_tag new_team_opportunity_path(@team), :method => :get do
#post-a-job
.save
%input.button{:type => "submit", :value => "Post A Job"}
-else
- else
%section.feature.payment.cf
=render :partial => "payment", :locals => {:account => @team.account || current_user.team.build_account, :plan => @team.account.try(:current_plan)}
= render partial: "payment", locals: { account: @team.account || @team.build_account, plan: @team.account.try(:current_plan) }



Expand Down