improves edit debate button on debate show

This commit is contained in:
decabeza
2017-10-18 18:54:01 +02:00
parent 86da0e5154
commit 05a713790f
4 changed files with 11 additions and 11 deletions

View File

@@ -363,10 +363,6 @@
width: rem-calc(48);
}
.edit-debate {
margin-bottom: 0;
}
.debate-info,
.proposal-info,
.investment-project-info,

View File

@@ -9,13 +9,6 @@
<div class="small-12 medium-9 column">
<%= back_link_to %>
<% if current_user && @debate.editable_by?(current_user) %>
<%= link_to edit_debate_path(@debate), class: 'edit-debate button success small float-right' do %>
<span class="icon-edit"></span>
<%= t("debates.show.edit_debate_link") %>
<% end %>
<% end %>
<h1><%= @debate.title %></h1>
<% if @debate.conflictive? %>
<div data-alert class="callout alert margin-top">
@@ -47,6 +40,15 @@
</div>
<aside class="small-12 medium-3 column">
<% if current_user && @debate.editable_by?(current_user) %>
<div class="sidebar-divider"></div>
<h2><%= t("debates.show.author") %></h2>
<%= link_to edit_debate_path(@debate), class: 'button hollow expanded' do %>
<span class="icon-edit"></span>
<%= t("debates.show.edit_debate_link") %>
<% end %>
<% end %>
<div class="sidebar-divider"></div>
<h2><%= t("votes.supports") %></h2>
<div id="<%= dom_id(@debate) %>_votes">

View File

@@ -158,6 +158,7 @@ en:
flag: This debate has been flagged as inappropriate by several users.
login_to_comment: You must %{signin} or %{signup} to leave a comment.
share: Share
author: Author
update:
form:
submit_button: Save changes

View File

@@ -158,6 +158,7 @@ es:
flag: Este debate ha sido marcado como inapropiado por varios usuarios.
login_to_comment: Necesitas %{signin} o %{signup} para comentar.
share: Compartir
author: Autor
update:
form:
submit_button: Guardar cambios