activeadmin 1.0.0.pre1 → 1.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +18 -16
  3. data/CHANGELOG.md +18 -1013
  4. data/Gemfile +18 -11
  5. data/LICENSE +0 -5
  6. data/README.md +0 -2
  7. data/activeadmin.gemspec +3 -1
  8. data/app/assets/javascripts/active_admin/application.js.coffee +8 -3
  9. data/app/assets/javascripts/active_admin/base.js.coffee +1 -6
  10. data/app/assets/javascripts/active_admin/jquery_ui.js.erb +11 -0
  11. data/app/assets/javascripts/active_admin/lib/flash.js.coffee +1 -1
  12. data/app/assets/javascripts/active_admin/lib/modal_dialog.js.coffee +11 -3
  13. data/app/assets/javascripts/active_admin/lib/per_page.js.coffee +5 -1
  14. data/app/assets/stylesheets/active_admin/_base.scss +1 -4
  15. data/app/assets/stylesheets/active_admin/_forms.scss +13 -8
  16. data/app/assets/stylesheets/active_admin/components/_buttons.scss +0 -5
  17. data/app/assets/stylesheets/active_admin/mixins/_all.scss +0 -1
  18. data/app/assets/stylesheets/active_admin/mixins/_sections.scss +0 -1
  19. data/app/assets/stylesheets/active_admin/mixins/_typography.scss +1 -1
  20. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +1 -1
  21. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -5
  22. data/app/views/layouts/active_admin_logged_out.html.erb +4 -0
  23. data/config/locales/ar.yml +14 -2
  24. data/config/locales/de-CH.yml +2 -0
  25. data/config/locales/de.yml +15 -0
  26. data/config/locales/en.yml +10 -2
  27. data/config/locales/es.yml +26 -4
  28. data/config/locales/fr.yml +5 -0
  29. data/config/locales/id.yml +135 -0
  30. data/config/locales/ja.yml +21 -3
  31. data/config/locales/ko.yml +66 -36
  32. data/config/locales/nl.yml +14 -1
  33. data/config/locales/pt-BR.yml +11 -0
  34. data/config/locales/ru.yml +15 -1
  35. data/config/locales/sv-SE.yml +45 -5
  36. data/config/locales/uk.yml +16 -4
  37. data/config/locales/zh-CN.yml +5 -0
  38. data/config/locales/zh-TW.yml +32 -1
  39. data/docs/0-installation.md +7 -1
  40. data/docs/1-general-configuration.md +9 -0
  41. data/docs/10-custom-pages.md +10 -0
  42. data/docs/12-arbre-components.md +1 -1
  43. data/docs/14-gotchas.md +2 -2
  44. data/docs/2-resource-customization.md +5 -3
  45. data/docs/3-index-pages.md +7 -0
  46. data/docs/3-index-pages/index-as-table.md +4 -0
  47. data/docs/6-show-pages.md +1 -1
  48. data/docs/7-sidebars.md +8 -0
  49. data/features/index/batch_actions.feature +21 -2
  50. data/features/index/pagination.feature +16 -12
  51. data/features/meta_tags.feature +21 -0
  52. data/features/registering_assets.feature +1 -2
  53. data/features/show/columns.feature +40 -0
  54. data/features/show/default_content.feature +2 -1
  55. data/features/step_definitions/asset_steps.rb +3 -3
  56. data/features/step_definitions/batch_action_steps.rb +11 -2
  57. data/features/step_definitions/column_steps.rb +8 -0
  58. data/features/step_definitions/configuration_steps.rb +2 -2
  59. data/features/step_definitions/factory_steps.rb +3 -2
  60. data/features/step_definitions/meta_tag_steps.rb +3 -0
  61. data/features/step_definitions/pagination_steps.rb +8 -0
  62. data/features/step_definitions/table_steps.rb +2 -1
  63. data/lib/active_admin.rb +3 -3
  64. data/lib/active_admin/application.rb +66 -16
  65. data/lib/active_admin/batch_actions.rb +0 -1
  66. data/lib/active_admin/batch_actions/controller.rb +2 -2
  67. data/lib/active_admin/batch_actions/resource_extension.rb +3 -1
  68. data/lib/active_admin/callbacks.rb +1 -1
  69. data/lib/active_admin/csv_builder.rb +2 -2
  70. data/lib/active_admin/dependency.rb +18 -16
  71. data/lib/active_admin/devise.rb +1 -1
  72. data/lib/active_admin/dsl.rb +1 -1
  73. data/lib/active_admin/event.rb +8 -17
  74. data/lib/active_admin/filters/active.rb +29 -0
  75. data/lib/active_admin/filters/forms.rb +6 -1
  76. data/lib/active_admin/filters/humanized.rb +68 -0
  77. data/lib/active_admin/filters/resource_extension.rb +48 -1
  78. data/lib/active_admin/form_builder.rb +4 -4
  79. data/lib/active_admin/generators/boilerplate.rb +37 -0
  80. data/lib/active_admin/helpers/routes/url_helpers.rb +1 -1
  81. data/lib/active_admin/inputs.rb +1 -0
  82. data/lib/active_admin/inputs/filters/date_picker_input.rb +13 -0
  83. data/lib/active_admin/inputs/filters/date_range_input.rb +1 -1
  84. data/lib/active_admin/menu.rb +1 -0
  85. data/lib/active_admin/menu_item.rb +1 -1
  86. data/lib/active_admin/namespace.rb +5 -5
  87. data/lib/active_admin/orm/active_record/comments.rb +10 -1
  88. data/lib/active_admin/orm/active_record/comments/comment.rb +1 -1
  89. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +11 -0
  90. data/lib/active_admin/resource.rb +9 -3
  91. data/lib/active_admin/resource/action_items.rb +13 -3
  92. data/lib/active_admin/resource/belongs_to.rb +6 -2
  93. data/lib/active_admin/resource/pagination.rb +4 -0
  94. data/lib/active_admin/resource_collection.rb +3 -1
  95. data/lib/active_admin/resource_controller/data_access.rb +6 -11
  96. data/lib/active_admin/resource_controller/decorators.rb +1 -1
  97. data/lib/active_admin/resource_dsl.rb +8 -2
  98. data/lib/active_admin/sidebar_section.rb +4 -12
  99. data/lib/active_admin/version.rb +1 -1
  100. data/lib/active_admin/view_factory.rb +1 -2
  101. data/lib/active_admin/view_helpers.rb +0 -1
  102. data/lib/active_admin/view_helpers/display_helper.rb +3 -4
  103. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +3 -3
  104. data/lib/active_admin/views/components/active_admin_form.rb +3 -3
  105. data/lib/active_admin/views/components/columns.rb +9 -4
  106. data/lib/active_admin/views/components/dropdown_menu.rb +0 -2
  107. data/lib/active_admin/views/components/paginated_collection.rb +35 -13
  108. data/lib/active_admin/views/components/panel.rb +1 -3
  109. data/lib/active_admin/views/components/sidebar_section.rb +6 -1
  110. data/lib/active_admin/views/components/status_tag.rb +3 -2
  111. data/lib/active_admin/views/components/table_for.rb +2 -1
  112. data/lib/active_admin/views/index_as_table.rb +2 -2
  113. data/lib/active_admin/views/pages/base.rb +4 -0
  114. data/lib/active_admin/views/pages/show.rb +1 -1
  115. data/lib/generators/active_admin/assets/assets_generator.rb +1 -1
  116. data/lib/generators/active_admin/assets/templates/{active_admin.css.scss → active_admin.scss} +0 -0
  117. data/lib/generators/active_admin/devise/devise_generator.rb +7 -19
  118. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +29 -0
  119. data/lib/generators/active_admin/page/templates/page.rb +1 -1
  120. data/lib/generators/active_admin/resource/resource_generator.rb +6 -0
  121. data/lib/generators/active_admin/resource/templates/admin.rb +34 -13
  122. data/spec/rails_helper.rb +6 -2
  123. data/spec/requests/memory_spec.rb +1 -3
  124. data/spec/support/active_admin_request_helpers.rb +27 -0
  125. data/spec/support/detect_rails_version.rb +1 -1
  126. data/spec/support/rails_template.rb +7 -0
  127. data/spec/unit/application_spec.rb +29 -4
  128. data/spec/unit/batch_actions/resource_spec.rb +5 -0
  129. data/spec/unit/belongs_to_spec.rb +14 -0
  130. data/spec/unit/comments_spec.rb +24 -2
  131. data/spec/unit/controller_filters_spec.rb +25 -28
  132. data/spec/unit/dsl_spec.rb +1 -1
  133. data/spec/unit/filters/humanized_spec.rb +56 -0
  134. data/spec/unit/filters/resource_spec.rb +1 -1
  135. data/spec/unit/form_builder_spec.rb +71 -11
  136. data/spec/unit/generators/install_spec.rb +3 -2
  137. data/spec/unit/pretty_format_spec.rb +15 -1
  138. data/spec/unit/resource_collection_spec.rb +17 -0
  139. data/spec/unit/resource_controller_spec.rb +2 -2
  140. data/spec/unit/resource_registration_spec.rb +3 -3
  141. data/spec/unit/resource_spec.rb +53 -2
  142. data/spec/unit/view_factory_spec.rb +0 -2
  143. data/spec/unit/view_helpers/display_name_spec.rb +6 -4
  144. data/spec/unit/views/components/{batch_action_popover_spec.rb → batch_action_selector_spec.rb} +9 -13
  145. data/spec/unit/views/components/columns_spec.rb +17 -0
  146. data/spec/unit/views/components/paginated_collection_spec.rb +16 -2
  147. data/spec/unit/views/components/panel_spec.rb +1 -5
  148. data/spec/unit/views/components/sidebar_section_spec.rb +21 -0
  149. data/spec/unit/views/components/status_tag_spec.rb +15 -1
  150. data/spec/unit/views/components/table_for_spec.rb +45 -0
  151. data/tasks/parallel_tests.rake +1 -1
  152. data/tasks/test.rake +4 -4
  153. metadata +29 -30
  154. data/app/assets/javascripts/active_admin/lib/popover.js.coffee +0 -68
  155. data/app/assets/stylesheets/active_admin/components/_popovers.scss +0 -122
  156. data/app/assets/stylesheets/active_admin/mixins/_icons.scss +0 -20
  157. data/lib/active_admin/batch_actions/views/batch_action_popover.rb +0 -28
  158. data/lib/active_admin/iconic.rb +0 -53
  159. data/lib/active_admin/iconic/icons.rb +0 -142
  160. data/lib/active_admin/view_helpers/icon_helper.rb +0 -12
  161. data/lib/active_admin/views/components/action_list_popover.rb +0 -29
  162. data/lib/active_admin/views/components/popover.rb +0 -27
  163. data/spec/javascripts/coffeescripts/jquery.aa.popover-spec.js.coffee +0 -82
  164. data/spec/support/integration_example_group.rb +0 -31
  165. data/spec/unit/event_spec.rb +0 -47
  166. data/spec/unit/views/components/action_list_popover_spec.rb +0 -40
  167. data/spec/unit/views/components/popover_spec.rb +0 -33
@@ -31,6 +31,10 @@ nl:
31
31
  ends_with: "Eindigt op"
32
32
  greater_than: "Groter dan"
33
33
  less_than: "Kleiner dan"
34
+ search_status:
35
+ headline: "Scope:"
36
+ current_filters: "Huidige filters:"
37
+ no_current_filters: "Geen"
34
38
  status_tag:
35
39
  "yes": "Ja"
36
40
  "no": "Geen"
@@ -67,12 +71,15 @@ nl:
67
71
  labels:
68
72
  destroy: "Verwijder"
69
73
  comments:
74
+ created_at: 'Aangemaakt op'
70
75
  resource_type: "Resource Type"
71
76
  author_type: "Auteur Type"
72
77
  body: "Tekst"
73
78
  author: "Auteur"
74
79
  title: "Reactie"
75
80
  add: "Voeg commentaar toe"
81
+ delete: 'Verwijder commentaar'
82
+ delete_confirmation: "Weet u zeker dat u dit commentaar wilt verwijderen?"
76
83
  resource: "Resource"
77
84
  no_comments_yet: "Nog geen reacties."
78
85
  author_missing: "Anoniem"
@@ -108,9 +115,16 @@ nl:
108
115
  title: "Verstuur bevestigingsinstructies opnieuw"
109
116
  submit: "Verstuur bevestigingsinstructies opnieuw"
110
117
  links:
118
+ sign_up: "Registreren"
111
119
  sign_in: "Meld u aan"
112
120
  forgot_your_password: "Wachtwoord vergeten?"
113
121
  sign_in_with_omniauth_provider: "Log in met %{provider}"
122
+ resend_unlock_instructions: "Ontgrendelinstructies opnieuw versturen"
123
+ resend_confirmation_instructions: "Bevestigingsinstructies opnieuw versturen"
124
+ unsupported_browser:
125
+ headline: "Opgelet, ActiveAdmin bied geen support meer voor Internet Explorer 8 of lager"
126
+ recommendation: "Wij raden aan om te upgraden naar de nieuwste <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, of <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
127
+ turn_off_compatibility_view: "Als u IE 9 of nieuwer gebruikt, zorg ervoor dat u <a href=\"http://windows.microsoft.com/en-US/windows7/webpages-look-incorrect-in-Internet-Explorer\"> \"Compatibility View\" uit zet</a>."
114
128
  access_denied:
115
129
  message: "U bent niet gemachtigd voor deze actie."
116
130
  index_list:
@@ -118,4 +132,3 @@ nl:
118
132
  block: "Lijst"
119
133
  grid: "Rooster"
120
134
  blog: "Blog"
121
-
@@ -31,6 +31,10 @@ pt-BR:
31
31
  ends_with: "Termina com"
32
32
  greater_than: "Maior Que"
33
33
  less_than: "Menor Que"
34
+ search_status:
35
+ headline: "Em:"
36
+ current_filters: "Filtros escolhidos:"
37
+ no_current_filters: "Nenhum"
34
38
  status_tag:
35
39
  "yes": "Sim"
36
40
  "no": "Não"
@@ -39,6 +43,7 @@ pt-BR:
39
43
  powered_by: "Powered by %{active_admin} %{version}"
40
44
  sidebars:
41
45
  filters: "Filtros"
46
+ search_status: "Buscou"
42
47
  pagination:
43
48
  empty: "Nenhum(a) %{model} encontrado(a)"
44
49
  one: "Exibindo <b>1</b> %{model}"
@@ -108,10 +113,16 @@ pt-BR:
108
113
  title: "Reenviar instruções de confirmação"
109
114
  submit: "Reenviar instruções de confirmação"
110
115
  links:
116
+ sign_up: "Criar conta"
111
117
  sign_in: "Entrar"
112
118
  forgot_your_password: "Esqueceu sua senha?"
113
119
  sign_in_with_omniauth_provider: "Entre com o %{provider}"
114
120
  resend_unlock_instructions: "Reenviar instruções de desbloqueio"
121
+ resend_confirmation_instructions: "Reenviar instruções de confirmação"
122
+ unsupported_browser:
123
+ headline: "O ActiveAdmin não oferece suporte ao Internet Explorer versão 8 ou inferior."
124
+ recommendation: "Nós recomendamos atualizar para a última versão do <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, ou <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
125
+ turn_off_compatibility_view: "Se você está usando o IE 9 ou superior, <a href=\"http://windows.microsoft.com/pt-BR/windows7/webpages-look-incorrect-in-Internet-Explorer\">desligue o \"Modo de Exibição de Compatibilidade\"</a>."
115
126
  access_denied:
116
127
  message: "Você não tem permissão para realizar o solicitado"
117
128
  index_list:
@@ -26,11 +26,15 @@ ru:
26
26
  clear: "Очистить"
27
27
  predicates:
28
28
  contains: "Содержит"
29
- equals: "="
29
+ equals: "Равно"
30
30
  starts_with: "Начинается с"
31
31
  ends_with: "Заканчивается"
32
32
  greater_than: "больше"
33
33
  less_than: "меньше"
