Replaced div with tag 'figure' in budget investment show.

This commit is contained in:
Alessandro Cuoghi
2017-06-22 14:46:19 +02:00
committed by Senén Rodero Rodríguez
parent dd1e73c5fd
commit 4ce8e14f86
2 changed files with 19 additions and 13 deletions

View File

@@ -30,15 +30,21 @@
<!-- TODO: ROCK&ROR: Markup rework accordingly to mockup definition -->
<% if investment.image.exists? %>
<div class="row columns image">
<%= image_tag investment.image.url(:large),
<div class="row">
<div class="small-12 column text-center">
<figure>
<%= image_tag investment.image.url(),
title: investment.image_title,
alt: investment.image_title %>
<figcaption class="text-right">
<em><%= investment.image_title %></em>
</figcaption>
</figure>
<hr>
</div>
<p class="text-right title-image">
<em><%= investment.image_title %></em>
</p>
<hr>
</div>
<% end %>
<p id="investment_code">
<%= t("budgets.investments.show.code_html", code: investment.id) %>