From 5b468444e7a81dab7712be8c7d41708e4980d780 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 1 Sep 2019 15:12:44 -0500 Subject: [PATCH] Tweak signin / signup pages. * Link to the signup page on the signin page. * Clarify that emails are optional on the signup page. --- app/views/sessions/new.html.erb | 4 ++++ app/views/users/new.html.erb | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 239bf9322..7f92dc545 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -18,6 +18,10 @@ +

+ New to <%= Danbooru.config.app_name %>? <%= link_to "Create a new account", new_user_path %>. +

+
<%= submit_tag "Submit", :data => { :disable_with => "Signing in..." } %>
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index c40ebbef0..ea5d9f9c1 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -2,7 +2,7 @@

Sign Up

-

A basic account is free and lets you keep favorites, upload artwork, and write comments. If you want <%= link_to "more features", new_user_upgrade_path %> you can upgrade your account later.

+

A basic account is free and lets you keep favorites, upload artwork, edit tags, and post comments. If you want <%= link_to "more features", new_user_upgrade_path %> you can upgrade your account later.

This site is open to web crawlers so whatever name you choose will be public!

@@ -10,8 +10,8 @@
<%= simple_form_for(@user, html: {id: "signup-form"}) do |f| %> - <%= f.input :name, :as => :string %> - <%= f.input :email, :required => false, :as => :email %> + <%= f.input :name, as: :string %> + <%= f.input :email, required: false, as: :email, hint: "Optional" %> <%= f.input :password %> <%= f.input :password_confirmation %>