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