Permalink
Browse files

clean up login/logout stuff

  • Loading branch information...
1 parent 493da19 commit 430dc2a7d4f21567b98d7cd91b21c8203a4db0ac @mockdeep mockdeep committed Sep 23, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 app/views/layouts/_header.html.erb
  2. +1 −1 app/views/pages/home.html.erb
View
6 app/views/layouts/_header.html.erb
@@ -11,10 +11,10 @@
</div>
<div class="container nav-collapse">
<ul class="nav pull-right">
-
- <li><%= link_to "Login or Sign Up", "#" %></li>
+
+ <li><% if current_user %><%= link_to "Log Out", logout_path %><% end %></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
- </div>
+ </div>
View
2 app/views/pages/home.html.erb
@@ -5,4 +5,4 @@
<p>The government--whether federal, state, or local--provides many vital services that we depend on. These services include everything from the streets we drive on, the schools our children are educated in, and the public transportation that help us get to work. </p>
<p> Public spending has been drastically reduced in many key areas over the last few years due to the economic recession. These reductions have meant fewer afterschool programs, fewer operating hours for local libraries, fewer police officers keeping our neighborhoods safe, and fewer services in every manner.</p>
<p> Tithe exists to connect citizens with the governmental agencies you support most. Through Tithe, you can easily make a donation to help support the government service. </p>
-<%= button_to "Join today!", sign_up_path, class: "center btn btn-primary btn-large", :method => :get %> <%= button_to "Log in!", login_path, class: "center btn btn-primary btn-large", :method => :get %>
+<%= link_to "Join today!", sign_up_path, class: "center btn btn-primary btn-large", :method => :get %> <%= link_to "Log in!", login_path, class: "center btn btn-primary btn-large", :method => :get %>

0 comments on commit 430dc2a

Please sign in to comment.