\ No newline at end of file
diff --git a/app/views/admin/campaigns/payments.html.erb b/app/views/admin/campaigns/payments.html.erb
index 726ee0af..5fd5e5ae 100644
--- a/app/views/admin/campaigns/payments.html.erb
+++ b/app/views/admin/campaigns/payments.html.erb
@@ -66,7 +66,7 @@
<% if ['authorized', 'charged'].include? payment.status %>Refund<% end %>
diff --git a/config/routes.rb b/config/routes.rb
index 48144a31..dd10b0ae 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -3,40 +3,43 @@
mount Ckeditor::Engine => '/ckeditor'
# PAGES
- root to: 'pages#index'
+ root to: 'pages#index'
# USERS
devise_for :users, { path: 'account' }
devise_scope :user do
- match '/user/settings', to: 'devise/registrations#edit', as: :user_settings
+ match '/user/settings', to: 'devise/registrations#edit', as: :user_settings
end
# ADMIN
- get '/admin', to: 'admin#admin_dashboard', as: :admin_dashboard
- match '/admin/homepage', to: 'admin#admin_homepage', as: :admin_homepage
- match '/admin/site-settings', to: 'admin#admin_site_settings', as: :admin_site_settings
- match '/admin/customize', to: 'admin#admin_customize', as: :admin_customize
+ get '/admin', to: 'admin#admin_dashboard', as: :admin_dashboard
+ match '/admin/homepage', to: 'admin#admin_homepage', as: :admin_homepage
+ match '/admin/site-settings', to: 'admin#admin_site_settings', as: :admin_site_settings
+ match '/admin/customize', to: 'admin#admin_customize', as: :admin_customize
namespace :admin do
resources :campaigns
- post '/payments/:id/refund', to: 'payments#refund_payment', as: :admin_payment_refund
+ post '/payments/:id/refund', to: 'payments#refund_payment', as: :admin_payment_refund
end
- match '/admin/campaigns/:id/copy', to: 'admin/campaigns#copy', as: :admin_campaigns_copy
- match '/admin/campaigns/:id/payments', to: 'admin/campaigns#payments', as: :admin_campaigns_payments
- match '/admin/processor-setup', to: 'admin#admin_processor_setup', as: :admin_processor_setup
- post '/admin/bank-setup', to: 'admin#create_admin_bank_account', as: :create_admin_bank_account
- get '/admin/bank-setup', to: 'admin#admin_bank_account', as: :admin_bank_account
- delete '/admin/bank-setup', to: 'admin#delete_admin_bank_account', as: :delete_admin_bank_account
- match '/admin/notification-setup', to: 'admin#admin_notification_setup', as: :admin_notification_setup
- match '/ajax/verify', to: 'admin#ajax_verify', as: :ajax_verify
+ match '/admin/campaigns/:id/copy', to: 'admin/campaigns#copy', as: :admin_campaigns_copy
+
+ match '/admin/campaigns/:id/payments', to: 'admin/campaigns#payments', as: :admin_campaigns_payments
+ post '/admin/campaigns/:id/payments/:payment_id', to: 'admin/payments#update_payment', as: :admin_payment_update
+ match '/admin/campaigns/:id/payments/:payment_id', to: 'admin/campaigns#edit_payment', as: :admin_payment
+ match '/admin/processor-setup', to: 'admin#admin_processor_setup', as: :admin_processor_setup
+ post '/admin/bank-setup', to: 'admin#create_admin_bank_account', as: :create_admin_bank_account
+ get '/admin/bank-setup', to: 'admin#admin_bank_account', as: :admin_bank_account
+ delete '/admin/bank-setup', to: 'admin#delete_admin_bank_account', as: :delete_admin_bank_account
+ match '/admin/notification-setup', to: 'admin#admin_notification_setup', as: :admin_notification_setup
+ match '/ajax/verify', to: 'admin#ajax_verify', as: :ajax_verify
# CAMPAIGNS
- match '/:id/checkout/amount', to: 'campaigns#checkout_amount', as: :checkout_amount
- match '/:id/checkout/payment', to: 'campaigns#checkout_payment', as: :checkout_payment
- match '/:id/checkout/process', to: 'campaigns#checkout_process', as: :checkout_process
- match '/:id/checkout/confirmation', to: 'campaigns#checkout_confirmation', as: :checkout_confirmation
- post '/:id/checkout/error', to: 'campaigns#checkout_error', as: :checkout_error
- match '/:id', to: 'campaigns#home', as: :campaign_home
+ match '/:id/checkout/amount', to: 'campaigns#checkout_amount', as: :checkout_amount
+ match '/:id/checkout/payment', to: 'campaigns#checkout_payment', as: :checkout_payment
+ match '/:id/checkout/process', to: 'campaigns#checkout_process', as: :checkout_process
+ match '/:id/checkout/confirmation', to: 'campaigns#checkout_confirmation', as: :checkout_confirmation
+ post '/:id/checkout/error', to: 'campaigns#checkout_error', as: :checkout_error
+ match '/:id', to: 'campaigns#home', as: :campaign_home
namespace :api, defaults: {format: 'json'} do