Skip to content

Commit

Permalink
added facebook button image
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Whitener committed May 12, 2011
1 parent 111e3a9 commit 69020de
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/views/comments/_form.html.erb
Expand Up @@ -6,10 +6,12 @@
%>
<h2 class="light-grey-font med_font">Post a new comment</h2>
<% if !current_user %>
<div id="reg_nav" style="position: relative; top: -25px; left:550px; width:20%;">
<div id="reg_nav" style="position: relative; top: -30px; left:350px; width:55%;">
<ul class="nav med_font" id="comment_nav">
<li><%= link_to "Login", new_user_session_path %></li>
<li><%= link_to "Register", new_user_registration_path %></li>
<li><p>Or</p></li>
<li><%= link_to image_tag("facebook-login-button.png",:alt =>"Sign in with facebook"), user_omniauth_authorize_path(:facebook)%></li>
</ul>
</div>
<% end %>
Expand Down
4 changes: 3 additions & 1 deletion app/views/layouts/articles.html.erb
Expand Up @@ -42,9 +42,11 @@
</li>
<li>
<% if !current_user %>
<%= link_to "Sign in with Facebook", user_omniauth_authorize_path(:facebook)%>
<%= link_to "Login", new_user_session_path %>
<%= link_to "Sign up", new_user_registration_path %>
Or

<%= link_to image_tag("facebook-login-button.png",:alt =>"Sign in with facebook"), user_omniauth_authorize_path(:facebook)%>
<% else %>
<%= link_to "Logout", destroy_user_session_path %>
<% end %>
Expand Down
3 changes: 2 additions & 1 deletion config/initializers/devise.rb
Expand Up @@ -173,7 +173,8 @@
# up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
#Facebook omniauth
config.omniauth :facebook, "160343384030567", "75b140df0def2a3932a82380d04f1449",{:scope => 'email, offline_access',:client_options => {:ssl => {:ca_file => '/usr/lib/ssl/certs/ca-certificates.crt'}}}
config.omniauth :facebook, "160343384030567", "75b140df0def2a3932a82380d04f1449",
{:scope => 'email, offline_access',:client_options => {:ssl => {:ca_file => '/usr/lib/ssl/certs/ca-certificates.crt'}}}

# ==> Warden configuration
# If you want to use other strategies, that are not supported by Devise, or
Expand Down
Binary file added public/images/facebook-login-button.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/facebook_login.jpeg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/stylesheets/blog_styles_white.css
Expand Up @@ -236,7 +236,7 @@ body{
list-style-type: none;
display: inline;
width: 100%;
padding: 0px;
padding: 10px 0px 10px 0px;
margin: 0px;
}

Expand All @@ -248,7 +248,7 @@ body{

.nav li a{
width: auto;
padding: 2px 10px 10px 10px;
padding: 2px 10px 20px 10px;
height: 10%;
color: #012345;
}
Expand Down

0 comments on commit 69020de

Please sign in to comment.