Skip to content

Commit

Permalink
Merge pull request #70 from yuuu/fix_routing_for_projects
Browse files Browse the repository at this point in the history
Fix routing for projects.
  • Loading branch information
kaishuu0123 authored Jan 14, 2020
2 parents 59b28a5 + 00ca2f8 commit 7c9e000
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/views/commons/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@

<!-- Nav Item -->
<li class="nav-item">
<%= link_to project_closed_sprints_path(project), class: "nav-link" do %>
<%= link_to closed_sprints_project_path(project), class: "nav-link" do %>
<i class="fas fa-border-none"></i>
<span><%= t('.closed_sprints', default: 'Closed Sprints') %></span></a>
<% end %>
</li>

<!-- Nav Item - Tables -->
<li class="nav-item">
<a class="nav-link" href="<%= project_settings_path(project) %>">
<a class="nav-link" href="<%= settings_project_path(project) %>">
<i class="fas fa-fw fa-wrench"></i>
<span><%= t('.settings', default: 'Settings') %></span></a>
</li>
Expand Down
21 changes: 11 additions & 10 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@
resources :tasks, controller: :tickets, type: Task, constraints: { format: :json } do
resources :comments
end
end

get '/projects/:id/closed_sprints', to: 'projects#closed_sprints', as: 'project_closed_sprints'
get '/projects/:id/settings', to: 'projects#settings', as: 'project_settings'
member do
get 'closed_sprints'
get 'settings'

get '/projects/:id/users', to: 'projects#users'
get '/projects/:id/groups', to: 'projects#groups'
get '/projects/:id/project_tags', to: 'projects#project_tags'
get 'users'
get 'groups'
get 'project_tags'

post '/projects/:id/add_group', to: 'projects#add_group'
delete '/projects/:id/delete_group/:group_id', to: 'projects#delete_group'
delete '/projects/:id/delete_image', to: 'projects#delete_image'
post 'add_group'
delete 'delete_group/:group_id', action: 'delete_group'
delete 'delete_image'
end
end

get '/groups_by_name', to: 'groups#search_by_name'

Expand Down

0 comments on commit 7c9e000

Please sign in to comment.