improved copy for account registration/upgrade

This commit is contained in:
albert
2011-12-01 18:27:11 -05:00
parent ff266ed6b9
commit caf39d1962
11 changed files with 185 additions and 99 deletions

View File

@@ -1,6 +1,9 @@
<% content_for(:secondary_links) do %>
<menu>
<li><%= link_to "Listing", users_path %></li>
<% if CurrentUser.is_anonymous? %>
<li><%= link_to "Sign up", new_user_path %></li>
<% end %>
<% if @user && !CurrentUser.is_anonymous? %>
<li>|</li>
<% if @user.id == CurrentUser.id %>
@@ -10,6 +13,9 @@
<% else %>
<li><%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %></li>
<% end %>
<% if !CurrentUser.is_privileged? %>
<li><%= link_to "Upgrade", upgrade_information_users_path %></li>
<% end %>
<li>|</li>
<li><%= link_to "Sign out", session_path, :method => :delete %></li>
<% end %>

View File

@@ -0,0 +1,4 @@
<div class="ui-corner-all ui-state-highlight" id="sign-up-notice">
<h1>Like the site? <%= link_to "Sign up for a free basic account!", new_user_path %></h1>
<p><%= link_to "No thanks", "#", :id => "hide-sign-up-notice" %></p>
</div>

View File

@@ -0,0 +1,4 @@
<div class="ui-corner-all ui-state-highlight" id="upgrade-account-notice">
<h1><%= link_to "Upgrade your account for only $10!", upgrade_information_users_path %></h1>
<p><%= link_to "No thanks", "#", :id => "hide-upgrade-account-notice" %></p>
</div>

View File

@@ -1,80 +1,23 @@
<div id="c-users">
<div id="a-new">
<h1>Sign up</h1>
<h1>Sign Up</h1>
<% if @user.errors.empty? %>
<div id="p1">
<p><%= Danbooru.config.app_name %> is ad-sponsored and does not require an account to view. But in order to start uploading, editing, or creating content on this site, you will need to register. <em>Make sure you read and agree to the <%= link_to "terms of service", terms_of_service_path %> before registering. <strong>This site is open to web crawlers, therefore any name you choose will be public!</strong></em></p>
<p>Registration for a basic account is free but comes with some limitations.</p>
<div id="account-comparison">
<section>
<h1>Basic</h1>
<ul>
<li>Free</li>
<li>Uploads limited</li>
<li>Search up to 2 tags at once</li>
<li>Some hidden posts</li>
<li>Ads visible</li>
<li>Create and edit posts, favorites, forum posts, comments, wiki pages, pools, artists, and dmails</li>
</ul>
</section>
<section>
<h1>Privileged</h1>
<ul>
<li>One time $20 fee</li>
<li>Uploads limited</li>
<li>Search up to 6 tags at once</li>
<li>No hidden posts</li>
<li>No ads</li>
<li>Tag subscriptions</li>
</ul>
</section>
<section>
<h1>Contributor</h1>
<ul>
<li>Invitation only</li>
<li>No upload limits</li>
</ul>
</section>
<div class="clearfix"></div>
</div>
</div>
<div id="p2">
<p>There are some restrictions on names:</p>
<ul>
<li><strong>Name</strong>: Your name must be at least 2 characters and at most 20 characters long. It cannot contain spaces or colons. All characters must be US-ASCII.</li>
<li><strong>Password</strong>: Your password must be at least 5 characters long.</li>
<li>
<strong>Email</strong>:
<% if Danbooru.config.enable_email_verification? %>
You must enter a valid email address. You will need to verify your email address after registering.
<% else %>
You can optionally enter an email address. Although optional, you will not be able to reset your password without an email address.
<% end %>
</li>
</ul>
</div>
<% end %>
<p>A basic account is <strong>free</strong> and lets you keep favorites, upload artwork, and write comments. If you want <%= link_to "more features", wiki_pages_path(:title => "help:accounts") %> you can upgrade your account later.</p>
<div id="p3">
<%= simple_form_for(@user) do |f| %>
<%= f.input :name, :as => :string %>
<%= f.input :email, :required => false, :as => :email %>
<%= f.input :password %>
<%= f.input :password_confirmation %>
<%= f.input :email, :required => false, :as => :email %>
<%= f.button :submit %>
<%= f.button :submit, "Sign up" %>
<% end %>
</div>
</div>
</div>
<%= render "secondary_links" %>
<% content_for(:page_title) do %>
Sign up - <%= Danbooru.config.app_name %>
<% end %>

View File

@@ -0,0 +1,50 @@
<div id="c-users">
<div id="a-upgrade-information">
<h1>Upgrade Account</h1>
<p class="copy">Annoyed by ads? Want more searching power? Upgrade your account for only $10 and become a power user of the best database of anime artwork on the internet.</p>
<div id="feature-comparison">
<div class="column" id="basic-account">
<h1>Basic</h1>
<ul>
<li>Free</li>
<li>Ad supported</li>
<li>Search 2 tags at a time</li>
</ul>
</div>
<div class="column" id="privileged-account">
<h1>Privileged</h1>
<ul>
<li>One time $10 fee</li>
<li>No ads</li>
<li>Search 8 tags at a time</li>
<li>Subscribe to tags</li>
<li>Warm fuzzy feeling</li>
</ul>
</div>
<div class="column" id="contributor-account">
<h1>Contributor</h1>
<ul>
<li>Invite only</li>
<li>Unlimited uploads</li>
</ul>
</div>
</div>
<p>Just provide your email address and details for upgrading your account will be sent to you. If you have any further questions or concerns, feel free to contact me at <%= mail_to Danbooru.config.contact_email, nil, :encode => :javascript %>.</p>
<%= form_tag(upgrade_user_path(CurrentUser.user)) do %>
<%= email_field_tag :email, CurrentUser.email %>
<%= submit_tag "Upgrade" %>
<% end %>
</div>
</div>
<%= render "secondary_links" %>
<% content_for(:page_title) do %>
Upgrade - <%= Danbooru.config.app_name %>
<% end %>