forked from technoweenie/restful-authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor changes to make specs and stories pass. About to start adding t…
…hose in
- Loading branch information
Philip (flip) Kromer
committed
May 16, 2008
1 parent
1fcff88
commit bd6934d
Showing
1 changed file
with
8 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<%% if logged_in? -%> | ||
<div id="<%= file_name %>-bar-greeting">Logged in as <%%= link_to_current_<%= file_name %> :content_method => :login %></div> | ||
<div id="<%= file_name %>-bar-action" >(<%%= link_to "log out", logout_path, { :title => "Log out" } %>)</div> | ||
<%% else -%> | ||
<div id="<%= file_name %>-bar-greeting"><%%= abbr_tag_with_IP 'Not logged in', :style => 'border: none;' %></div> | ||
<div id="<%= file_name %>-bar-action" ><%%= link_to "Log in", login_path, { :title => "Log in" } %> / | ||
<%%= link_to "Sign up", signup_path, { :title => "Create an account" } %></div> | ||
<%% end -%> |