Merge pull request #1352 from consul/feasibility_link
Feasibility index
This commit is contained in:
11
app/views/budgets/investments/_feasibility_link.html.erb
Normal file
11
app/views/budgets/investments/_feasibility_link.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<div class="sidebar-divider"></div>
|
||||
<h2 class="sidebar-title"><%= t("budgets.investments.index.sidebar.by_feasibility") %></h2>
|
||||
<br>
|
||||
|
||||
<% if params[:unfeasible].present? %>
|
||||
<%= link_to t("budgets.investments.index.sidebar.feasible"),
|
||||
budget_investments_path(@budget, heading_id: @heading, unfeasible: nil) %>
|
||||
<% else %>
|
||||
<%= link_to t("budgets.investments.index.sidebar.unfeasible"),
|
||||
budget_investments_path(@budget, heading_id: @heading, unfeasible: 1) %>
|
||||
<% end %>
|
||||
@@ -14,6 +14,7 @@
|
||||
<% if @budget.accepting? %>
|
||||
<%= render "shared/tag_cloud", taggable: 'budget/investment' %>
|
||||
<%= render 'categories' %>
|
||||
<%= render 'feasibility_link' %>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user