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:
@@ -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),
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user