Add image into investment show and add some change of css.
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
0925d33c5b
commit
dd1e73c5fd
@@ -21,13 +21,25 @@
|
||||
|
||||
<div class="budget-investment-info">
|
||||
<%= render '/shared/author_info', resource: investment %>
|
||||
|
||||
<span class="bullet"> • </span>
|
||||
<%= l investment.created_at.to_date %>
|
||||
<span class="bullet"> • </span>
|
||||
<%= investment.heading.name %>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<!-- TODO: ROCK&ROR: Markup rework accordingly to mockup definition -->
|
||||
<% if investment.image.exists? %>
|
||||
<div class="row columns image">
|
||||
<%= image_tag investment.image.url(:large),
|
||||
title: investment.image_title,
|
||||
alt: investment.image_title %>
|
||||
</div>
|
||||
<p class="text-right title-image">
|
||||
<em><%= investment.image_title %></em>
|
||||
</p>
|
||||
<hr>
|
||||
<% end %>
|
||||
<p id="investment_code">
|
||||
<%= t("budgets.investments.show.code_html", code: investment.id) %>
|
||||
</p>
|
||||
@@ -44,13 +56,6 @@
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<!-- TODO: ROCK&ROR: Markup rework accordingly to mockup definition -->
|
||||
<% if investment.image.exists? %>
|
||||
<%= image_tag investment.image.url(:large),
|
||||
title: investment.image_title,
|
||||
alt: investment.image_title %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'shared/tags', taggable: investment %>
|
||||
|
||||
<%= safe_html_with_links investment.description.html_safe %>
|
||||
|
||||
Reference in New Issue
Block a user