Routes have been refactored
Dashboard routes have been refactored. Now instead of having resources for dashboard and routes inside a dashboard namespace the proposal routes contain a dashboar singleton containing everything related to it.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<ul id="proposal_dashboard_menu" data-multi-open="false">
|
||||
<li class="section-title">
|
||||
<%= link_to proposal_dashboard_index_path(proposal.to_param), class: my_proposal_menu_class do %>
|
||||
<%= link_to proposal_dashboard_path(proposal.to_param), class: my_proposal_menu_class do %>
|
||||
<i class="fi-lightbulb"></i>
|
||||
<strong><%= t("dashboard.menu.my_proposal") %></strong>
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
<li class="section-title">
|
||||
<%= link_to progress_proposal_dashboard_index_path(proposal.to_param),
|
||||
<%= link_to progress_proposal_dashboard_path(proposal.to_param),
|
||||
class: progress_menu_class do %>
|
||||
<span class="fi-graph-trend"></span>
|
||||
<strong><%= t("dashboard.menu.progress") %></strong>
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
<% resources.each do |resource| %>
|
||||
<li <%= 'class=is-active' if is_request_active(resource.id) %>>
|
||||
<%= link_to new_request_proposal_dashboard_path(proposal, resource) do %>
|
||||
<%= link_to new_request_proposal_dashboard_action_path(proposal, resource) do %>
|
||||
<span data-tooltip title="<%= resource.short_description %>">
|
||||
<%= resource.title %>
|
||||
</span>
|
||||
@@ -66,7 +66,7 @@
|
||||
<% end %>
|
||||
|
||||
<li class="section-title">
|
||||
<%= link_to community_proposal_dashboard_index_path(proposal.to_param),
|
||||
<%= link_to community_proposal_dashboard_path(proposal.to_param),
|
||||
class: community_menu_class do %>
|
||||
<span class="fi-torsos-all"></span>
|
||||
<strong><%= t("dashboard.menu.community") %></strong>
|
||||
|
||||
Reference in New Issue
Block a user