activeadmin 2.1.0 → 2.5.0

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 (138) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +112 -27
  3. data/CONTRIBUTING.md +50 -26
  4. data/README.md +8 -1
  5. data/app/assets/javascripts/active_admin/base.js +509 -0
  6. data/app/assets/stylesheets/active_admin/_base.scss +29 -29
  7. data/app/assets/stylesheets/active_admin/_header.scss +3 -5
  8. data/app/assets/stylesheets/active_admin/_mixins.scss +1 -1
  9. data/{vendor → app}/assets/stylesheets/active_admin/_normalize.scss +0 -0
  10. data/app/assets/stylesheets/active_admin/components/_tables.scss +1 -2
  11. data/app/assets/stylesheets/active_admin/mixins/_all.scss +8 -8
  12. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +5 -0
  13. data/app/assets/stylesheets/active_admin/print.scss +2 -2
  14. data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +1 -1
  15. data/app/javascript/active_admin/base.js +19 -0
  16. data/app/{assets/javascripts/active_admin/ext/jquery-ui.es6 → javascript/active_admin/ext/jquery-ui.js} +0 -0
  17. data/app/{assets/javascripts/active_admin/ext/jquery.es6 → javascript/active_admin/ext/jquery.js} +0 -0
  18. data/app/{assets/javascripts/active_admin/lib/batch_actions.es6 → javascript/active_admin/initializers/batch-actions.js} +9 -3
  19. data/app/javascript/active_admin/initializers/checkbox-toggler.js +3 -0
  20. data/app/{assets/javascripts/active_admin/initializers/datepicker.es6 → javascript/active_admin/initializers/datepicker.js} +0 -0
  21. data/app/javascript/active_admin/initializers/dropdown-menu.js +9 -0
  22. data/app/javascript/active_admin/initializers/filters.js +10 -0
  23. data/app/{assets/javascripts/active_admin/lib/has_many.es6 → javascript/active_admin/initializers/has-many.js} +0 -0
  24. data/app/javascript/active_admin/initializers/per-page.js +13 -0
  25. data/app/javascript/active_admin/initializers/table-checkbox-toggler.js +3 -0
  26. data/app/{assets/javascripts/active_admin/initializers/tabs.es6 → javascript/active_admin/initializers/tabs.js} +0 -0
  27. data/app/{assets/javascripts/active_admin/lib/checkbox-toggler.es6 → javascript/active_admin/lib/checkbox-toggler.js} +2 -2
  28. data/app/{assets/javascripts/active_admin/lib/dropdown-menu.es6 → javascript/active_admin/lib/dropdown-menu.js} +2 -9
  29. data/app/javascript/active_admin/lib/filters.js +39 -0
  30. data/app/{assets/javascripts/active_admin/lib/modal_dialog.es6 → javascript/active_admin/lib/modal-dialog.js} +3 -1
  31. data/app/javascript/active_admin/lib/per-page.js +38 -0
  32. data/app/{assets/javascripts/active_admin/lib/table-checkbox-toggler.es6 → javascript/active_admin/lib/table-checkbox-toggler.js} +4 -2
  33. data/app/javascript/active_admin/lib/utils.js +40 -0
  34. data/app/views/kaminari/active_admin_countless/_first_page.html.erb +11 -0
  35. data/app/views/kaminari/active_admin_countless/_gap.html.erb +8 -0
  36. data/app/views/kaminari/active_admin_countless/_next_page.html.erb +11 -0
  37. data/app/views/kaminari/active_admin_countless/_page.html.erb +12 -0
  38. data/app/views/kaminari/active_admin_countless/_paginator.html.erb +24 -0
  39. data/app/views/kaminari/active_admin_countless/_prev_page.html.erb +11 -0
  40. data/config/locales/ar.yml +3 -2
  41. data/config/locales/az.yml +138 -0
  42. data/config/locales/bg.yml +1 -0
  43. data/config/locales/bs.yml +1 -0
  44. data/config/locales/ca.yml +1 -1
  45. data/config/locales/cs.yml +1 -0
  46. data/config/locales/da.yml +1 -0
  47. data/config/locales/de-CH.yml +1 -0
  48. data/config/locales/de.yml +19 -0
  49. data/config/locales/el.yml +1 -0
  50. data/config/locales/en-CA.yml +1 -0
  51. data/config/locales/en-GB.yml +1 -0
  52. data/config/locales/en.yml +1 -0
  53. data/config/locales/eo.yml +1 -0
  54. data/config/locales/es-MX.yml +1 -0
  55. data/config/locales/es.yml +1 -0
  56. data/config/locales/fa.yml +1 -0
  57. data/config/locales/fi.yml +1 -0
  58. data/config/locales/fr.yml +2 -1
  59. data/config/locales/he.yml +1 -0
  60. data/config/locales/hr.yml +1 -0
  61. data/config/locales/hu.yml +1 -0
  62. data/config/locales/id.yml +1 -0
  63. data/config/locales/it.yml +1 -0
  64. data/config/locales/ja.yml +1 -0
  65. data/config/locales/ko.yml +1 -0
  66. data/config/locales/lt.yml +1 -0
  67. data/config/locales/lv.yml +1 -0
  68. data/config/locales/mk.yml +134 -0
  69. data/config/locales/nb.yml +1 -0
  70. data/config/locales/nl.yml +1 -0
  71. data/config/locales/pl.yml +1 -0
  72. data/config/locales/pt-BR.yml +1 -0
  73. data/config/locales/pt-PT.yml +1 -0
  74. data/config/locales/ro.yml +1 -0
  75. data/config/locales/ru.yml +1 -0
  76. data/config/locales/sk.yml +60 -0
  77. data/config/locales/sv-SE.yml +1 -0
  78. data/config/locales/tr.yml +1 -0
  79. data/config/locales/uk.yml +1 -0
  80. data/config/locales/vi.yml +1 -0
  81. data/config/locales/zh-CN.yml +1 -0
  82. data/config/locales/zh-TW.yml +1 -0
  83. data/docs/1-general-configuration.md +20 -0
  84. data/docs/12-arbre-components.md +13 -0
  85. data/docs/13-authorization-adapter.md +2 -2
  86. data/docs/2-resource-customization.md +1 -1
  87. data/docs/3-index-pages/index-as-table.md +7 -0
  88. data/docs/Gemfile +0 -1
  89. data/docs/Gemfile.lock +58 -58
  90. data/docs/_config.yml +2 -0
  91. data/docs/_includes/top-menu.html +2 -2
  92. data/docs/index.html +108 -7
  93. data/docs/stylesheets/main.css +29 -0
  94. data/lib/active_admin.rb +0 -1
  95. data/lib/active_admin/application.rb +12 -3
  96. data/lib/active_admin/batch_actions/resource_extension.rb +5 -1
  97. data/lib/active_admin/controller_action.rb +2 -1
  98. data/lib/active_admin/csv_builder.rb +3 -2
  99. data/lib/active_admin/dependency.rb +0 -4
  100. data/lib/active_admin/error.rb +3 -1
  101. data/lib/active_admin/filters/active_filter.rb +3 -4
  102. data/lib/active_admin/filters/resource_extension.rb +24 -0
  103. data/lib/active_admin/generators/boilerplate.rb +12 -4
  104. data/lib/active_admin/inputs/filters/date_range_input.rb +4 -4
  105. data/lib/active_admin/namespace_settings.rb +13 -0
  106. data/lib/active_admin/order_clause.rb +1 -1
  107. data/lib/active_admin/page_presenter.rb +2 -1
  108. data/lib/active_admin/pundit_adapter.rb +7 -3
  109. data/lib/active_admin/resource.rb +16 -2
  110. data/lib/active_admin/resource/belongs_to.rb +6 -1
  111. data/lib/active_admin/resource/model.rb +15 -0
  112. data/lib/active_admin/resource/routes.rb +11 -3
  113. data/lib/active_admin/resource_controller.rb +2 -0
  114. data/lib/active_admin/resource_controller/decorators.rb +2 -2
  115. data/lib/active_admin/resource_controller/polymorphic_routes.rb +37 -0
  116. data/lib/active_admin/router.rb +2 -1
  117. data/lib/active_admin/scope.rb +7 -3
  118. data/lib/active_admin/sidebar_section.rb +3 -1
  119. data/lib/active_admin/version.rb +1 -1
  120. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +2 -2
  121. data/lib/active_admin/view_helpers/display_helper.rb +3 -2
  122. data/lib/active_admin/views/components/paginated_collection.rb +3 -2
  123. data/lib/active_admin/views/components/status_tag.rb +5 -1
  124. data/lib/active_admin/views/components/table_for.rb +1 -0
  125. data/lib/active_admin/views/index_as_table.rb +7 -0
  126. data/lib/active_admin/views/pages/base.rb +1 -1
  127. data/lib/active_admin/views/pages/index.rb +1 -0
  128. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +14 -1
  129. data/lib/generators/active_admin/resource/templates/admin.rb.erb +40 -37
  130. data/lib/ransack_ext.rb +2 -2
  131. metadata +38 -45
  132. data/app/assets/images/active_admin/nested_menu_arrow.gif +0 -0
  133. data/app/assets/images/active_admin/nested_menu_arrow_dark.gif +0 -0
  134. data/app/assets/images/active_admin/orderable.png +0 -0
  135. data/app/assets/javascripts/active_admin/base.es6 +0 -23
  136. data/app/assets/javascripts/active_admin/initializers/filters.es6 +0 -45
  137. data/app/assets/javascripts/active_admin/lib/active_admin.es6 +0 -41
  138. data/app/assets/javascripts/active_admin/lib/per_page.es6 +0 -47
@@ -38,6 +38,7 @@ hu:
38
38
  status_tag:
39
39
  "yes": "Igen"
40
40
  "no": "Nem"
41
+ "unset": "Nem"
41
42
  main_content: "Kérem, implementálja a %{model}#main_content metódust a tartalom megjelenítéséhez."
42
43
  logout: "Kilépés"
43
44
  powered_by: "Powered by %{active_admin} %{version}"
@@ -39,6 +39,7 @@ id:
39
39
  status_tag:
40
40
  "yes": "Ya"
41
41
  "no": "Tidak"
42
+ "unset": "Tidak"
42
43
  main_content: "Harap mengimplementasikan %{model}#main_content untuk menampilkan konten."
43
44
  logout: "Keluar"
44
45
  powered_by: "Dibuat dengan %{active_admin} %{version}"
@@ -45,6 +45,7 @@ it:
45
45
  status_tag:
46
46
  "yes": "Sì"
47
47
  "no": "No"
48
+ "unset": "No"
48
49
  main_content: "Devi implemetare %{model}#main_content per mostrarne il contenuto."
49
50
  logout: "Esci"
50
51
  powered_by: "Powered by %{active_admin} %{version}"
@@ -44,6 +44,7 @@ ja:
44
44
  status_tag:
45
45
  "yes": "はい"
46
46
  "no": "いいえ"
47
+ "unset": "いいえ"
47
48
  main_content: "内容を表示するために %{model}#main_content を実装してください。"
48
49
  logout: "ログアウト"
49
50
  powered_by: "Powered by %{active_admin} %{version}"
@@ -39,6 +39,7 @@ ko:
39
39
  status_tag:
40
40
  "yes": "있음"
41
41
  "no": "없음"
42
+ "unset": "없음"
42
43
  main_content: "내용을 보시려면 %{model}#main_content의 코드를 먼저 구현해 주시기 바랍니다."
43
44
  logout: "로그아웃"
44
45
  powered_by: "Powered by %{active_admin} %{version}"
@@ -43,6 +43,7 @@ lt:
43
43
  status_tag:
44
44
  "yes": "Taip"
45
45
  "no": "Nėra"
46
+ "unset": "Nėra"
46
47
  main_content: 'Prašome realizuoti %{model}#main_content turiniui vaizduoti.'
47
48
  logout: 'Išeiti'
48
49
  powered_by: "Powered by %{active_admin} %{version}"
@@ -34,6 +34,7 @@ lv:
34
34
  status_tag:
35
35
  "yes": "Jā"
36
36
  "no": "Nē"
37
+ "unset": "Nē"
37
38
  main_content: "Lūdzu implementēt %{model}#main_content, lai rādītos saturs."
38
39
  logout: "Iziet"
39
40
  powered_by: "Powered by %{active_admin} %{version}"
@@ -0,0 +1,134 @@
1
+ mk:
2
+ activerecord:
3
+ models:
4
+ comment:
5
+ one: "Коментар"
6
+ other: "Коментари"
7
+ active_admin/comment:
8
+ one: "Коментар"
9
+ other: "Коментари"
10
+ active_admin:
11
+ dashboard: "Почетна"
12
+ dashboard_welcome:
13
+ welcome: "Добредојдовте во Active Admin. Ова е стандардна верзија на почетната страна."
14
+ call_to_action: "За да додадете секции на почетната страна, прегледајте го 'app/admin/dashboard.rb'."
15
+ view: "Прегледај"
16
+ edit: "Измени"
17
+ delete: "Избриши"
18
+ delete_confirmation: "Дали сте сигурни дека сакате да го избришете записот?"
19
+ create_another: "Креирај нов %{model}"
20
+ new_model: "Додај нов %{model}"
21
+ edit_model: "Измени %{model}"
22
+ delete_model: "Избриши %{model}"
23
+ details: "Детали за %{model}"
24
+ cancel: "Откажи"
25
+ empty: "Празно"
26
+ previous: "Претходно"
27
+ next: "Следно"
28
+ download: "Преземи во понудените формати:"
29
+ has_many_new: "Додај нов %{model}"
30
+ has_many_delete: "Избриши"
31
+ has_many_remove: "Отстрани"
32
+ move: "Премести"
33
+ filters:
34
+ buttons:
35
+ filter: "Пребарај"
36
+ clear: "Исчисти филтри"
37
+ predicates:
38
+ contains: "Содржи"
39
+ equals: "Е еднакво со"
40
+ starts_with: "Започнува со"
41
+ ends_with: "Завршува сo"
42
+ greater_than: "Е поголемо од"
43
+ less_than: "Е помало од"
44
+ gteq_datetime: "Е поголемо или еднакво со"
45
+ lteq_datetime: "Е помало или еднакво со"
46
+ from: "Од"
47
+ to: "До"
48
+ search_status:
49
+ headline: "Пронајдени резултати:"
50
+ current_filters: "Резултати врз основа на следниве филтри:"
51
+ no_current_filters: "Моментално нема филтри"
52
+ status_tag:
53
+ "yes": "Да"
54
+ "no": "Не"
55
+ "unset": "Не"
56
+ main_content: "Ве замолуваме имплементирајте %{model}#main_content за да прикажете содржина."
57
+ logout: "Одјави се"
58
+ powered_by: "Овозможено од %{active_admin} %{version}"
59
+ sidebars:
60
+ filters: "Филтри за пребарување"
61
+ search_status: "Резултати од пребарување"
62
+ pagination:
63
+ empty: "Нема пронајдени записи за %{model}"
64
+ one: "Прикажан <b>1</b> %{model}"
65
+ one_page: "Прикажани <b>сите %{n}</b> %{model}"
66
+ multiple: "Прикажани %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> од вкупно <b>%{total}</b>"
67
+ multiple_without_total: "Прикажани %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>"
68
+ per_page: "Прикази на записи по страна:"
69
+ entry:
70
+ one: "запис"
71
+ other: "записи"
72
+ any: "Било кој"
73
+ blank_slate:
74
+ content: "Не се креирани записи од типот на %{resource_name}."
75
+ link: "Креирај нов"
76
+ dropdown_actions:
77
+ button_label: "Активности"
78
+ batch_actions:
79
+ button_label: "Групни активности"
80
+ default_confirmation: "Дали сте сигурни?"
81
+ delete_confirmation: "Дали сте сигурни дека сакате да ги избришете %{plural_model}?"
82
+ succesfully_destroyed:
83
+ one: "Успешно е избришан 1 %{model}"
84
+ other: "Успешно се избришани %{count} %{plural_model}"
85
+ selection_toggle_explanation: "(Toggle Selection)"
86
+ action_label: "%{title} го селектираното"
87
+ labels:
88
+ destroy: "Избриши"
89
+ devise:
90
+ username:
91
+ title: "Корисничко име"
92
+ email:
93
+ title: "Е-маил"
94
+ password:
95
+ title: "Лозинка"
96
+ password_confirmation:
97
+ title: "Потврди Лозинка"
98
+ sign_up:
99
+ title: "Креирај профил"
100
+ submit: "Креирај"
101
+ login:
102
+ title: "Најави се"
103
+ remember_me: "Запомни ме"
104
+ submit: "Најави се"
105
+ reset_password:
106
+ title: "Ја заборавивте Вашата лозинка?"
107
+ submit: "Промени лозинка"
108
+ change_password:
109
+ title: "Променете ја лозинката"
110
+ submit: "Промени лозинка"
111
+ unlock:
112
+ title: "Повторно испраќање на инструкции за отклучување на профил"
113
+ submit: "Испрати инструкции"
114
+ resend_confirmation_instructions:
115
+ title: "Повторно испраќање на инструкции за потврдување на профил"
116
+ submit: "Инспрати инструкции"
117
+ links:
118
+ sign_up: "Креирај профил"
119
+ sign_in: "Најави се"
120
+ forgot_your_password: "Ја заборавивте Вашата лозинка?"
121
+ sign_in_with_omniauth_provider: "Најави се со %{provider}"
122
+ resend_unlock_instructions: "Повторно испрати инструкции за отклучување на профил"
123
+ resend_confirmation_instructions: "Повторно испрати инструкции за потврдување на профил"
124
+ unsupported_browser:
125
+ headline: "Ве замолуваме, имајте во предвид дека ActiveAdmin не нуди поддршка за Internet Explorer 8 верзијата или претходни верзии."
126
+ recommendation: "Ви порачуваме да го <a href=\"http://browsehappy.com/\"> ажурирате Вашиот пребарувач</a> за да си го подобрите пребарувањето."
127
+ turn_off_compatibility_view: "Доколку користите IE 9 или понова верзија, Ве замолуваме <a href=\"https://support.microsoft.com/en-us/help/17471\">да исклучите \"Compatibility View\"</a>."
128
+ access_denied:
129
+ message: "Немате овластување да ја извршите оваа активност."
130
+ index_list:
131
+ table: "Табела"
132
+ block: "Листа"
133
+ grid: "Грид"
134
+ blog: "Блог"
@@ -43,6 +43,7 @@ nb:
43
43
  status_tag:
44
44
  "yes": "Ja"
45
45
  "no": "Nei"
46
+ "unset": "Nei"
46
47
  main_content: "Vennligst implementer %{model}#main_content for å vise innhold."
47
48
  logout: "Logg ut"
48
49
  powered_by: "Powered by %{active_admin} %{version}"
@@ -45,6 +45,7 @@ nl:
45
45
  status_tag:
46
46
  "yes": "Ja"
47
47
  "no": "Geen"
48
+ "unset": "Geen"
48
49
  main_content: "Implementeer %{model}#main_content om de content weer te geven."
49
50
  logout: "Uitloggen"
50
51
  powered_by: "Mogelijk gemaakt door %{active_admin} %{version}"
@@ -67,6 +67,7 @@ pl:
67
67
  status_tag:
68
68
  "yes": "Tak"
69
69
  "no": "Nie"
70
+ "unset": "Nie"
70
71
  main_content: "Zaimplementuj %{model}#main_content aby wyświetlić treść."
71
72
  logout: "Wyloguj"
72
73
  powered_by: "Powered by %{active_admin} %{version}"
@@ -44,6 +44,7 @@ pt-BR:
44
44
  status_tag:
45
45
  "yes": "Sim"
46
46
  "no": "Não"
47
+ "unset": "Não"
47
48
  main_content: "Por favor implemente %{model}#main_content para exibir conteúdo."
48
49
  logout: "Sair"
49
50
  powered_by: "Powered by %{active_admin} %{version}"
@@ -34,6 +34,7 @@
34
34
  status_tag:
35
35
  "yes": "Sim"
36
36
  "no": "Não"
37
+ "unset": "Não"
37
38
  main_content: "Por favor implemente %{model}#main_content para mostrar o conteúdo."
38
39
  logout: "Sair"
39
40
  powered_by: "Powered by %{active_admin} %{version}"
@@ -34,6 +34,7 @@ ro:
34
34
  status_tag:
35
35
  "yes": "Da"
36
36
  "no": "Nu"
37
+ "unset": "Nu"
37
38
  main_content: "Va rugam sa implementati %{model}#main_content pentru a afisa continut."
38
39
  logout: "Iesire"
39
40
  powered_by: "Powered by %{active_admin} %{version}"
@@ -41,6 +41,7 @@ ru:
41
41
  status_tag:
42
42
  "yes": "Да"
43
43
  "no": "Нет"
44
+ "unset": "Нет"
44
45
  main_content: "Создайте %{model}#main_content для отображения содержимого."
45
46
  logout: "Выйти"
46
47
  powered_by: "Работает на %{active_admin} %{version}"
@@ -1,4 +1,24 @@
1
1
  sk:
