Skip to content

Commit

Permalink
Merge pull request #1622 from benwbrum/conditionalize_icom
Browse files Browse the repository at this point in the history
Merging as reviewed and passing non-travis tests.
  • Loading branch information
benwbrum authored Feb 18, 2020
2 parents bcdc11b + 98f8c18 commit 7b775b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/views/dashboard/owner.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@
h3 Your Activity
=deeds_for({ :user_id => current_user.id, :limit => 10 })

=render partial: 'shared/intercom'
-unless INTERCOM_APP_ID.blank?
=render partial: 'shared/intercom'
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ html lang="en-US"
=javascript_include_tag 'application'
=yield :javascript

-if user_signed_in? && current_user.owner?
-if user_signed_in? && current_user.owner? && !INTERCOM_APP_ID.blank?
=render :partial => '/shared/intercom_customer'
-elsif controller_name=='static'
-elsif controller_name=='static' && !INTERCOM_APP_ID.blank?
=render :partial => '/shared/intercom'

-unless GA_ACCOUNT.blank?
Expand Down

0 comments on commit 7b775b8

Please sign in to comment.