34
+ search_status:
35
+ headline: "Область:"
36
+ current_filters: "Текущий фильтр:"
37
+ no_current_filters: "Ни один"
34
38
  status_tag:
35
39
  "yes": "Да"
36
40
  "no": "Нет"
@@ -39,6 +43,7 @@ ru:
39
43
  powered_by: "Powered by %{active_admin} %{version}"
40
44
  sidebars:
41
45
  filters: "Фильтры"
46
+ search_status: "Статус поиска"
42
47
  pagination:
43
48
  empty: "%{model} не найдено"
44
49
  one: "Результат: <b>1</b> %{model}"
@@ -77,6 +82,8 @@ ru:
77
82
  author: "Автор"
78
83
  title: "Комментарий"
79
84
  add: "Добавить Комментарий"
85
+ delete: "Удалить Комментарий"
86
+ delete_confirmation: "Вы уверены, что хотите удалить этот комментарий?"
80
87
  resource: "Ресурс"
81
88
  no_comments_yet: "Пока нет комментариев."
82
89
  author_missing: "Аноним"
@@ -112,9 +119,16 @@ ru:
112
119
  title: "Выслать повторно письмо с активацией"
113
120
  submit: "Выслать повторно письмо с активацией"
114
121
  links:
122
+ sign_up: "Зарегистрироваться"
115
123
  sign_in: "Войти"
116
124
  forgot_your_password: "Забыли пароль?"
117
125
  sign_in_with_omniauth_provider: "Войти с помощью %{provider}"
126
+ resend_unlock_instructions: "Повторная отправка инструкций разблокировки"
127
+ resend_confirmation_instructions: "Повторная отправка инструкций подтверждения"
128
+ unsupported_browser:
129
+ headline: "Пожалуйста, обратите внимание, что ActiveAdmin больше не поддерживает Internet Explorer 8 версии и старее"
130
+ recommendation: "Мы рекомендуем обновить версию вашего браузера (<a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, или <a href=\"https://mozilla.org/firefox/\">Firefox</a>)."
131
+ turn_off_compatibility_view: "Если вы используете IE 9 или новее, убедитесь, что <a href=\"http://windows.microsoft.com/en-US/windows7/webpages-look-incorrect-in-Internet-Explorer\">вы выключили опцию \"Просмотр в режиме совместимости\"</a>."
118
132
  access_denied:
119
133
  message: "Вы не авторизованы для выполнения данного действия."
120
134
  index_list:
@@ -23,7 +23,7 @@
23
23
  filters:
24
24
  buttons:
25
25
  filter: "Filter"
26
- clear: "Töm dina filters"
26
+ clear: "Rensa filter"
27
27
  predicates:
28
28
  contains: "Innehåller"
29
29
  equals: "Lika med"
@@ -31,6 +31,10 @@
31
31
  ends_with: "Slutar med"
32
32
  greater_than: "Större än"
33
33
  less_than: "Mindre än"
34
+ search_status:
35
+ headline: "Scope:"
36
+ current_filters: "Nuvarande filter:"
37
+ no_current_filters: "Inga"
34
38
  status_tag:
35
39
  "yes": "Ja"
36
40
  "no": "Ingen"
@@ -39,6 +43,7 @@
39
43
  powered_by: "Powered by %{active_admin} %{version}"
40
44
  sidebars:
41
45
  filters: "Filter"
46
+ search_status: "Sök status"
42
47
  pagination:
43
48
  empty: "Ingen %{model} funnen"
44
49
  one: "Visar <b>1</b> utav %{model}"
@@ -50,12 +55,12 @@
50
55
  other: "inlägg"
51
56
  any: "Någon"
52
57
  blank_slate:
53
- content: "Finns ingen %{resource_name} än."
58
+ content: "Finns inga %{resource_name} än."
54
59
  link: "Skapa en"
55
60
  dropdown_actions:
56
61
  button_label: "Behandling"
57
62
  batch_actions:
58
- button_label: "Batch Behandling"
63
+ button_label: "Batch behandling"
59
64
  default_confirmation: "Är du säker på att du vill göra detta?"
60
65
  delete_confirmation: "Är du säker på att du vill radera dessa %{plural_model}?"
61
66
  succesfully_destroyed:
@@ -67,27 +72,62 @@
67
72
  labels:
68
73
  destroy: "Radera"
69
74
  comments:
75
+ created_at: "Skapad"
76
+ resource_type: "Resurs typ"
77
+ author_type: "Författar typ"
70
78
  body: "Innehåll"
71
79
  author: "Författare"
72
80
  title: "Kommentar"
73
81
  add: "Lägg till kommentar"
74
82
  resource: "Resurs"
75
83
  no_comments_yet: "Inga kommentarer än."
84
+ author_missing: "Anonym"
76
85
  title_content: "Kommentarer (%{count})"
77
86
  errors:
78
87
  empty_text: "Kommentaren sparades inte, måste innehålla text."
79
88
  devise:
89
+ username:
90
+ title: "Användarnamn"
91
+ email:
92
+ title: "Epost"
93
+ subdomain:
94
+ title: "Subdomän"
95
+ password:
96
+ title: "Lösenord"
97
+ sign_up:
98
+ title: "Registera"
99
+ submit: "Registera"
80
100
  login:
81
- title: "inloggning"
101
+ title: "Inloggning"
82
102
  remember_me: "Kom ihåg mig"
83
- submit: "inloggning"
103
+ submit: "Inloggning"
84
104
  reset_password:
85
105
  title: "Glömt ditt lösenord?"
86
106
  submit: "Återställa mitt lösenord"
87
107
  change_password:
88
108
  title: "Ändra ditt lösenord"
89
109
  submit: "Ändra mitt lösenord"
110
+ unlock:
111
+ title: "Skicka upplåsnings instruktioner"
112
+ submit: "Skicka upplåsnings instruktioner"
113
+ resend_confirmation_instructions:
114
+ title: "Skicka bekräftnings instruktioner"
115
+ submit: "Skicka bekräftnings instruktioner"
90
116
  links:
117
+ sign_up: "Registera"
91
118
  sign_in: "Logga in"
92
119
  forgot_your_password: "Glömt ditt lösenord?"
93
120
  sign_in_with_omniauth_provider: "Logga in med %{provider}"
121
+ resend_unlock_instructions: "Skicka upplåsnings instruktioner"
122
+ resend_confirmation_instructions: "Skicka bekräftnings instruktioner"
123
+ unsupported_browser:
124
+ headline: "Notera att ActiveAdmin inte längre stödjer Internet Explorer version 8 eller mindre."
125
+ recommendation: "Vi rekommenderar dig att uppgradera till den senaste versionen av <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, eller <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
126
+ turn_off_compatibility_view: "Om du använder IE 9 eller senare, se till att <a href=\"http://windows.microsoft.com/en-US/windows7/webpages-look-incorrect-in-Internet-Explorer\">stäng av \"Compatibility View\"</a>."
127
+ access_denied:
128
+ message: "Du har inte rättighet att utföra denna åtgärd."
129
+ index_list:
130
+ table: "Tabell"
131
+ block: "Lista"
132
+ grid: "Rutnät"
133
+ blog: "Blogg"
@@ -31,14 +31,19 @@ uk:
31
31
  ends_with: "Закінчується"
32
32
  greater_than: "більше"
33
33
  less_than: "меньше"
34
+ search_status:
35
+ headline: "Область:"
36
+ current_filters: "Поточний фільтр:"
37
+ no_current_filters: "Жоден"
34
38
  status_tag:
35
- "yes": "та"
36
- "no": "немає"
39
+ "yes": "Так"
40
+ "no": "Ні"
37
41
  main_content: "Створіть %{model}#main_content для відображення вмісту."
38
42
  logout: "Вийти"
39
43
  powered_by: "Powered by %{active_admin} %{version}"
40
44
  sidebars:
41
45
  filters: "Фільтри"
46
+ search_status: "Статус пошуку"
42
47
  pagination:
43
48
  empty: "%{model} не знайдено"
44
49
  one: "Результат: <b>1</b> %{model}"
@@ -47,9 +52,9 @@ uk:
47
52
  multiple_without_total: "Результат: %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>"
48
53
  entry:
49
54
  one: "запис"
50
- other: "записів"
51
- many: "записів"
52
55
  few: "записи"
56
+ many: "записів"
57
+ other: "записів"
53
58
  any: "Будь-який"
54
59
  blank_slate:
55
60
  content: "Покищо немає %{resource_name}."
@@ -112,9 +117,16 @@ uk:
112
117
  title: "Вислати повторно листа з активацією"
113
118
  submit: "Вислати повторно листа з активацією"
114
119
  links:
120
+ sign_up: "Зареєструватись"
115
121
  sign_in: "Увійти"
116
122
  forgot_your_password: "Забули пароль?"
117
123
  sign_in_with_omniauth_provider: "Увійти з допомогою %{provider}"
124
+ resend_unlock_instructions: "Повторна відправка інструкцій розблокування"
125
+ resend_confirmation_instructions: "Повторна відправка інструкцій підтвердження"
126
+ unsupported_browser:
127
+ headline: "Зверніть, будь-ласка, увагу, що ActiveAdmin більше не підтримує Internet Explorer 8 версії і нижче"
128
+ recommendation: "Ми рекомендуємо оновити версію вашого браузеру (<a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, або <a href=\"https://mozilla.org/firefox/\">Firefox</a>)."
129
+ turn_off_compatibility_view: "Якщо ви використовуєте IE 9 і вище переконайтесь, що <a href=\"http://windows.microsoft.com/en-US/windows7/webpages-look-incorrect-in-Internet-Explorer\">ви виключили опцію \"Перегляд в режимі сумісності\"</a>."
118
130
  access_denied:
119
131
  message: "Ви не авторизовані для виконання даної дії."
120
132
  index_list:
@@ -31,6 +31,10 @@
31
31
  ends_with: "完与"
32
32
  greater_than: "大于"
33
33
  less_than: "小于"
34
+ search_status:
35
+ headline: "搜索范围:"
36
+ current_filters: "过滤条件:"
37
+ no_current_filters: "无"
34
38
  status_tag:
35
39
  "yes": "是的"
36
40
  "no": "无"
@@ -39,6 +43,7 @@
39
43
  powered_by: "Powered by %{active_admin} %{version}"
40
44
  sidebars:
41
45
  filters: "所有条件"
46
+ search_status: "搜索条件"
42
47
  pagination:
43
48
  empty: "暂时没有%{model}"
44
49
  one: "显示 <b>1</b> %{model}"
@@ -31,6 +31,10 @@
31
31
  ends_with: "結尾為"
32
32
  greater_than: "大於"
33
33
  less_than: "小於"
34
+ search_status:
35
+ headline: "子集:"
36
+ current_filters: "目前篩選條件:"
37
+ no_current_filters: "無"
34
38
  status_tag:
35
39
  "yes": "是"
36
40
  "no": "否"
@@ -39,6 +43,7 @@
39
43
  powered_by: "Powered by %{active_admin} %{version}"
40
44
  sidebars:
41
45
  filters: "篩選條件"
46
+ search_status: "搜尋條件"
42
47
  pagination:
43
48
  empty: "找不到 %{model} "
44
49
  one: "顯示 <b>1</b> %{model}"
@@ -67,16 +72,30 @@
67
72
  labels:
68
73
  destroy: "刪除"
69
74
  comments:
75
+ resource_type: "資源種類"
76
+ author_type: "作者身份"
70
77
  body: "內文"
71
78
  author: "作者"
72
79
  title: "評論"
73
80
  add: "新增評論"
74
81
  resource: "資源"
75
82
  no_comments_yet: "尚無評論"
83
+ author_missing: "匿名"
76
84
  title_content: "(%{count}) 則評論"
77
85
  errors:
78
86
  empty_text: "評論儲存失敗,不允許空白的內容。"
79
87
  devise:
88
+ username:
89
+ title: "帳號"
90
+ email:
91
+ title: "電子郵件信箱"
92
+ subdomain:
93
+ title: "子網域"
94
+ password:
95
+ title: "密碼"
96
+ sign_up:
97
+ title: "註冊"
98
+ submit: "註冊"
80
99
  login:
81
100
  title: "登入"
82
101
  remember_me: "記住我"
