Restored missing code
This commit is contained in:
@@ -58,7 +58,25 @@
|
|||||||
<%= investment.valuation_finished? ? t('shared.yes'): t('shared.no') %>
|
<%= investment.valuation_finished? ? t('shared.yes'): t('shared.no') %>
|
||||||
</td>
|
</td>
|
||||||
<td class="small">
|
<td class="small">
|
||||||
<%= investment_selected_link(investment) %>
|
<% if investment.selected? %>
|
||||||
|
<%= link_to_unless investment.budget.finished?, t("admin.budget_investments.index.selected"),
|
||||||
|
toggle_selection_admin_budget_budget_investment_path(@budget,
|
||||||
|
investment,
|
||||||
|
filter: params[:filter],
|
||||||
|
page: params[:page]),
|
||||||
|
method: :patch,
|
||||||
|
remote: true,
|
||||||
|
class: "button small expanded" %>
|
||||||
|
<% elsif investment.feasible? && investment.valuation_finished? %>
|
||||||
|
<%= link_to_unless investment.budget.finished?, t("admin.budget_investments.index.select"),
|
||||||
|
toggle_selection_admin_budget_budget_investment_path(@budget,
|
||||||
|
investment,
|
||||||
|
filter: params[:filter],
|
||||||
|
page: params[:page]),
|
||||||
|
method: :patch,
|
||||||
|
remote: true,
|
||||||
|
class: "button small hollow expanded" %>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<% if params[:filter] == 'selected' %>
|
<% if params[:filter] == 'selected' %>
|
||||||
<td class="small text-center">
|
<td class="small text-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user