Improves account checkboxes and edit debate button

This commit is contained in:
Alberto Garcia Cabeza
2015-09-04 15:07:41 +02:00
parent 4e92b5c3ce
commit e0959f3e28
2 changed files with 9 additions and 5 deletions

View File

@@ -44,13 +44,17 @@
<h2><%= t("account.show.notifications")%></h2>
<div>
<%= f.check_box :email_on_debate_comment, label: false %>
<span class="checkbox"><%= t("account.show.email_on_debate_comment_label") %></span>
<%= f.label :email_on_debate_comment do %>
<%= f.check_box :email_on_debate_comment, label: false %>
<span class="checkbox"><%= t("account.show.email_on_debate_comment_label") %></span>
<% end %>
</div>
<div>
<%= f.check_box :email_on_comment_reply, label: false %>
<span class="checkbox"><%= t("account.show.email_on_comment_reply_label") %></span>
<%= f.label :email_on_comment_reply do %>
<%= f.check_box :email_on_comment_reply, label: false %>
<span class="checkbox"><%= t("account.show.email_on_comment_reply_label") %></span>
<% end %>
</div>
</div>

View File

@@ -4,7 +4,7 @@
<i class="icon-angle-left left"></i>&nbsp;<%= 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 %>
<i class="icon-edit"></i>
<%= t("debates.show.edit_debate_link") %>
<% end %>