From e0959f3e286213a47ad2738d7518dffd43e0f593 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Fri, 4 Sep 2015 15:07:41 +0200 Subject: [PATCH] Improves account checkboxes and edit debate button --- app/views/account/show.html.erb | 12 ++++++++---- app/views/debates/show.html.erb | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/views/account/show.html.erb b/app/views/account/show.html.erb index 41ae068c0..1d7ecaf7e 100644 --- a/app/views/account/show.html.erb +++ b/app/views/account/show.html.erb @@ -44,13 +44,17 @@

<%= t("account.show.notifications")%>

- <%= f.check_box :email_on_debate_comment, label: false %> - <%= t("account.show.email_on_debate_comment_label") %> + <%= f.label :email_on_debate_comment do %> + <%= f.check_box :email_on_debate_comment, label: false %> + <%= t("account.show.email_on_debate_comment_label") %> + <% end %>
- <%= f.check_box :email_on_comment_reply, label: false %> - <%= t("account.show.email_on_comment_reply_label") %> + <%= f.label :email_on_comment_reply do %> + <%= f.check_box :email_on_comment_reply, label: false %> + <%= t("account.show.email_on_comment_reply_label") %> + <% end %>
diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb index 1e29894c4..3ed8b3a9d 100644 --- a/app/views/debates/show.html.erb +++ b/app/views/debates/show.html.erb @@ -4,7 +4,7 @@  <%= link_to t("debates.show.back_link"), debates_path, class: 'left back' %> <% if current_user && @debate.editable_by?(current_user) %> - <%= link_to edit_debate_path(@debate), :class => 'right' do %> + <%= link_to edit_debate_path(@debate), :class => 'edit-debate button success tiny radius right' do %> <%= t("debates.show.edit_debate_link") %> <% end %>