Show actions section only if there is any action
This commit is contained in:
@@ -13,15 +13,17 @@
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
<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 %>
|
||||
<strong><%= t("dashboard.menu.recommended_actions") %></strong>
|
||||
<% end %>
|
||||
<% if new_resources_since_last_login?(proposed_actions, @new_actions_since_last_login) %>
|
||||
<span class="label"><%= t("dashboard.progress.new_action" ) %></span>
|
||||
<% 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 %>
|
||||
<strong><%= t("dashboard.menu.recommended_actions") %></strong>
|
||||
<% end %>
|
||||
<% if new_resources_since_last_login?(proposed_actions, @new_actions_since_last_login) %>
|
||||
<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' %>
|
||||
<%= render 'summary_recommended_actions' %>
|
||||
|
||||
<% if @pending_actions.any? || @done_actions.any? %>
|
||||
<%= render 'summary_recommended_actions' %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'resources' %>
|
||||
|
||||
Reference in New Issue
Block a user