Skip to content

Commit

Permalink
Minor changes to make specs and stories pass. About to start adding t…
Browse files Browse the repository at this point in the history
…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.
8 changes: 8 additions & 0 deletions generators/authenticated/templates/_model_partial.html.erb
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 -%>

0 comments on commit bd6934d

Please sign in to comment.