2
+ activerecord:
3
+ models:
4
+ comment:
5
+ one: "Komentár"
6
+ few: "Komentáre"
7
+ many: "Komentárov"
8
+ other: "Komentáre"
9
+ active_admin/comment:
10
+ one: "Komentár"
11
+ few: "Komentáre"
12
+ many: "Komentárov"
13
+ other: "Komentáre"
14
+ attributes:
15
+ active_admin/comment:
16
+ author_type: "Typ autora"
17
+ body: "Telo"
18
+ created_at: "Vytvorený"
19
+ namespace: "Namespace"
20
+ resource_type: "Typ komentovanej položky"
21
+ updated_at: "Upravený"
2
22
  active_admin:
3
23
  dashboard: Úvod
4
24
  dashboard_welcome:
@@ -8,6 +28,7 @@ sk:
8
28
  edit: "Upraviť"
9
29
  delete: "Zmazať"
10
30
  delete_confirmation: "Ste si istí, že chcete túto položku zmazať?"
31
+ create_another: "Vytvoriť ďalší %{model}"
11
32
  new_model: "Vytvoriť"
12
33
  edit_model: "Upraviť"
13
34
  delete_model: "Zmazať"
@@ -20,6 +41,7 @@ sk:
20
41
  has_many_new: "Pridať nový"
21
42
  has_many_delete: "Zmazať"
22
43
  has_many_remove: "Odstrániť"
44
+ move: "Presunúť"
23
45
  filters:
24
46
  buttons:
25
47
  filter: "Filtrovať"
@@ -31,14 +53,27 @@ sk:
31
53
  ends_with: "Končí na"
32
54
  greater_than: "Väčší ako"
33
55
  less_than: "Menší ako"
56
+ gteq_datetime: "Od"
57
+ lteq_datetime: "Do"
58
+ from: "Od"
59
+ to: "Do"
60
+ scopes:
61
+ all: "Všetko"
62
+ search_status:
63
+ headline: "Stav vyhľadávania:"
64
+ current_scope: "Scope:"
65
+ current_filters: "Filtre:"
66
+ no_current_filters: "Žiadne"
34
67
  status_tag:
35
68
  "yes": "Áno"
36
69
  "no": "Nie"
70
+ "unset": "Nie"
37
71
  main_content: "Implementujte prosím %{model}#main_content pre zobrazenie obsahu."
38
72
  logout: "Odhlásiť"
39
73
  powered_by: "%{active_admin} %{version}"
40
74
  sidebars:
41
75
  filters: "Filtre"
76
+ search_status: "Stav vyhľadávania"
42
77
  pagination:
43
78
  empty: "Nenájdený."
44
79
  one: "Zobrazená <b>1</b> položka"
@@ -69,11 +104,14 @@ sk:
69
104
  labels:
70
105
  destroy: "Vymazať"
71
106
  comments:
107
+ created_at: "Vytvorený"
72
108
  resource_type: "Typ zdroja"
73
109
  author_type: "Typ autora"
74
110
  body: "Telo"
75
111
  author: "Autor"
76
112
  add: "Pridať komentár"
113
+ delete: "Zmazať komentár"
114
+ delete_confirmation: "Naozaj chcete zmazať tento komentár?"
77
115
  resource: "Zdroj"
78
116
  no_comments_yet: "Žiadny komentár"
79
117
  author_missing: "Anonymný"
@@ -81,6 +119,19 @@ sk:
81
119
  errors:
82
120
  empty_text: "Komentár nebol uložený, je prázdny."
83
121
  devise:
122
+ username:
123
+ title: "Užívateľské meno"
124
+ email:
125
+ title: "Email"
126
+ subdomain:
127
+ title: "Subdoména"
128
+ password:
129
+ title: "Heslo"
130
+ password_confirmation:
131
+ title: "Potvrdenie hesla"
132
+ sign_up:
133
+ title: "Registrácia"
134
+ submit: "Registrovať"
84
135
  login:
85
136
  title: "Prihlásenie"
86
137
  remember_me: "Zapamätať si ma"
@@ -94,11 +145,20 @@ sk:
94
145
  unlock:
95
146
  title: "Zaslanie inštrukcií k odomknutiu účtu"
96
147
  submit: "Zaslať inštrukcií k odomknutiu účtu"
148
+ resend_confirmation_instructions:
149
+ title: "Preposlanie potvrdzovacie inštrukcie"
150
+ submit: "Preposlať potvrdzovacie inštrukcie"
97
151
  links:
98
152
  sign_in: "Prihlásiť sa"
99
153
  sign_up: "Registrovať sa"
