summaryrefslogtreecommitdiff
path: root/app/views/devise
diff options
context:
space:
mode:
authorBrett Walker <brett@digitalmoksha.com>2017-09-12 17:39:38 +0200
committerBrett Walker <brett@digitalmoksha.com>2017-09-23 15:24:53 +0200
commit09726bdf446b4673d4f92bc9132a6e34f3a67160 (patch)
tree6ffc8b4f91e91efe3183913631791408008b7a7c /app/views/devise
parent30e3a49e23f8ce0c2a07b13addc45951d7fc6719 (diff)
downloadgitlab-ce-09726bdf446b4673d4f92bc9132a6e34f3a67160.tar.gz
small cleanup changes based on feedback
Diffstat (limited to 'app/views/devise')
-rw-r--r--app/views/devise/mailer/confirmation_instructions.html.haml5
-rw-r--r--app/views/devise/mailer/confirmation_instructions.text.erb6
2 files changed, 2 insertions, 9 deletions
diff --git a/app/views/devise/mailer/confirmation_instructions.html.haml b/app/views/devise/mailer/confirmation_instructions.html.haml
index a0fb687e152..d2685140913 100644
--- a/app/views/devise/mailer/confirmation_instructions.html.haml
+++ b/app/views/devise/mailer/confirmation_instructions.html.haml
@@ -1,4 +1 @@
-- if @resource.is_a?(User)
- = render partial: 'confirmation_instructions_account'
-- else
- = render partial: 'confirmation_instructions_secondary'
+= render partial: "confirmation_instructions_#{@resource.is_a?(User) ? 'account' : 'secondary'}" \ No newline at end of file
diff --git a/app/views/devise/mailer/confirmation_instructions.text.erb b/app/views/devise/mailer/confirmation_instructions.text.erb
index 057bb0b23f9..05fddddf415 100644
--- a/app/views/devise/mailer/confirmation_instructions.text.erb
+++ b/app/views/devise/mailer/confirmation_instructions.text.erb
@@ -1,5 +1 @@
-<% if @resource.is_a?(User) %>
-<%= render partial: 'confirmation_instructions_account' %>
-<% else %>
-<%= render partial: 'confirmation_instructions_secondary' %>
-<% end %>
+<%= render partial: "confirmation_instructions_#{@resource.is_a?(User) ? 'account' : 'secondary'}" %> \ No newline at end of file