Don't show anon_notice card on account page #350

This commit is contained in:
Andrew Brown 2014-08-03 00:54:38 +00:00
parent 8530aab1ed
commit 61cb970c97

View File

@ -18,11 +18,11 @@
</div>
<% end %>
<% if session[:anon_user] and session[:user] and User.find(session[:user]).content_count > 0 %>
<% if session[:anon_user] and session[:user] and User.find(session[:user]).content_count > 0 && !current_page?(account_path) %>
<div class="card">
<div class="card-heading">Anonymous accounts</div>
<div class="card-body">
You are currently using an <a href="/about/anon-login">anonymous account</a>. In order to save the brilliant things you have created with it, please <a href="/account">click here</a>to give yourself a username and password.
You are currently using an <a href="/about/anon-login">anonymous account</a>. In order to save the brilliant things you have created with it, please <a href="/account">click here</a> to give yourself a username and password.
</div>
<div class="card-comments"></div>
</div>