summaryrefslogtreecommitdiff
path: root/app/views/users/show.html.erb
diff options
context:
space:
mode:
authorJonas Folvik <Jonas-folvik@hotmail.com>2016-06-12 20:36:53 +0200
committerJonas Folvik <Jonas-folvik@hotmail.com>2016-06-17 10:21:49 +0200
commitdb1c10eb9b89900db2e1f1c48a8d76cf669ab277 (patch)
tree54b9ed83bce9ee3b9392f553c9c2e09fa7f92c7f /app/views/users/show.html.erb
parent8beb2d39db57661ff156cdb2981588fa962065c2 (diff)
An Option to resend the confirmation mail
You should now be able to resend the confirmation mail with the click of a link that is next to the warning that the mail isn't confirmed. Resend the confirmation mail cleaning Just a way to re use the files and stuff we already have instead of the file I created even though I could use the register_mail we have. Change of route and link to button I changed the route from GET to POST because of security reasons, and changed the link_to to a button_to changed the notice I changed the notice so it said check for the mail instead of check for the link Changed notice and button Changed the notice to say "Check your inbox" instead of "Check your mail" also changed the way the class looks
Diffstat (limited to 'app/views/users/show.html.erb')
-rw-r--r--app/views/users/show.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 56ece88..eabe78e 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -23,6 +23,7 @@
<% if !@user.confirmed? %>
<% if @user.is?(current_user) %>
<span class="user-unconfirmed">Please confirm your email <u><%= @user.email %></u> !</span>
+ <%= button_to "Resend the confirmation mail", resend_mail_user_path, class: "btn red" %>
<% else %>
<span class="user-unconfirmed">This user hasn't confirmed their email yet!</span>
<% end %>
@@ -107,4 +108,4 @@
<% else %>
<%= render_md(@user.about).html_safe %>
<% end %>
-</div> \ No newline at end of file
+</div>