mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
login/signup/anon page updated with tabs
This commit is contained in:
parent
bbd2312b62
commit
3f1393ea8f
@ -49,4 +49,7 @@ class UsersController < ApplicationController
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def anonymous
|
||||
end
|
||||
end
|
||||
|
||||
@ -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 %>
|
||||
|
||||
@ -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' %>
|
||||
|
||||
23
app/views/users/anonymous.html.erb
Normal file
23
app/views/users/anonymous.html.erb
Normal 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>
|
||||
@ -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' %>
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user