-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathnew.html.erb
39 lines (29 loc) · 1.18 KB
/
new.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="col-md-3">
<%= raw t('users.new.about_public_lab') %>
</div>
<div class="col-md-9">
<hr class="hidden-md hidden-lg" />
<h2><%= t('users.new.sign_up') %></h2>
<% if params[:lang] %>
<p>
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</p>
<% end %>
<br />
<%= render 'form' %>
<% if Rails.env == "production"%>
<h5> OR </h5>
<h3> Sign up with </h3>
<div class="loginbutton" >
<a href="/auth/google_oauth2" id="connect-google"><span class="btn btn-default"><i class="fa fa-google" style="font-size:17px;color:red"></i></span></div></a>
</div>
<% end %>
<% cache('feature_signup-notice', skip_digest: true) do %>
<%= feature('signup-notice') %>
<% end %>
<br style="margin-bottom:20px;" />
</div>