summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2016-06-21 23:26:56 +0200
committerjomo <github@jomo.tv>2016-06-21 23:26:56 +0200
commiteabf773ba39ea18c9bcb9a2eedf8617e2a12dadb (patch)
tree1a1bef8643becbe29364a4dbefa6b89785dcc7d7
parente2c413a8b1c33c9bcf9e1e7191817a3fd8845881 (diff)
fix resend button style
-rw-r--r--app/assets/stylesheets/style.css.scss5
-rw-r--r--app/views/users/show.html.erb2
2 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/stylesheets/style.css.scss b/app/assets/stylesheets/style.css.scss
index 6be17f0..83908c5 100644
--- a/app/assets/stylesheets/style.css.scss
+++ b/app/assets/stylesheets/style.css.scss
@@ -654,6 +654,7 @@ tr.spacer {
font-weight: bold;
padding: 4px 10px;
display: inline-block;
+ vertical-align: middle;
border-radius: 3px;
margin: 10px 0;
}
@@ -939,6 +940,10 @@ img {
color: #888;
}
+.inline-block {
+ display: inline-block;
+}
+
#footer {
padding: 30px 0;
width: 1600px;
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index eabe78e..0a5431c 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -23,7 +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" %>
+ <%= button_to "Resend the confirmation mail", resend_mail_user_path, class: "btn dark", form_class: "inline-block", data: {confirm: "Did you check your spam folder?"} %>
<% else %>
<span class="user-unconfirmed">This user hasn't confirmed their email yet!</span>
<% end %>