- Display recommended_proposals on new section as goals with toogle. - Divide recommended actions into actions done and actions pending to clarify the information to the user as summary_recomended_actions.
85 lines
3.4 KiB
Plaintext
85 lines
3.4 KiB
Plaintext
<ul id="proposal_dashboard_menu" class="no-bullet">
|
|
<li class="section-title <%= 'is-active' if my_proposal_menu_active? %>">
|
|
<span class="icon-proposals"></span>
|
|
<%= link_to proposal_dashboard_path(proposal.to_param) do %>
|
|
<strong><%= t("dashboard.menu.my_proposal") %></strong>
|
|
<% end %>
|
|
</li>
|
|
|
|
<li class="section-title <%= 'is-active' if progress_menu_active? %>">
|
|
<span class="icon-stats"></span>
|
|
<%= link_to progress_proposal_dashboard_path(proposal.to_param) do %>
|
|
<strong><%= t("dashboard.menu.progress") %></strong>
|
|
<% 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 %>
|
|
</li>
|
|
|
|
<% if resources_menu_visible?(proposal, resources) %>
|
|
<li class="section-title <%= 'is-active' if resources_menu_active? %>">
|
|
<span class="icon-zip"></span>
|
|
<strong><%= t("dashboard.menu.resources") %></strong>
|
|
<ul class="no-bullet resources">
|
|
<% if can?(:manage_polls, proposal) %>
|
|
<li>
|
|
<%= link_to proposal_dashboard_polls_path(proposal.to_param),
|
|
class: "#{'submenu-active' if polls_menu_active?}" do %>
|
|
<span data-tooltip title="<%= Setting['proposals.poll_short_title'] ||
|
|
t("dashboard.menu.polls") %>">
|
|
<%= t("dashboard.menu.polls") %>
|
|
</span>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if can?(:manage_mailing, proposal) %>
|
|
<li>
|
|
<%= link_to new_proposal_dashboard_mailing_path(proposal.to_param),
|
|
class: "#{'submenu-active' if mailing_menu_active?}" do %>
|
|
<span data-tooltip title="<%= Setting['proposals.email_short_title'] ||
|
|
t("dashboard.menu.mailing") %>">
|
|
<%= t("dashboard.menu.mailing") %>
|
|
</span>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if can?(:manage_poster, proposal) %>
|
|
<li>
|
|
<%= link_to new_proposal_dashboard_poster_path(proposal.to_param),
|
|
class: "#{'submenu-active' if poster_menu_active?}" do %>
|
|
<span data-tooltip title="<%= Setting['proposals.poster_short_title'] ||
|
|
t("dashboard.menu.poster") %>">
|
|
<%= t("dashboard.menu.poster") %>
|
|
</span>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% resources.each do |resource| %>
|
|
<li>
|
|
<%= link_to new_request_proposal_dashboard_action_path(proposal, resource),
|
|
class: "#{'submenu-active' if is_request_active(resource.id)}" do %>
|
|
<span data-tooltip title="<%= resource.short_description %>">
|
|
<%= resource.title %>
|
|
</span>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</li>
|
|
<% end %>
|
|
|
|
<li class="section-title <%= 'is-active' if community_menu_active? %>">
|
|
<span class="icon-organizations"></span>
|
|
<%= link_to community_proposal_dashboard_path(proposal.to_param) do %>
|
|
<strong><%= t("dashboard.menu.community") %></strong>
|
|
<% end %>
|
|
</li>
|
|
</ul>
|