Commit 1b1eb781 by AlasdairSwan

ECOM-369 Styled third party auth buttons and cleaned up third party auth messaging

parent d2accb6d
...@@ -24,6 +24,8 @@ var edx = edx || {}; ...@@ -24,6 +24,8 @@ var edx = edx || {};
preRender: function( data ) { preRender: function( data ) {
this.providers = data.thirdPartyAuth.providers || []; this.providers = data.thirdPartyAuth.providers || [];
this.currentProvider = data.thirdPartyAuth.currentProvider || ''; this.currentProvider = data.thirdPartyAuth.currentProvider || '';
console.log(data);
}, },
render: function( html ) { render: function( html ) {
......
<% if (currentProvider) { %> <% if (currentProvider) { %>
<div class="status"> <div class="status submission-success" aria-hidden="false">
<ul class="message-copy"> <h4 class="message-title">You've successfully signed in with <strong><%- currentProvider %></strong>.</h4>
<li>You've successfully signed in with <strong><%- currentProvider %></strong>.</li> <ul class="message-copy"></ul>
<li>We just need a little more information before you start learning with edX.</li>
</ul>
</div> </div>
<% } else { <% } else {
_.each( providers, function( provider) { %> _.each( providers, function( provider) { %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment