Rename should_show_price_info? to should_show_price_explanation? at Budget::Investment & usage
This commit is contained in:
@@ -245,7 +245,7 @@ class Budget
|
||||
(budget.reviewing_ballots? || budget.finished?)
|
||||
end
|
||||
|
||||
def should_show_price_info?
|
||||
def should_show_price_explanation?
|
||||
feasible? &&
|
||||
price_explanation.present? &&
|
||||
(budget.balloting? || budget.reviewing_ballots? || budget.finished?)
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<p><%= investment.unfeasibility_explanation %></p>
|
||||
<% end %>
|
||||
|
||||
<% if investment.should_show_price_info? %>
|
||||
<% if investment.should_show_price_explanation? %>
|
||||
<h2><%= t('budgets.investments.show.price_explanation') %></h2>
|
||||
<p><%= investment.price_explanation %></p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user