login/signup/anon page updated with tabs

This commit is contained in:
Andrew Brown 2012-12-24 05:25:06 -06:00
parent bbd2312b62
commit 3f1393ea8f
6 changed files with 41 additions and 8 deletions

View File

@ -49,4 +49,7 @@ class UsersController < ApplicationController
end
end
end
def anonymous
end
end

View File

@ -18,9 +18,5 @@
<ul class="nav">
<li><a href="/login">Login</a></li>
<li><a href="/register">Register</a></li>
<li><a href="/adoption">
Adoption
<i class="icon-question-sign"></i>
</a></li>
</ul>
<% end %>

View File

@ -1,4 +1,10 @@
<ul class="nav nav-tabs">
<li class="active">
<a href="/login">Log in</a>
</li>
<li><a href="/register">Sign up</a></li>
<li><a href="/be-anonymous">Be Anonymous</a></li>
</ul>
<%- model_class = @session.class -%>
<h1><%=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human,
:default => "New #{model_class.model_name.human}") %></h1>
<%= render :partial => 'form' %>

View File

@ -0,0 +1,23 @@
<ul class="nav nav-tabs">
<li><a href="/login">Log in</a></li>
<li><a href="/register">Sign up</a></li>
<li class="active"><a href="/be-anonymous">Be Anonymous</a></li>
</ul>
<p class="lead">
Going anonymous allows you to enjoy all the tools of the site without having to
create an account.
</p>
<p>
This means you can plan out characters, use the editors, critique other works,
search for publishers, and use any other tools any time you'd like. However,
this also means that nothing you create will be tied to a persistent account.
<strong>You will not have access to any saved plans,
stories, or other content you create after logging out of your anonymous
account.</strong>
<p>
<button class="btn btn-large btn-primary" type="button">I understand, log me in anonymously.</button>
</p>
</p>

View File

@ -1,4 +1,8 @@
<ul class="nav nav-tabs">
<li><a href="/login">Log in</a></li>
<li class="active"><a href="/register">Sign up</a></li>
<li><a href="/be-anonymous">Be Anonymous</a></li>
</ul>
<%- model_class = @user.class -%>
<h1><%=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human,
:default => "New #{model_class.model_name.human}") %></h1>
<%= render :partial => 'form' %>

View File

@ -13,6 +13,7 @@ PlanCharacters::Application.routes.draw do
post '/register', :to => 'users#create', :as => :signup_process
get '/account', :to => 'users#edit', :as => :account
put '/register', :to => 'users#update', :as => :account_process
get '/be-anonymous', :to => 'users#anonymous', :as => :anonymous
# Characters
get '/characters', :to => 'characters#index', :as => :character_list