Show actions section only if there is any action

This commit is contained in:
decabeza
2019-04-10 16:17:03 +02:00
parent 4064fea1e5
commit 90ca78a0bd
2 changed files with 16 additions and 10 deletions

View File

@@ -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? %>">

View File

@@ -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' %>