spec/rails_app/app/views/layouts/application.html.erb in bento-0.0.2 vs spec/rails_app/app/views/layouts/application.html.erb in bento-0.0.3
- old
+ new
@@ -14,12 +14,17 @@
<%= link_to "Bento accounts", new_account_path %>
<%= link_to "Custom accounts", new_custom_account_path(:sign_up => true) %>
<%= link_to "Manage custom accounts", custom_accounts_path %>
<% if user_signed_in? %>
- <span>Current account: <%= current_account.name %></span>
+ <% if current_account %>
+ <span>Current account: <%= current_account.name %></span>
+ <% end %>
<%= link_to "Projects", projects_path %>
+ <%= link_to "My projects", projects_path(:my => true) %>
<%= link_to "All projects", projects_path(:all => true) %>
+
+ <%= link_to "My accounts", projects_path(:my_accounts => true) %>
<%= link_to('Sign out', destroy_user_session_path) %>
<% else %>
<%= link_to "Sign up", sign_up_accounts_path %>
<%= link_to "Sign in", new_user_session_path %>
<% end %>
\ No newline at end of file