Sha256: 0e305631019318f2f51867d46e7ada39897604e5020a532a00b515bd9084b07b
Contents?: true
Size: 1.38 KB
Versions: 14
Compression:
Stored size: 1.38 KB
Contents
<% content_for :title do %>Sign in<% end %> <%- if Headstart.configuration.use_facebook_connect -%> <%- if request.ssl? -%> <%= javascript_include_tag 'https://ssl.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US' %> <%- else -%> <%= javascript_include_tag 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US' %> <%- end -%> <script> function facebook_onlogin() { document.location.href = "<%= fb_connect_path %>"; } </script> <%- end -%> <h2>Sign in</h2> <% form_for :session, :url => session_path do |form| %> <div class="text_field"> <%= form.label :email %> <%= form.text_field :email %> </div> <div class="text_field"> <%= form.label :password %> <%= form.password_field :password %> </div> <div class="submit_field"> <%= link_to "Forgot password?", new_password_path %> <%= form.submit "Sign in", :disable_with => "Please wait..." %> <%- if Headstart.configuration.use_facebook_connect -%> or <fb:login-button onlogin="facebook_onlogin();" length="long" v="2" size="large"></fb:login-button> <%- end -%> </div> <% end %> <%- if Headstart.configuration.use_facebook_connect -%> <script type="text/javascript"> FB.init("<%= Headstart.configuration.facebook_api_key %>", "xd_receiver.html", { permsToRequestOnConnect : "email", }); </script> <%- end -%>
Version data entries
14 entries across 14 versions & 1 rubygems