Add I18n texts for the link to see the image.

The image is shown in the public investment window if the milestone has one.
This commit is contained in:
iagirre
2017-12-13 08:55:08 +01:00
parent 35986ea6b5
commit 5186149b33
4 changed files with 4 additions and 1 deletions

View File

@@ -22,7 +22,7 @@
<%= milestone.description %>
</td>
<td class="small">
<%= link_to 'Ver imagen', milestone.image_url(:large), target: :_blank if milestone.image.present? %>
<%= link_to t("admin.milestones.index.show_image"), milestone.image_url(:large), target: :_blank if milestone.image.present? %>
</td>
<td>
<%= link_to t("admin.milestones.index.delete"), admin_budget_budget_investment_budget_investment_milestone_path(@investment.budget, @investment, milestone),

View File

@@ -16,6 +16,7 @@
<strong><%= t("budgets.investments.show.milestone_publish_date", publish_date: l(milestone.created_at.to_date)) %></strong>
</span>
<p><%= milestone.description %></p>
<%= image_tag milestone.image_url(:large) if milestone.image.present? %>
</div>
</li>
<% end %>

View File

@@ -196,6 +196,7 @@ en:
table_actions: "Actions"
delete: "Delete milestone"
no_milestones: "Don't have defined milestones"
show_image: "Show image"
new:
creating: Create milestone
edit:

View File

@@ -196,6 +196,7 @@ es:
table_actions: "Acciones"
delete: "Eliminar hito"
no_milestones: "No hay hitos definidos"
show_image: "Ver imagen"
new:
creating: Crear hito
edit: