diff options
| author | Xinhui | 2017-08-18 14:35:30 +0200 |
|---|---|---|
| committer | Xinhui | 2017-08-18 14:38:09 +0200 |
| commit | dba01bf83eed749a96a55bb751245568cd476152 (patch) | |
| tree | 254b6b8aa22847fb3b2fc8c73bba522417b5744f /config | |
| parent | 30b746b8b238c9ba22e972556e94950adb3f5e8b (diff) | |
| download | chouette-core-dba01bf83eed749a96a55bb751245568cd476152.tar.bz2 | |
Refactoring api_keys views with table_builder
Diffstat (limited to 'config')
| -rw-r--r-- | config/locales/api_keys.en.yml | 6 | ||||
| -rw-r--r-- | config/locales/api_keys.fr.yml | 2 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/config/locales/api_keys.en.yml b/config/locales/api_keys.en.yml index 221fa6eef..1480c8e55 100644 --- a/config/locales/api_keys.en.yml +++ b/config/locales/api_keys.en.yml @@ -7,12 +7,14 @@ en: destroy_confirm: "Are you sure you want destroy this api key?" show: title: "Api key" + index: + title: Api key new: title: "Add a new api key" edit: title: "Update api key" - activerecord: - models: + activerecord: + models: api_key: "Api Key" attributes: api_key: diff --git a/config/locales/api_keys.fr.yml b/config/locales/api_keys.fr.yml index 445367c72..20af91a49 100644 --- a/config/locales/api_keys.fr.yml +++ b/config/locales/api_keys.fr.yml @@ -7,6 +7,8 @@ fr: destroy_confirm: "Etes vous sûr de vouloir détruire la clé d'accès API ?" show: title: "Clé d'accès API" + index: + title: Clé d'accès API new: title: "Ajouter une clé d'accès API" edit: diff --git a/config/routes.rb b/config/routes.rb index 0ed401cf5..ea0eefd06 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -56,6 +56,7 @@ ChouetteIhm::Application.routes.draw do end resource :organisation, :only => [:show, :edit, :update] do + resources :api_keys resources :users resources :rule_parameter_sets end @@ -78,7 +79,6 @@ ChouetteIhm::Application.routes.draw do end resources :referentials, except: :index do - resources :api_keys resources :autocomplete_stop_areas, only: [:show, :index] do get 'around', on: :member end |