100
154
  forgot_your_password: "Zabudli ste heslo?"
101
155
  sign_in_with_omniauth_provider: "Prihlásiť sa cez %{provider}"
156
+ resend_unlock_instructions: "Poslať znovu inštrukcie na odomknutie účtu"
157
+ resend_confirmation_instructions: "Preposlať potvrdzovacie inštrukcie"
158
+ unsupported_browser:
159
+ headline: "ActiveAdmin nepodporuje Internet Explorer vo verzii <= 8."
160
+ recommendation: "Odporúčame <a href=\"http://browsehappy.com/\">aktualizovať Váš prehliadač</a>."
161
+ turn_off_compatibility_view: "Ak používate Internet Explorer vo verzii >= 9, uistite sa, že <a href=\"https://support.microsoft.com/en-us/help/17471\">\"režim kompatibility\" je vypnutý</a>"
102
162
  access_denied:
103
163
  message: "Nemáte oprávnenie k vykonaniu tejto akcie."
104
164
  index_list:
@@ -41,6 +41,7 @@
41
41
  status_tag:
42
42
  "yes": "Ja"
43
43
  "no": "Nej"
44
+ "unset": "Nej"
44
45
  main_content: "Implementera %{model}#main_content för att kunna visa något."
45
46
  logout: "Logga ut"
46
47
  powered_by: "Powered by %{active_admin} %{version}"
@@ -45,6 +45,7 @@ tr:
45
45
  status_tag:
46
46
  "yes": "Evet"
47
47
  "no": "Hayır"
48
+ "unset": "Hayır"
48
49
  main_content: "İçeriği görüntülemek için lütfen %{model}#main_content metodunu ekleyin."
49
50
  logout: "Çıkış Yap"
50
51
  powered_by: "%{active_admin} %{version} tarafından desteklenmektedir."
@@ -41,6 +41,7 @@ uk:
41
41
  status_tag:
42
42
  "yes": "Так"
43
43
  "no": "Ні"
44
+ "unset": "Ні"
44
45
  main_content: "Створіть %{model}#main_content для відображення вмісту."
45
46
  logout: "Вийти"
46
47
  powered_by: "Powered by %{active_admin} %{version}"
@@ -43,6 +43,7 @@ vi:
43
43
  status_tag:
44
44
  "yes": "Có"
45
45
  "no": "Không Có"
46
+ "unset": "Không Có"
46
47
  main_content: "Xin bổ sung %{model}#main_content để hiển thị nội dung."
47
48
  logout: "Đăng xuất"
48
49
  powered_by: "Powered by %{active_admin} %{version}"
@@ -44,6 +44,7 @@
44
44
  status_tag:
45
45
  "yes": "是"
46
46
  "no": "否"
47
+ "unset": "否"
47
48
  main_content: "请执行 %{model}#main_content 来显示内容."
48
49
  logout: "退出"
49
50
  powered_by: "Powered by %{active_admin} %{version}"
@@ -39,6 +39,7 @@
39
39
  status_tag:
40
40
  "yes": "是"
41
41
  "no": "否"
42
+ "unset": "否"
42
43
  main_content: "請實作 %{model}#main_content 以顯示內容。"
43
44
  logout: "登出"
44
45
  powered_by: "Powered by %{active_admin} %{version}"
@@ -106,6 +106,26 @@ ActiveAdmin.setup do |config|
106
106
  end
107
107
  ```
108
108
 
109
+ If you are creating a multi-tenant application you may want to have multiple namespaces mounted to the same path. We can do this using the `route_options` settings on the namespace
110
+
111
+ ```ruby
112
+ config.namespace :site_1 do |admin|
113
+ admin.route_options = { path: :admin, constraints: ->(request){ request.domain == "site1.com" } }
114
+ end
115
+
116
+ config.namespace :site_2 do |admin|
117
+ admin.route_options = { path: :admin, constraints: ->(request){ request.domain == "site2.com" } }
118
+ end
119
+ ```
120
+
121
+ If you would like to mount the namespace to a subdomain instead of path we can use the `route_options` for this as well
122
+
123
+ ```ruby
124
+ config.namespace :admin do |admin|
125
+ admin.route_options = { path: '', subdomain: 'admin' }
126
+ end
127
+ ```
128
+
109
129
  Each setting available in the Active Admin setup block is configurable on a per
110
130
  namespace basis.
111
131