improves edit debate button on debate show
This commit is contained in:
@@ -363,10 +363,6 @@
|
||||
width: rem-calc(48);
|
||||
}
|
||||
|
||||
.edit-debate {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.debate-info,
|
||||
.proposal-info,
|
||||
.investment-project-info,
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user