mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Don't show anon_notice card on account page #350
This commit is contained in:
parent
8530aab1ed
commit
61cb970c97
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user