Commit b1e68922 authored by Brett Walker's avatar Brett Walker

refactored the account confirmation into a partial. Also made the

text in the `.text` version consistent with the `.html` version
parent 47c6525a
- if @resource.unconfirmed_email.present?
#content
= email_default_heading(@resource.unconfirmed_email)
%p Click the link below to confirm your email address.
#cta
= link_to 'Confirm your email address', confirmation_url(@resource, confirmation_token: @token)
- else
#content
- if Gitlab.com?
= email_default_heading('Thanks for signing up to GitLab!')
- else
= email_default_heading("Welcome, #{@resource.name}!")
%p To get started, click the link below to confirm your account.
#cta
= link_to 'Confirm your account', confirmation_url(@resource, confirmation_token: @token)
<% if @resource.unconfirmed_email.present? %>
<%= @resource.unconfirmed_email %>,
Use the link below to confirm your email address.
<% else %>
<% if Gitlab.com? %>
Thanks for signing up to GitLab!
<% else %>
Welcome, <%= @resource.name %>!
<% end %>
To get started, use the link below to confirm your account.
<% end %>
<%= confirmation_url(@resource, confirmation_token: @token) %>
#content
= email_default_heading("#{@resource.user.name}, you've added a secondary email!")
= email_default_heading("#{@resource.user.name}, you've added an additional email!")
%p Click the link below to confirm your email address (#{@resource.email})
#cta
= link_to 'Confirm your email address', confirmation_url(@resource, confirmation_token: @token)
......
<%= @resource.user.name %>, you've added a secondary email!
<%= @resource.user.name %>, you've added an additional email!
You can confirm your email (<%= @resource.email %>) through the link below:
Use the link below to confirm your email address (<%= @resource.email %>)
<%= confirmation_url(@resource, confirmation_token: @token) %>
......
- if @resource.is_a?(Email)
= render partial: 'confirmation_instructions_secondary'
- if @resource.is_a?(User)
= render partial: 'confirmation_instructions_account'
- else
- if @resource.unconfirmed_email.present?
#content
= email_default_heading(@resource.unconfirmed_email)
%p Click the link below to confirm your email address.
#cta
= link_to 'Confirm your email address', confirmation_url(@resource, confirmation_token: @token)
- else
#content
- if Gitlab.com?
= email_default_heading('Thanks for signing up to GitLab!')
- else
= email_default_heading("Welcome, #{@resource.name}!")
%p To get started, click the link below to confirm your account.
#cta
= link_to 'Confirm your account', confirmation_url(@resource, confirmation_token: @token)
= render partial: 'confirmation_instructions_secondary'
<% if @resource.is_a?(Email) %>
<%= render partial: 'confirmation_instructions_secondary' %>
<% else %>
Welcome, <%= @resource.name %>!
<% if @resource.unconfirmed_email.present? %>
You can confirm your email (<%= @resource.unconfirmed_email %>) through the link below:
<% if @resource.is_a?(User) %>
<%= render partial: 'confirmation_instructions_account' %>
<% else %>
You can confirm your account through the link below:
<% end %>
<%= confirmation_url(@resource, confirmation_token: @token) %>
<%= render partial: 'confirmation_instructions_secondary' %>
<% end %>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment