Browse Source

Add window titles to auth pages and about page, link sign up/login from about page

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
9b195f5dd3
8 changed files with 25 additions and 3 deletions
  1. +2
    -2
      app/assets/javascripts/components/components/status_content.jsx
  2. +5
    -1
      app/views/about/index.html.haml
  3. +3
    -0
      app/views/auth/confirmations/new.html.haml
  4. +3
    -0
      app/views/auth/passwords/edit.html.haml
  5. +3
    -0
      app/views/auth/passwords/new.html.haml
  6. +3
    -0
      app/views/auth/registrations/edit.html.haml
  7. +3
    -0
      app/views/auth/registrations/new.html.haml
  8. +3
    -0
      app/views/auth/sessions/new.html.haml

+ 2
- 2
app/assets/javascripts/components/components/status_content.jsx View File

@ -22,11 +22,11 @@ const StatusContent = React.createClass({
let mention = this.props.status.get('mentions').find(item => link.href === item.get('url'));
if (mention) {
link.addEventListener('click', this.onMentionClick.bind(this, mention));
link.addEventListener('click', this.onMentionClick.bind(this, mention), false);
} else {
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener');
link.addEventListener('click', this.onNormalClick);
link.addEventListener('click', this.onNormalClick, false);
}
}
},

+ 5
- 1
app/views/about/index.html.haml View File

@ -1,3 +1,6 @@
- content_for :page_title do
= Rails.configuration.x.local_domain
.wrapper
%h1
= image_tag 'logo.png'
@ -16,4 +19,5 @@
is a Mastodon instance.
.actions
= link_to 'Get started', new_user_session_path, class: 'button'
= link_to 'Get started', new_user_registration_path, class: 'button'
= link_to 'Log in', new_user_session_path, class: 'button'

+ 3
- 0
app/views/auth/confirmations/new.html.haml View File

@ -1,3 +1,6 @@
- content_for :page_title do
Confirmation instructions
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
= devise_error_messages!

+ 3
- 0
app/views/auth/passwords/edit.html.haml View File

@ -1,3 +1,6 @@
- content_for :page_title do
Set new password
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
= devise_error_messages!
= f.hidden_field :reset_password_token

+ 3
- 0
app/views/auth/passwords/new.html.haml View File

@ -1,3 +1,6 @@
- content_for :page_title do
Reset password
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
= devise_error_messages!

+ 3
- 0
app/views/auth/registrations/edit.html.haml View File

@ -1,3 +1,6 @@
- content_for :page_title do
Change password
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
= devise_error_messages!

+ 3
- 0
app/views/auth/registrations/new.html.haml View File

@ -1,3 +1,6 @@
- content_for :page_title do
Sign up
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
= devise_error_messages!

+ 3
- 0
app/views/auth/sessions/new.html.haml View File

@ -1,3 +1,6 @@
- content_for :page_title do
Log in
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
.field
= f.email_field :email, autofocus: true, placeholder: 'E-mail address', required: true

Loading…
Cancel
Save