passing params to the launcher gem

This commit is contained in:
bruckwubete
2018-07-09 13:17:23 -04:00
parent 930ed809f5
commit 67c32a396f
9 changed files with 45 additions and 16 deletions

View File

@ -44,7 +44,11 @@
</div>
</div>
<% else %>
<%= link_to "Login", "#loginModal", :class => "btn btn-pill btn-outline-primary mx-2", "data-toggle": "modal" %>
<% if Rails.configuration.omniauth_bn_launcher && !current_user %>
<%= link_to "Login", "#{Rails.configuration.relative_url_root}/auth/bn_launcher", :class => "btn btn-pill btn-outline-primary mx-2" %>
<% else %>
<%= link_to "Login", "#loginModal", :class => "btn btn-pill btn-outline-primary mx-2", "data-toggle": "modal" %>
<% end %>
<% if allow_user_signup? %>
<%= link_to "Signup", signup_path, :class => "btn btn-pill btn-outline-primary mx-2" %>