Show actions section only if there is any action
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
<% if proposed_actions.any? %>
|
||||
<li class="section-title <%= 'is-active' if recommended_actions_menu_active? %>">
|
||||
<span class="icon-checkmark-circle"></span>
|
||||
<%= link_to recommended_actions_proposal_dashboard_path(proposal.to_param) do %>
|
||||
@@ -22,6 +23,7 @@
|
||||
<span class="label"><%= t("dashboard.progress.new_action" ) %></span>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<% if resources_menu_visible?(proposal, resources) %>
|
||||
<li class="section-title <%= 'is-active' if resources_menu_active? %>">
|
||||
|
||||
@@ -33,5 +33,9 @@
|
||||
<% end %>
|
||||
|
||||
<%= render 'next_goal' %>
|
||||
|
||||
<% if @pending_actions.any? || @done_actions.any? %>
|
||||
<%= render 'summary_recommended_actions' %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'resources' %>
|
||||
|
||||
Reference in New Issue
Block a user