Skip to content

Commit

Permalink
Merge pull request #27931 from code-dot-org/delete-projects-angular
Browse files Browse the repository at this point in the history
Delete projects angular
  • Loading branch information
Madelyn Kasula committed Apr 8, 2019
2 parents 7b7182b + 1fc2478 commit 2937e5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions dashboard/app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,6 @@ def redirect_legacy
render layout: nil
end

GALLERY_PER_PAGE = 5

def angular
if current_user
@gallery_activities =
current_user.gallery_activities.order(id: :desc).page(params[:page]).per(GALLERY_PER_PAGE)
end
render template: "projects/projects", layout: nil
end

def load
if current_user.try(:admin)
redirect_to '/', flash: {alert: 'Labs not allowed for admins.'}
Expand Down
1 change: 0 additions & 1 deletion dashboard/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@
get "/#{key}/:channel_id/export_create_channel", to: 'projects#export_create_channel', key: key.to_s, as: "#{key}_project_export_create_channel"
get "/#{key}/:channel_id/export_config", to: 'projects#export_config', key: key.to_s, as: "#{key}_project_export_config"
end
get '/angular', to: 'projects#angular'
end
end

Expand Down

0 comments on commit 2937e5b

Please sign in to comment.