From 3f1393ea8f4b2bf10efb3badc42ffa502e25fdce Mon Sep 17 00:00:00 2001
From: Andrew Brown
Date: Mon, 24 Dec 2012 05:25:06 -0600
Subject: [PATCH] login/signup/anon page updated with tabs
---
app/controllers/users_controller.rb | 3 +++
app/views/layouts/_login_box.html.erb | 4 ----
app/views/sessions/new.html.erb | 10 ++++++++--
app/views/users/anonymous.html.erb | 23 +++++++++++++++++++++++
app/views/users/new.html.erb | 8 ++++++--
config/routes.rb | 1 +
6 files changed, 41 insertions(+), 8 deletions(-)
create mode 100644 app/views/users/anonymous.html.erb
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 84b0c503..f93b6e10 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -49,4 +49,7 @@ class UsersController < ApplicationController
end
end
end
+
+ def anonymous
+ end
end
diff --git a/app/views/layouts/_login_box.html.erb b/app/views/layouts/_login_box.html.erb
index b86c0a3a..902412e9 100644
--- a/app/views/layouts/_login_box.html.erb
+++ b/app/views/layouts/_login_box.html.erb
@@ -18,9 +18,5 @@
<% end %>
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb
index 4fd86c79..c1fb8daa 100644
--- a/app/views/sessions/new.html.erb
+++ b/app/views/sessions/new.html.erb
@@ -1,4 +1,10 @@
+
+
<%- model_class = @session.class -%>
-<%=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human,
- :default => "New #{model_class.model_name.human}") %>
<%= render :partial => 'form' %>
diff --git a/app/views/users/anonymous.html.erb b/app/views/users/anonymous.html.erb
new file mode 100644
index 00000000..487d0bc4
--- /dev/null
+++ b/app/views/users/anonymous.html.erb
@@ -0,0 +1,23 @@
+
+
+
+ Going anonymous allows you to enjoy all the tools of the site without having to
+ create an account.
+
+
+
+ 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.
+ You will not have access to any saved plans,
+ stories, or other content you create after logging out of your anonymous
+ account.
+
+
+ I understand, log me in anonymously.
+
+
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index 72b7b9bc..1f43e3a1 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -1,4 +1,8 @@
+
+
<%- model_class = @user.class -%>
-<%=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human,
- :default => "New #{model_class.model_name.human}") %>
<%= render :partial => 'form' %>
diff --git a/config/routes.rb b/config/routes.rb
index 143ee789..3b044075 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -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