mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Merge branch 'master' into refactor-devise-integration
# Conflicts: # app/controllers/registrant/contacts_controller.rb # config/routes.rb
This commit is contained in:
commit
e5cdb2e8db
79 changed files with 804 additions and 862 deletions
|
@ -2,7 +2,7 @@ Rails.application.configure do
|
|||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
config.cache_classes = true
|
||||
config.eager_load = true
|
||||
config.eager_load = false
|
||||
|
||||
config.serve_static_files = true
|
||||
config.static_cache_control = 'public, max-age=3600'
|
||||
|
@ -25,4 +25,4 @@ Rails.application.configure do
|
|||
config.cache_store = :memory_store
|
||||
end
|
||||
|
||||
Que.mode = :sync
|
||||
Que.mode = :sync
|
||||
|
|
18
config/locales/registrant/contacts.en.yml
Normal file
18
config/locales/registrant/contacts.en.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
en:
|
||||
registrant:
|
||||
contacts:
|
||||
show:
|
||||
general:
|
||||
header: General
|
||||
|
||||
address:
|
||||
header: Address
|
||||
|
||||
statuses:
|
||||
header: Statuses
|
||||
status: Status
|
||||
notes: Note
|
||||
|
||||
domains:
|
||||
header: Domains
|
||||
all: All roles
|
|
@ -3,3 +3,4 @@ en:
|
|||
nameservers:
|
||||
update:
|
||||
replaced: Nameserver have been successfully replaced
|
||||
affected_domains: Affected domains
|
||||
|
|
|
@ -108,6 +108,8 @@ Rails.application.routes.draw do
|
|||
post 'id' => 'sessions#id'
|
||||
end
|
||||
|
||||
resources :registrars, only: :show
|
||||
resources :contacts, only: :show
|
||||
resources :domains, only: %i[index show] do
|
||||
collection do
|
||||
get :download_list
|
||||
|
@ -118,30 +120,22 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resources :domain_update_confirms
|
||||
resources :domain_delete_confirms
|
||||
resources :domains do
|
||||
resources :registrant_verifications
|
||||
collection do
|
||||
post 'update', as: 'update'
|
||||
post 'destroy', as: 'destroy'
|
||||
get 'renew'
|
||||
get 'edit'
|
||||
get 'info'
|
||||
get 'delete'
|
||||
end
|
||||
end
|
||||
resources :domain_update_confirms, only: %i[show update]
|
||||
resources :domain_delete_confirms, only: %i[show update]
|
||||
|
||||
resources :registrars do
|
||||
collection do
|
||||
get :search
|
||||
end
|
||||
end
|
||||
devise_scope :user do
|
||||
get 'login' => 'sessions#login'
|
||||
get 'login/mid' => 'sessions#login_mid'
|
||||
post 'login/mid' => 'sessions#mid'
|
||||
post 'login/mid_status' => 'sessions#mid_status'
|
||||
|
||||
resources :contacts
|
||||
post 'sessions' => 'sessions#create'
|
||||
post 'mid' => 'sessions#mid'
|
||||
post 'id' => 'sessions#id'
|
||||
get 'logout' => '/devise/sessions#destroy'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# ADMIN ROUTES
|
||||
namespace :admin do
|
||||
root 'dashboard#show'
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Spring.watch 'config/application.yml'
|
Loading…
Add table
Add a link
Reference in a new issue