carnival 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/stylesheets/carnival/main.css +73 -0
  3. data/app/controllers/carnival/base_admin_controller.rb +4 -9
  4. data/app/controllers/carnival/sessions_controller.rb +4 -3
  5. data/app/datatable/carnival/generic_datatable.rb +1 -1
  6. data/app/presenters/carnival/admin_user_notification_presenter.rb +0 -56
  7. data/app/presenters/carnival/admin_user_presenter.rb +1 -23
  8. data/app/presenters/carnival/base_admin_presenter.rb +46 -29
  9. data/app/views/{devise → admin_users}/confirmations/new.html.erb +0 -0
  10. data/app/views/{devise → admin_users}/mailer/confirmation_instructions.html.erb +0 -0
  11. data/app/views/{devise → admin_users}/mailer/reset_password_instructions.html.erb +0 -0
  12. data/app/views/{devise → admin_users}/mailer/unlock_instructions.html.erb +0 -0
  13. data/app/views/{devise → admin_users}/passwords/edit.html.erb +0 -0
  14. data/app/views/{devise → admin_users}/passwords/new.html.erb +0 -0
  15. data/app/views/{devise → admin_users}/registrations/edit.html.erb +0 -0
  16. data/app/views/{devise → admin_users}/registrations/new.html.erb +0 -0
  17. data/app/views/admin_users/sessions/new.html.haml +13 -0
  18. data/app/views/admin_users/shared/_links.html.haml +14 -0
  19. data/app/views/{devise → admin_users}/unlocks/new.html.erb +0 -0
  20. data/app/views/carnival/shared/form/show.html.haml +2 -2
  21. data/app/views/layouts/carnival/_menu.html.haml +24 -23
  22. data/app/views/layouts/carnival/_notifications_list.html.haml +2 -2
  23. data/app/views/layouts/carnival/admin.html.haml +1 -1
  24. data/config/initializers/carnival_initializer.rb +1 -0
  25. data/config/initializers/devise.rb +1 -1
  26. data/config/locales/carnival.pt.yml +2 -1
  27. data/config/routes.rb +2 -3
  28. data/lib/carnival/routes.rb +6 -6
  29. data/lib/carnival/version.rb +1 -1
  30. data/lib/generators/carnival/install_generator.rb +1 -1
  31. data/test/dummy/config/initializers/carnival_initializer.rb +41 -0
  32. data/test/dummy/config/locales/carnival.en.yml +1 -0
  33. data/test/dummy/config/locales/carnival.pt.yml +232 -0
  34. data/test/dummy/config/locales/devise.en.yml +59 -0
  35. data/test/dummy/config/locales/devise.pt.yml +59 -0
  36. data/test/dummy/config/routes.rb +2 -3
  37. data/test/dummy/db/development.sqlite3 +0 -0
  38. data/test/dummy/log/development.log +12727 -18
  39. data/test/dummy/tmp/cache/assets/development/sprockets/02b691bcf7570e21acab45d320ac92cf +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sprockets/0f7b5da581fb3730800607447951008a +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/141987f5d019e60604cd75d2e340942f +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/39d34c0caaa6f36d684fac1898a7f88f +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/3a2fdd82041ab4b5ce8a082ec9b270fb +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/3d8100b6e405407290dcf994ef05e0b7 +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/577f4d9c0b4703cbfffd7159a232e60e +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/5ff6c7a42ff7a4d062640d9211b42275 +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/604d964a22a33e7a1dc917eb10328fb6 +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/6d806eaa317f200bbf2832a0abf1c1cc +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/9658141bfa282274f1da9155c32ae206 +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/e0352d0f97751491adbe6a94832772af +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/e9c81ca91323dab8977ffd8a459cab06 +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/f5c9348795319821f3309d4e03bb9fdb +0 -0
  53. metadata +49 -29
  54. data/app/views/carnival/admin_users/_form.html.haml +0 -21
  55. data/app/views/carnival/admin_users/edit.html.haml +0 -3
  56. data/app/views/carnival/admin_users/new.html.haml +0 -4
  57. data/app/views/carnival/admin_users/show.html.haml +0 -14
  58. data/app/views/devise/sessions/new.html.erb +0 -19
  59. data/app/views/devise/shared/_links.erb +0 -25
  60. data/test/dummy/tmp/pids/server.pid +0 -1
@@ -1,30 +1,31 @@
1
1
  - menus = Carnival::Config::menu.clone
2
- .menu.full
3
- %ul.menu
4
- %li{:style => "border-top:none;"}
5
- %span.arrow
6
- %ul.dropdown_main_menu
7
- %li.dashboard
8
- = link_to t("menu.dashboard"), admin_root_url, {:class => " btn_usuario sublevel"}
9
- %li.administracao
10
- = link_to t("menu.admin"), "#", {:class => " btn_usuario sublevel"}
11
- %ul.dropdown_main_menu_sublevel
12
- %li
13
- = link_to t('menu.admin_user'), admin_admin_users_path, {:class => "#{set_resource_actived_if_current(admin_admin_users_path)}"}
14
- - menus[:admin][:subs].each do |sub|
15
- %li
16
- = link_to t(sub[:label]), sub[:link], {:class => "#{set_resource_actived_if_current(sub[:link])} #{sub[:class]}"}
17
- - menus.delete :admin
18
- - menus.each do |key, menu|
19
- %li{:class =>key}
20
- = link_to t(menu[:label]), menu[:link], {:class => " btn_usuario sublevel"}
2
+ - if current_admin_user.present?
3
+ .menu.full
4
+ %ul.menu
5
+ %li{:style => "border-top:none;"}
6
+ %span.arrow
7
+ %ul.dropdown_main_menu
8
+ %li.dashboard
9
+ = link_to t("menu.dashboard"), admin_root_url, {:class => " btn_usuario sublevel"}
10
+ %li.administracao
11
+ = link_to t("menu.admin"), "#", {:class => " btn_usuario sublevel"}
21
12
  %ul.dropdown_main_menu_sublevel
22
- - menu[:subs].each do |sub|
13
+ %li
14
+ = link_to t('menu.admin_user'), carnival_admin_users_path, {:class => "#{set_resource_actived_if_current(carnival_admin_users_path)}"}
15
+ - menus[:admin][:subs].each do |sub|
23
16
  %li
24
17
  = link_to t(sub[:label]), sub[:link], {:class => "#{set_resource_actived_if_current(sub[:link])} #{sub[:class]}"}
18
+ - menus.delete :admin
19
+ - menus.each do |key, menu|
20
+ %li{:class =>key}
21
+ = link_to t(menu[:label]), menu[:link], {:class => " btn_usuario sublevel"}
22
+ %ul.dropdown_main_menu_sublevel
23
+ - menu[:subs].each do |sub|
24
+ %li
25
+ = link_to t(sub[:label]), sub[:link], {:class => "#{set_resource_actived_if_current(sub[:link])} #{sub[:class]}"}
25
26
 
26
- %li.minify
27
- %span="Minimizar"
27
+ %li.minify
28
+ %span="Minimizar"
28
29
 
29
30
 
30
- .menu.short
31
+ .menu.short
@@ -17,9 +17,9 @@
17
17
  %li{:class => "#{(n.read)? 'read' : 'unread'}"}
18
18
  %span.title="#{n.notification.title}:"
19
19
  %br
20
- %span.message= link_to n.notification.message.html_safe, admin_read_admin_user_notification_path(n)
20
+ %span.message= link_to n.notification.message.html_safe, carnival_read_admin_user_notification_path(n)
21
21
  .view-all
22
- %span.message= link_to "Ver todas notificações", admin_admin_user_notifications_path
22
+ %span.message= link_to "Ver todas notificações", carnival_admin_user_notifications_path
23
23
 
24
24
  :javascript
25
25
  $(document).ready(function(){
@@ -26,7 +26,7 @@
26
26
  %div.safe-guard-notification
27
27
  = render '/layouts/carnival/notifications_list'
28
28
  %div.salute
29
- = link_to edit_admin_admin_user_path(:id => current_admin_user.id) do
29
+ = link_to edit_carnival_admin_user_path(:id => current_admin_user.id) do
30
30
  .email
31
31
  = current_admin_user.email
32
32
  %figure
@@ -39,3 +39,4 @@ Carnival::Config.menu = {
39
39
  ]
40
40
  }
41
41
  }
42
+
@@ -200,7 +200,7 @@ Devise.setup do |config|
200
200
  # Turn scoped views on. Before rendering "sessions/new", it will first check for
201
201
  # "users/sessions/new". It's turned off by default because it's slower if you
202
202
  # are using only default views.
203
- # config.scoped_views = false
203
+ config.scoped_views = true
204
204
 
205
205
  # Configure the default scope given to Warden. By default it's the first
206
206
  # devise role declared in your routes (usually :user).
@@ -184,12 +184,13 @@ pt:
184
184
  id: ID
185
185
 
186
186
  admin_user:
187
+ name: Nome
187
188
  edit: Editando usuário administrador
188
189
  new: Novo usuário administrador
189
190
  lista: Usuários administradores
190
191
  email: E-mail
191
192
  admin: Administrador
192
- account_name: Conta
193
+ account_name: Contaform
193
194
  notification: Notificação
194
195
  current_sign_in_at: Acesso atual em
195
196
  last_sign_in_at: Último acesso em
data/config/routes.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  Carnival::Engine.routes.draw do
2
- mount_my_engine_at 'admin'
3
- # resources :admin_user_notifications, controller: "carnival/admin_user_notifications", :as => :admin_admin_user_notifications
4
- # resources :admin_users, controller: "carnival/admin_users", :as => :admin_admin_users
2
+ # resources :admin_user_notifications, controller: "carnival/admin_user_notifications", :as => :carnival_admin_user_notifications
3
+ # resources :admin_users, controller: "carnival/admin_users", :as => :carnival_admin_users
5
4
  # devise_for :admin_users, :class_name => "Carnival::AdminUser", :path => "carnival/sessions", :controllers => { :sessions => "carnival/sessions", :omniauth_callbacks => "carnival/omniauth_callbacks" }
6
5
  # get 'carnival/admin_user_notification/read/:id' => 'carnival/admin_user_notifications#read', as: :admin_read_admin_user_notification
7
6
  # root to: "carnival/admin_users#index", :as => :admin_root
@@ -1,12 +1,12 @@
1
1
  module ActionDispatch::Routing
2
2
  class Mapper
3
- def mount_my_engine_at(mount_location)
3
+ def mount_carnival_at(mount_location)
4
4
  scope mount_location do
5
- get 'carnival/admin_user_notification/read/:id' => 'carnival/admin_user_notifications#read', as: :admin_read_admin_user_notification
6
- resources :admin_user_notifications, controller: "carnival/admin_user_notifications", :as => :admin_admin_user_notifications
7
- resources :admin_users, controller: "carnival/admin_users", :as => :admin_admin_users
8
- devise_for :admin_users, :class_name => "Carnival::AdminUser", :path => "carnival/sessions", :controllers => { :sessions => "carnival/sessions", :omniauth_callbacks => "carnival/omniauth_callbacks" }
9
- root to: "carnival/admin_users#index", :as => :admin_root
5
+ get "#{mount_location}/admin_user_notification/read/:id" => 'carnival/admin_user_notifications#read', as: :carnival_read_admin_user_notification
6
+ resources :admin_user_notifications, controller: "carnival/admin_user_notifications", :as => :carnival_admin_user_notifications
7
+ resources :admin_users, controller: "carnival/admin_users", :as => :carnival_admin_users
8
+ devise_for :admin_users, :class_name => "Carnival::AdminUser", :path => "#{mount_location}/sessions", :controllers => { :sessions => "carnival/sessions", :omniauth_callbacks => "#{mount_location}/omniauth_callbacks" }
9
+ root to: "#{mount_location}/admin_users#index", :as => :admin_root
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Carnival
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -5,7 +5,7 @@ module Carnival
5
5
  source_root File.expand_path("../templates", __FILE__)
