Created
November 30, 2015 20:22
-
-
Save tylerball/2753c685062951197d0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="section" id="FacebookAuth" refresh="FacebookAuth"> | |
<div class="layout-content layout-content--single-column"> | |
<div class="layout-content__sidebar layout-content__first"> | |
<div class="section-summary"> | |
<h1>Facebook account</h1> | |
<% if @facebook_page %> | |
<p>This is the Facebook account currently connected to Shopify.</p> | |
<% else %> | |
<p>Connect your Shopify and Facebook accounts together.</p> | |
<% end %> | |
</div> | |
</div> | |
<div class="layout-content__main"> | |
<div class="next-card"> | |
<% if shop.facebook_auth_needed? %> | |
<%= render 'facebook_auth', reconnect: false %> | |
<% elsif shop.facebook_reauth_needed? %> | |
<%= render 'facebook_auth', reconnect: true %> | |
<% elsif @facebook_page %> | |
<%= render 'onboarded' %> | |
<% else %> | |
<%= render 'page_selection', pages: @facebook_pages, disable_submit_button: @facebook_pages.many? %> | |
<a href="#" onclick="event.preventDefault(); Page.refresh({url: '/preferences/switch_page', onlyKeys: ['FacebookAuth'] ">Switch page</a> | |
<% end %> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment