Adds price explanation link on budget investments show

This commit is contained in:
decabeza
2018-12-18 11:46:17 +01:00
parent d583c93ebf
commit 7316c16edd
4 changed files with 14 additions and 1 deletions

View File

@@ -80,7 +80,9 @@
<% end %>
<% if investment.should_show_price_explanation? %>
<h2><%= t('budgets.investments.show.price_explanation') %></h2>
<h2 id="price_explanation" data-magellan-target="price_explanation">
<%= t("budgets.investments.show.price_explanation") %>
</h2>
<p><%= investment.price_explanation %></p>
<% end %>
@@ -177,6 +179,12 @@
<%= investment.formatted_price %>
</p>
</div>
<% if investment.should_show_price_explanation? %>
<div class="text-center" data-magellan>
<%= link_to t("budgets.investments.show.see_price_explanation"),
"#price_explanation", class: "small" %>
</div>
<% end %>
<% end %>
<%= render 'shared/social_share',