fixes author actions on sidebar

This commit is contained in:
decabeza
2018-01-04 13:31:27 +01:00
parent 979d9d071b
commit 47194205bf
3 changed files with 15 additions and 7 deletions

View File

@@ -13,13 +13,6 @@
<div class="small-12 medium-9 column">
<%= back_link_to budget_investments_path(investment.budget, heading_id: investment.heading) %>
<% if can_destroy_image?(investment) %>
<%= link_to t("images.remove_image"),
image_path(investment.image, from: request.url),
method: :delete,
class: 'button hollow float-right' %>
<% end %>
<h1><%= investment.title %></h1>
<div class="budget-investment-info">
<%= render '/shared/author_info', resource: investment %>
@@ -79,6 +72,19 @@
</div>
<aside class="small-12 medium-3 column">
<% if can_destroy_image?(investment) %>
<div class="sidebar-divider"></div>
<h2><%= t("budgets.investments.show.author") %></h2>
<div class="show-actions-menu">
<%= link_to image_path(investment.image, from: request.url),
method: :delete,
class: 'button hollow alert expanded' do %>
<span class="icon-image"></span>
<%= t("images.remove_image") %>
<% end %>
</div>
<% end %>
<% if investment.should_show_aside? %>
<% if investment.should_show_votes? %>
<div class="sidebar-divider"></div>

View File

@@ -113,6 +113,7 @@ en:
milestones_tab: Milestones
no_milestones: Don't have defined milestones
milestone_publication_date: "Published %{publication_date}"
author: Author
wrong_price_format: Only integer numbers
investment:
add: Vote

View File

@@ -113,6 +113,7 @@ es:
milestones_tab: Seguimiento
no_milestones: No hay hitos definidos
milestone_publication_date: "Publicado el %{publication_date}"
author: Autor
wrong_price_format: Solo puede incluir caracteres numéricos
investment:
add: Votar