6
6
 
7
7
  def install
8
- route "mount_my_engine_at 'admin'"
8
+ route "mount_carnival_at 'admin'"
9
9
  rake 'carnival_engine:install:migrations'
10
10
  template "../../../../config/locales/carnival.en.yml", "config/locales/carnival.en.yml"
11
11
  template "../../../../config/locales/carnival.pt.yml", "config/locales/carnival.pt.yml"
@@ -0,0 +1,41 @@
1
+ Carnival::Config.menu = {
2
+ :admin => {
3
+ :label => "aaa",
4
+ :class => "ssss",
5
+ :link => "ddd",
6
+ :subs => [
7
+ {
8
+ :label => "menu.testes",
9
+ :class => "tst",
10
+ :link => "/admin/testes"
11
+ },
12
+ {
13
+ :label => "55555",
14
+ :class => "66666",
15
+ :link => "777777"
16
+ }
17
+ ]
18
+ },
19
+ :locations => {
20
+ :label => "menu.locations",
21
+ :class => "",
22
+ :link => "#",
23
+ :subs => [
24
+ {
25
+ :label => "menu.countries",
26
+ :class => "countries",
27
+ :link => "/admin/countries"
28
+ },
29
+ {
30
+ :label => "menu.states",
31
+ :class => "states",
32
+ :link => "/admin/states"
33
+ },
34
+ {
35
+ :label => "menu.cities",
36
+ :class => "cities",
37
+ :link => "/admin/cities"
38
+ }
39
+ ]
40
+ }
41
+ }
@@ -0,0 +1 @@
1
+ en:
@@ -0,0 +1,232 @@
1
+ pt:
2
+ menu:
3
+ dashboard: Dashboard
4
+ admin_user: Usuários administradores
5
+ messages:
6
+ created: Criado com sucesso!
7
+ updated: Alterado com sucesso!
8
+ select: Selecione
9
+ download_as_csv: Baixar como CSV
10
+ download_as_pdf: Baixar como PDF
11
+ advanced_search: Busca avançada
12
+ select_an_option: Selecione uma opção
13
+ without_country: Sem país
14
+ without_state: Sem estado
15
+ without_city: Sem cidade
16
+ search: Busca
17
+ clear: Limpar
18
+ login: Entrar
19
+ logout: Sair
20
+ edit: Editar
21
+ send: Enviar
22
+ create: Criar
23
+ delete: Apagar
24
+ remove: Remover
25
+ destroy: Apagar
26
+ details: Detalhes
27
+ view: Ver
28
+ please_wait: Aguarde...
29
+ are_you_sure: Você tem certeza que deseja apagar?
30
+ are_you_sure_block: Você tem certeza que deseja bloquear?
31
+ are_you_sure_unblock: Você tem certeza que deseja desbloquear?
32
+ select: Selecione
33
+ search: Buscar
34
+ previous: Anterior
35
+ next: Próxima
36
+ update: Atualizar
37
+ new: Adicionar
38
+ back: Voltar
39
+ save: Salvar
40
+ yyes: Sim
41
+ nno: Não
42
+ from: De
43
+ to: Até
44
+ master_user: SafeGuard Admin
45
+ blocked: Bloqueado
46
+ unblocked: Desbloqueado
47
+ was: foi
48
+ of: de
49
+ by: por
50
+ at: às
51
+ new_support: Abrir solicitação de suporte
52
+ batch_operations: Operações em Lote
53
+ data_tables:
54
+ first: Primeira
55
+ last: Última
56
+ next: Próxima
57
+ previous: Anterior
58
+ row_counter: Mostrando _START_ a _END_ de _TOTAL_ entradas
59
+ row_counter_empty: Mostrando de 0 até 0 de 0 registros
60
+ table_empty: Não há registros para exibir
61
+ rows_filtered: (filtrando de _MAX_)
62
+ rows_postfix:
63
+ rows_per_page: Exibir _MENU_ registros
64
+ processing: Processando
65
+ search:
66
+ zero_records: Não há registros para exibir
67
+ date_filter:
68
+ today: Hoje
69
+ yesterday: Ontem
70
+ this_week: Esta semana
71
+ last_week: Semana passada
72
+ this_month: Este mês
73
+ last_month: Mês passado
74
+ this_year: Este ano
75
+ last_year: Ano passado
76
+
77
+
78
+
79
+ # formatos de data e hora
80
+ date:
81
+ formats:
82
+ default: "%d/%m/%Y"
83
+ short: "%d de %B"
84
+ long: "%d de %B de %Y"
85
+ only_day: "%d"
86
+
87
+ day_names: [Domingo, Segunda, Terça, Quarta, Quinta, Sexta, Sábado]
88
+ abbr_day_names: [Dom, Seg, Ter, Qua, Qui, Sex, Sáb]
89
+ month_names: [~, Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto, Setembro, Outubro, Novembro, Dezembro]
90
+ abbr_month_names: [~, Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov, Dez]
91
+ order:
92
+ - :day
93
+ - :month
94
+ - :year
95
+
96
+ time:
97
+ formats:
98
+ default: "%A, %d de %B de %Y, %H:%M hs"
99
+ time: "%H:%M hs"
100
+ short: "%d/%m, %H:%M hs"
101
+ long: "%A, %d de %B de %Y, %H:%M hs"
102
+ only_second: "%S"
103
+ datetime:
104
+ formats:
105
+ default: "%Y-%m-%dT%H:%M:%S%Z"
106
+ am: ''
107
+ pm: ''
108
+
109
+ # date helper distanci em palavras
110
+ datetime:
111
+ distance_in_words:
112
+ half_a_minute: 'meio minuto'
113
+ less_than_x_seconds:
114
+ one: 'menos de 1 segundo'
115
+ other: 'menos de {{count}} segundos'
116
+
117
+ x_seconds:
118
+ one: '1 segundo'
119
+ other: '{{count}} segundos'
120
+
121
+ less_than_x_minutes:
122
+ one: 'menos de um minuto'
123
+ other: 'menos de {{count}} minutos'
124
+
125
+ x_minutes:
126
+ one: '1 minuto'
127
+ other: '{{count}} minutos'
128
+
129
+ about_x_hours:
130
+ one: 'aproximadamente 1 hora'
131
+ other: 'aproximadamente {{count}} horas'
132
+
133
+ x_days:
134
+ one: '1 dia'
135
+ other: '{{count}} dias'
136
+
137
+ about_x_months:
138
+ one: 'aproximadamente 1 mês'
139
+ other: 'aproximadamente {{count}} meses'
140
+
141
+ x_months:
142
+ one: '1 mês'
143
+ other: '{{count}} meses'
144
+
145
+ about_x_years:
146
+ one: 'aproximadamente 1 ano'
147
+ other: 'aproximadamente {{count}} anos'
148
+
149
+ over_x_years:
150
+ one: 'mais de 1 ano'
151
+ other: 'mais de {{count}} anos'
152
+
153
+ # numeros
154
+ number:
155
+ format:
156
+ precision: 3
157
+ separator: ','
158
+ delimiter: '.'
159
+ currency:
160
+ format:
161
+ unit: 'R$'
162
+ precision: 2
163
+ format: '%u %n'
164
+ separator: ','
165
+ delimiter: '.'
166
+ percentage:
167
+ format:
168
+ delimiter: '.'
169
+ precision:
170
+ format:
171
+ delimiter: '.'
172
+ human:
173
+ format:
174
+ precision: 1
175
+ delimiter: '.'
176
+ support:
177
+ array:
178
+ sentence_connector: "e"
179
+ skip_last_comma: true
180
+
181
+ default_columns: &default_columns
182
+ created_at: Criado em
183
+ updated_at: Atualizado em
184
+ id: ID
185
+
186
+ admin_user:
187
+ edit: Editando usuário administrador
188
+ new: Novo usuário administrador
189
+ lista: Usuários administradores
190
+
191
+ # Active Record
192
+ activerecord:
193
+ errors:
194
+ template:
195
+ header:
196
+ one: "Não pôde ser salvo: 1 erro"
197
+ other: "Não pôde ser salvo: {{count}} erros."
198
+ body: "Por favor, cheque os seguintes campos:"
199
+ messages:
200
+ inclusion: "não está incluso na lista"
201
+ exclusion: "não está disponível"
202
+ invalid: "não é válido"
203
+ confirmation: "não bate com a confirmação"
204
+ accepted: "precisa ser aceito"
205
+ empty: "não pode ser vazio"
206
+ blank: "não pode ser vazio"
207
+ too_long: "é muito longo (não mais do que {{count}} caracteres)"
208
+ too_short: "é muito curto (não menos do que {{count}} caracteres)"
209
+ wrong_length: "não é do tamanho correto (precisa ter {{count}} caracteres)"
210
+ taken: "não está disponível"
211
+ not_a_number: "não é um número"
212
+ greater_than: "precisa ser maior do que {{count}}"
213
+ greater_than_or_equal_to: "precisa ser maior ou igual a {{count}}"
214
+ equal_to: "precisa ser igual a {{count}}"
215
+ less_than: "precisa ser menor do que {{count}}"
216
+ less_than_or_equal_to: "precisa ser menor ou igual a {{count}}"
217
+ odd: "precisa ser ímpar"
218
+ even: "precisa ser par"
219
+ models:
220
+ admin_user: Usuário Administrador
221
+ attributes:
222
+ carnival/admin_user:
223
+ name: Nome
224
+ email: E-mail
225
+ admin: Administrador
226
+ account_name: Conta
227
+ notification: Notificação
228
+ current_sign_in_at: Acesso atual em
229
+ last_sign_in_at: Último acesso em
230
+ sign_in_count: Total de acessos
231
+ <<: *default_columns
232
+
@@ -0,0 +1,59 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your account was successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid email or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account will be locked."
15
+ not_found_in_database: "Invalid email or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your account before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock Instructions"
26
+ omniauth_callbacks:
27
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
+ success: "Successfully authenticated from %{kind} account."
29
+ passwords:
30
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
31
+ send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
32
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
33
+ updated: "Your password was changed successfully. You are now signed in."
34
+ updated_not_active: "Your password was changed successfully."
35
+ registrations:
36
+ destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
37
+ signed_up: "Welcome! You have signed up successfully."
38
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
41
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
42
+ updated: "You updated your account successfully."
43
+ sessions:
44
+ signed_in: "Signed in successfully."
45
+ signed_out: "Signed out successfully."
46
+ unlocks:
47
+ send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
48
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
49
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
50
+ errors:
51
+ messages:
52
+ already_confirmed: "was already confirmed, please try signing in"
53
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
54
+ expired: "has expired, please request a new one"
55
+ not_found: "not found"
56
+ not_locked: "was not locked"
57
+ not_saved:
58
+ one: "1 error prohibited this %{resource} from being saved:"
59
+ other: "%{count} errors prohibited this %{resource} from being saved:"