@@ -87,10 +106,22 @@
87
106
  change_password:
88
107
  title: "更改你的密碼"
89
108
  submit: "更改我的密碼"
109
+ unlock:
110
+ title: "重新發送解鎖指示"
111
+ submit: "重新發送解鎖指示"
90
112
  resend_confirmation_instructions:
91
113
  title: '重新發送確認信'
92
114
  submit: '重新發送確認信'
93
115
  links:
116
+ sign_up: "註冊"
94
117
  sign_in: "登入"
95
118
  forgot_your_password: "忘記密碼?"
96
- sign_in_with_omniauth_provider: "登入%{provider}"
119
+ sign_in_with_omniauth_provider: "使用 %{provider} 登入"
120
+ resend_unlock_instructions: "重新發送解鎖指示"
121
+ resend_confirmation_instructions: "重新發送確認信"
122
+ unsupported_browser:
123
+ headline: "很抱歉,ActiveAdmin 已不再支援 Internet Explorer 8 以下版本的瀏覽器。"
124
+ recommendation: "建議您升級到最新版本的<a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>,<a href=\"https://chrome.google.com/\">Google Chrome</a>,或是 <a href=\"https://mozilla.org/firefox/\">Firefox</a>。"
125
+ turn_off_compatibility_view: "若您是使用 IE 9 或更新的版本,請確認<a href=\"http://windows.microsoft.com/zh-TW/windows7/webpages-look-incorrect-in-Internet-Explorer\">「相容性檢視」是關閉的</a>。"
126
+ access_denied:
127
+ message: "您沒有權限執行此項操作"
@@ -4,6 +4,12 @@ Active Admin is a Ruby Gem.
4
4
 
5
5
  ```ruby
6
6
  gem 'activeadmin'
7
+
8
+ # Plus integrations with:
9
+ gem 'devise'
10
+ gem 'cancan' # or cancancan
11
+ gem 'draper'
12
+ gem 'pundit'
7
13
  ```
8
14
 
9
15
  More accurately, it's a [Rails Engine](http://guides.rubyonrails.org/engines.html)
@@ -27,7 +33,7 @@ The generator adds these core files, among others:
27
33
  ```
28
34
  app/admin/dashboard.rb
29
35
  app/assets/javascripts/active_admin.js.coffee
30
- app/assets/stylesheets/active_admin.css.scss
36
+ app/assets/stylesheets/active_admin.scss
31
37
  config/initializers/active_admin.rb
32
38
  ```
33
39
 
@@ -48,6 +48,15 @@ to your application's `config/locales` folder and update it. We welcome new/upda
48
48
  so feel free to [contribute](https://github.com/activeadmin/activeadmin/blob/master/CONTRIBUTING.md)!
49
49
  To translate third party gems like devise, use for example devise-i18n.
50
50
 
51
+ ## Localize Format For Dates and Times
52
+
53
+ Active Admin sets `:long` as default localize format for dates and times.
54
+ If you want, you can customize it.
55
+
56
+ ```ruby
57
+ config.localize_format = :short
58
+ ```
59
+
51
60
  ## Namespaces
52
61
 
53
62
  When registering resources in Active Admin, they are loaded into a namespace.
@@ -49,6 +49,16 @@ end
49
49
 
50
50
  See the [Menu](2-resource-customization.md#customize-the-menu) documentation.
51
51
 
52
+ ## Customize the breadcrumbs
53
+
54
+ ```ruby
55
+ ActiveAdmin.register_page "Calendar" do
56
+ breadcrumb do
57
+ ['admin', 'calendar']
58
+ end
59
+ end
60
+ ```
61
+
52
62
  ## Customize the Namespace
53
63
 
54
64
  We use the `admin` namespace by default, but you can use anything:
@@ -19,7 +19,7 @@ ActiveAdmin.register Post do
19
19
  row 'Tags' do
20
20
  post.tags.each do |tag|
21
21
  a tag, href: admin_post_path(q: {tagged_with_contains: tag})
22
- text_node "&nbsp".html_safe
22
+ text_node "&nbsp;".html_safe
23
23
  end
24
24
  end
25
25
  end