Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #18 from Factual/feature/auth-buttons
Browse files Browse the repository at this point in the history
Whole Button Area for Sign In/Sign Out is Clickable (#15)
  • Loading branch information
leckman authored Jun 19, 2017
2 parents 67174b0 + 4f91962 commit ef6a8a7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
<% if current_user %>
<nav class="navbar navbar-default">
Signed in as <strong><%= current_user.name %></strong>!
<button class="btn login btn-primary">
<%= link_to "Sign out", logout_path, id: "sign_out" %>
</button>
<%= link_to "Sign out", logout_path, id: "sign_out", class: "btn login btn-primary" %>
<% if current_user.avatar %>
<img width='60' src="<%= current_user.avatar %>" alt="avatar" />
<% end %>
Expand All @@ -31,9 +29,7 @@
<%= image_tag 'factual_logo_small.png' %>
</div>
<h1>Kudos</h1>
<button class="btn login btn-primary btn-homepage">
<%= link_to "Sign in with Google", "/auth/google_oauth2", id: "sign_in" %>
</button>
<%= link_to "Sign in with Google", "/auth/google_oauth2", id: "sign_in", class: "btn login btn-primary btn-homepage" %>
</div>
</div>
<% end %>
Expand Down

0 comments on commit ef6a8a7

Please sign in to comment.