Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved @page_title stuff out of the user views
- Loading branch information
Stuart Chinery
committed
Dec 6, 2012
1 parent
9b23b0a
commit 89cb3b8
Showing
8 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
<% if logged_in? -%> | ||
<div id="user-bar-greeting">Logged in as <%= link_to_current_user :content_method => :login %></div> | ||
<div id="user-bar-action" >(<%= link_to "Log out", logout_path, { :title => "Log out" } %>)</div> | ||
<div id="user-bar-greeting"> | ||
Logged in as <%= link_to_current_user :content_method => :login %> | ||
</div> | ||
<div id="user-bar-action" > | ||
(<%= link_to "Log out", logout_path, { :title => "Log out" } %>) | ||
</div> | ||
<% else -%> | ||
<div id="user-bar-greeting"><%= link_to_login_with_IP 'Not logged in', :style => 'border: none;' %></div> | ||
<div id="user-bar-action" ><%= link_to "Log in", login_path, { :title => "Log in" } %> / | ||
<%= link_to "Sign up", signup_path, { :title => "Create an account" } %></div> | ||
<div id="user-bar-greeting"> | ||
<%= link_to_login_with_IP 'Not logged in', :style => 'border: none;' %> | ||
</div> | ||
<div id="user-bar-action"> | ||
<%= link_to "Log in", login_path, { :title => "Log in" } %> / | ||
<%= link_to "Sign up", signup_path, { :title => "Create an account" } %> | ||
</div> | ||
<% end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters