activeadmin 2.5.0 → 2.8.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +120 -6
- data/CONTRIBUTING.md +11 -57
- data/README.md +2 -2
- data/app/assets/javascripts/active_admin/base.js +26 -18
- data/app/assets/stylesheets/active_admin/_header.scss +37 -3
- data/app/assets/stylesheets/active_admin/components/_comments.scss +2 -2
- data/app/assets/stylesheets/active_admin/mixins/_variables.scss +3 -0
- data/app/javascript/active_admin/base.js +9 -0
- data/app/javascript/active_admin/initializers/per-page.js +1 -1
- data/app/javascript/active_admin/lib/checkbox-toggler.js +3 -3
- data/app/javascript/active_admin/lib/dropdown-menu.js +1 -1
- data/app/javascript/active_admin/lib/modal-dialog.js +7 -7
- data/app/javascript/active_admin/lib/per-page.js +1 -1
- data/app/javascript/active_admin/lib/table-checkbox-toggler.js +1 -1
- data/app/views/layouts/active_admin_logged_out.html.erb +15 -5
- data/config/locales/ar.yml +6 -6
- data/config/locales/en-CA.yml +3 -3
- data/config/locales/en-GB.yml +3 -3
- data/config/locales/en.yml +3 -3
- data/config/locales/es-MX.yml +2 -1
- data/config/locales/es.yml +5 -5
- data/config/locales/fr.yml +4 -4
- data/config/locales/it.yml +18 -0
- data/config/locales/ja.yml +3 -3
- data/config/locales/lv.yml +2 -2
- data/config/locales/vi.yml +6 -5
- data/docs/0-installation.md +26 -2
- data/docs/11-decorators.md +16 -5
- data/docs/2-resource-customization.md +10 -1
- data/docs/3-index-pages.md +1 -1
- data/docs/9-batch-actions.md +2 -2
- data/docs/Gemfile +2 -2
- data/docs/Gemfile.lock +93 -84
- data/docs/_includes/top-menu.html +1 -1
- data/docs/documentation.md +1 -1
- data/docs/index.html +6 -6
- data/lib/active_admin.rb +60 -60
- data/lib/active_admin/application.rb +13 -13
- data/lib/active_admin/application_settings.rb +3 -3
- data/lib/active_admin/authorization_adapter.rb +3 -3
- data/lib/active_admin/base_controller.rb +4 -4
- data/lib/active_admin/base_controller/authorization.rb +13 -12
- data/lib/active_admin/batch_actions/controller.rb +3 -3
- data/lib/active_admin/batch_actions/resource_extension.rb +9 -8
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +3 -3
- data/lib/active_admin/batch_actions/views/batch_action_selector.rb +6 -6
- data/lib/active_admin/batch_actions/views/selection_cells.rb +3 -3
- data/lib/active_admin/cancan_adapter.rb +1 -1
- data/lib/active_admin/collection_decorator.rb +31 -0
- data/lib/active_admin/csv_builder.rb +11 -7
- data/lib/active_admin/dependency.rb +11 -11
- data/lib/active_admin/devise.rb +5 -5
- data/lib/active_admin/dsl.rb +1 -1
- data/lib/active_admin/dynamic_settings_node.rb +2 -2
- data/lib/active_admin/engine.rb +3 -3
- data/lib/active_admin/filters.rb +7 -7
- data/lib/active_admin/filters/active.rb +1 -1
- data/lib/active_admin/filters/active_filter.rb +5 -4
- data/lib/active_admin/filters/active_sidebar.rb +5 -5
- data/lib/active_admin/filters/forms.rb +6 -6
- data/lib/active_admin/filters/formtastic_addons.rb +1 -6
- data/lib/active_admin/filters/resource_extension.rb +1 -1
- data/lib/active_admin/form_builder.rb +21 -19
- data/lib/active_admin/generators/boilerplate.rb +1 -1
- data/lib/active_admin/helpers/optional_display.rb +2 -2
- data/lib/active_admin/inputs/datepicker_input.rb +1 -1
- data/lib/active_admin/inputs/filters/base.rb +1 -1
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +4 -4
- data/lib/active_admin/inputs/filters/boolean_input.rb +1 -1
- data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -1
- data/lib/active_admin/inputs/filters/date_range_input.rb +12 -9
- data/lib/active_admin/inputs/filters/select_input.rb +2 -2
- data/lib/active_admin/localizers.rb +1 -1
- data/lib/active_admin/localizers/resource_localizer.rb +3 -3
- data/lib/active_admin/menu.rb +6 -3
- data/lib/active_admin/menu_item.rb +7 -7
- data/lib/active_admin/namespace.rb +12 -12
- data/lib/active_admin/namespace_settings.rb +8 -5
- data/lib/active_admin/order_clause.rb +1 -1
- data/lib/active_admin/orm/active_record.rb +1 -1
- data/lib/active_admin/orm/active_record/comments.rb +19 -19
- data/lib/active_admin/orm/active_record/comments/comment.rb +3 -3
- data/lib/active_admin/orm/active_record/comments/views.rb +2 -2
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +19 -19
- data/lib/active_admin/page.rb +1 -1
- data/lib/active_admin/pundit_adapter.rb +5 -5
- data/lib/active_admin/resource.rb +17 -17
- data/lib/active_admin/resource/action_items.rb +5 -5
- data/lib/active_admin/resource/attributes.rb +1 -1
- data/lib/active_admin/resource/belongs_to.rb +2 -2
- data/lib/active_admin/resource/controllers.rb +1 -1
- data/lib/active_admin/resource/menu.rb +4 -4
- data/lib/active_admin/resource/naming.rb +5 -5
- data/lib/active_admin/resource/routes.rb +5 -5
- data/lib/active_admin/resource/scope_to.rb +7 -7
- data/lib/active_admin/resource/sidebars.rb +1 -1
- data/lib/active_admin/resource_controller.rb +12 -11
- data/lib/active_admin/resource_controller/data_access.rb +1 -1
- data/lib/active_admin/resource_controller/decorators.rb +6 -26
- data/lib/active_admin/resource_controller/streaming.rb +7 -6
- data/lib/active_admin/resource_dsl.rb +5 -5
- data/lib/active_admin/scope.rb +6 -6
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_factory.rb +17 -17
- data/lib/active_admin/view_helpers.rb +1 -1
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +3 -3
- data/lib/active_admin/view_helpers/display_helper.rb +5 -5
- data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -1
- data/lib/active_admin/view_helpers/fields_for.rb +2 -2
- data/lib/active_admin/views.rb +1 -1
- data/lib/active_admin/views/components/active_admin_form.rb +5 -5
- data/lib/active_admin/views/components/attributes_table.rb +5 -5
- data/lib/active_admin/views/components/blank_slate.rb +1 -1
- data/lib/active_admin/views/components/dropdown_menu.rb +8 -8
- data/lib/active_admin/views/components/index_list.rb +3 -3
- data/lib/active_admin/views/components/menu.rb +1 -1
- data/lib/active_admin/views/components/menu_item.rb +4 -4
- data/lib/active_admin/views/components/paginated_collection.rb +18 -18
- data/lib/active_admin/views/components/panel.rb +1 -1
- data/lib/active_admin/views/components/scopes.rb +7 -5
- data/lib/active_admin/views/components/site_title.rb +1 -1
- data/lib/active_admin/views/components/status_tag.rb +11 -11
- data/lib/active_admin/views/components/table_for.rb +17 -17
- data/lib/active_admin/views/components/tabs.rb +3 -3
- data/lib/active_admin/views/footer.rb +2 -1
- data/lib/active_admin/views/header.rb +2 -2
- data/lib/active_admin/views/index_as_blog.rb +1 -1
- data/lib/active_admin/views/index_as_grid.rb +1 -1
- data/lib/active_admin/views/index_as_table.rb +16 -16
- data/lib/active_admin/views/pages/base.rb +14 -10
- data/lib/active_admin/views/pages/index.rb +14 -13
- data/lib/active_admin/views/tabbed_navigation.rb +2 -2
- data/lib/active_admin/views/title_bar.rb +1 -1
- data/lib/activeadmin.rb +1 -1
- data/lib/generators/active_admin/assets/assets_generator.rb +2 -2
- data/lib/generators/active_admin/assets/templates/active_admin.scss +2 -2
- data/lib/generators/active_admin/devise/devise_generator.rb +5 -5
- data/lib/generators/active_admin/install/install_generator.rb +14 -8
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +9 -2
- data/lib/generators/active_admin/page/page_generator.rb +1 -1
- data/lib/generators/active_admin/resource/resource_generator.rb +3 -3
- data/lib/generators/active_admin/webpacker/plugins/jquery.js +7 -0
- data/lib/generators/active_admin/webpacker/templates/active_admin.js +5 -0
- data/lib/generators/active_admin/webpacker/templates/active_admin.scss +17 -0
- data/lib/generators/active_admin/webpacker/templates/print.scss +2 -0
- data/lib/generators/active_admin/webpacker/webpacker_generator.rb +26 -0
- data/lib/ransack_ext.rb +8 -8
- metadata +20 -8
@@ -52,6 +52,11 @@
|
|
52
52
|
margin: 0;
|
53
53
|
padding: 0;
|
54
54
|
|
55
|
+
li {
|
56
|
+
/* Hover on li, display the ul */
|
57
|
+
&:hover > ul { display: block;}
|
58
|
+
}
|
59
|
+
|
55
60
|
& > li {
|
56
61
|
display: inline-block;
|
57
62
|
margin-right: 4px;
|
@@ -95,8 +100,6 @@
|
|
95
100
|
}
|
96
101
|
|
97
102
|
|
98
|
-
/* Hover on li, display the ul */
|
99
|
-
&:hover ul { display: block;}
|
100
103
|
/* Drop down menus */
|
101
104
|
ul {
|
102
105
|
background: $hover-menu-item-background;
|
@@ -114,6 +117,7 @@
|
|
114
117
|
z-index: 1010;
|
115
118
|
|
116
119
|
li {
|
120
|
+
position: relative;
|
117
121
|
margin: 0px;
|
118
122
|
a {
|
119
123
|
background: none;
|
@@ -124,10 +128,40 @@
|
|
124
128
|
&.current {
|
125
129
|
a { @include rounded(0) }
|
126
130
|
}
|
131
|
+
|
132
|
+
&.has_nested > a {
|
133
|
+
background: url($menu-arrow-right-light-icon-url) no-repeat calc(100% - 7px) 55%;
|
134
|
+
padding-right: 20px;
|
135
|
+
}
|
136
|
+
|
137
|
+
&.has_nested:hover > a {
|
138
|
+
background: url($menu-arrow-right-dark-icon-url) no-repeat calc(100% - 7px) 55%;
|
139
|
+
color: #fff;
|
140
|
+
}
|
141
|
+
|
142
|
+
ul {
|
143
|
+
@include rounded-all(10px,10px,10px,10px);
|
144
|
+
margin-top: 0;
|
145
|
+
top: -3px;
|
146
|
+
left: 100%;
|
147
|
+
|
148
|
+
/* Create an invisible backdrop that adds 8px margin around the dropdown menu or submenu
|
149
|
+
that maintains the hover. This makes it much easier to navigate to submenus in
|
150
|
+
particular without losing hover accientally, especially near rounded corners. */
|
151
|
+
&:after {
|
152
|
+
content: "";
|
153
|
+
display: block;
|
154
|
+
position: absolute;
|
155
|
+
top: -8px;
|
156
|
+
left: -8px;
|
157
|
+
height: calc(100% + 16px);
|
158
|
+
width: calc(100% + 16px);
|
159
|
+
z-index: -2;
|
160
|
+
}
|
161
|
+
}
|
127
162
|
}
|
128
163
|
}
|
129
164
|
}
|
130
|
-
|
131
165
|
}
|
132
166
|
|
133
167
|
#tabs {
|
@@ -5,6 +5,9 @@
|
|
5
5
|
// Images
|
6
6
|
$menu-arrow-light-icon-url: 'data:image/png;base64,R0lGODlhBwAEAKIAAL6+vry8vIiIiJWVlf///3t7ewAAAAAAACH5BAEAAAUALAAAAAAHAAQAAAMLWLol80MoF5mQKgEAOw==' !default;
|
7
7
|
$menu-arrow-dark-icon-url: 'data:image/png;base64,R0lGODlhBwAEAKIAAG1tbWxsbElJSVBQUP///0JCQgAAAAAAACH5BAEAAAUALAAAAAAHAAQAAAMLWLol80MoF5mQKgEAOw==' !default;
|
8
|
+
$menu-arrow-right-light-icon-url: 'data:image/gif;base64,R0lGODlhBAAHAKECAKqqqszMzPkVFfkVFSH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAIALAAAAAAEAAcAAAIJlA0XKbH9nmAFADs=' !default;
|
9
|
+
$menu-arrow-right-dark-icon-url: 'data:image/gif;base64,R0lGODlhBAAHAMIEAG1tbWxsbElJSVBQUPkVFfkVFfkVFfkVFSH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAEALAAAAAAEAAcAAAMKGKqy02G8OGeACQA7' !default;
|
10
|
+
|
8
11
|
$orderable-icon-url: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAABGCAYAAAAAVo4aAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAH5JREFUeNpi3LhlOwMU1AExGxDXwARYoHQLEFdD2cxAXAliMKFJgEAFEHfBJEHGMKLhMpgkTsAEdch/NNwCk2xCdiEQtML4LEgCf6EubUX3Cgh0oNvJ+P//f7wOGpUclRwYSZb41CyidNbB8giNM+9oXhmVHHm5bJjUSAABBgDKKiwMMUxPwgAAAABJRU5ErkJggg==' !default;
|
9
12
|
|
10
13
|
// Colors
|
@@ -17,3 +17,12 @@ import "./initializers/has-many"
|
|
17
17
|
import "./initializers/per-page"
|
18
18
|
import "./initializers/table-checkbox-toggler"
|
19
19
|
import "./initializers/tabs"
|
20
|
+
|
21
|
+
import ModalDialog from "./lib/modal-dialog";
|
22
|
+
|
23
|
+
function modal_dialog(message, inputs, callback) {
|
24
|
+
console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage.");
|
25
|
+
return ModalDialog(message, inputs, callback);
|
26
|
+
}
|
27
|
+
|
28
|
+
export { ModalDialog, modal_dialog };
|
@@ -6,7 +6,7 @@ class CheckboxToggler {
|
|
6
6
|
this._bind();
|
7
7
|
}
|
8
8
|
|
9
|
-
option(
|
9
|
+
option(_key, _value) {
|
10
10
|
}
|
11
11
|
|
12
12
|
_init() {
|
@@ -30,7 +30,7 @@ class CheckboxToggler {
|
|
30
30
|
this.toggle_all_checkbox.change(() => this._didChangeToggleAllCheckbox());
|
31
31
|
}
|
32
32
|
|
33
|
-
_didChangeCheckbox(
|
33
|
+
_didChangeCheckbox(_checkbox){
|
34
34
|
const numChecked = this.checkboxes.filter(':checked').length;
|
35
35
|
|
36
36
|
const allChecked = numChecked === this.checkboxes.length;
|
@@ -44,6 +44,6 @@ class CheckboxToggler {
|
|
44
44
|
this.checkboxes.prop({ checked: setting });
|
45
45
|
return setting;
|
46
46
|
}
|
47
|
-
}
|
47
|
+
}
|
48
48
|
|
49
49
|
export default CheckboxToggler;
|
@@ -1,14 +1,14 @@
|
|
1
1
|
function ModalDialog(message, inputs, callback){
|
2
2
|
let html = `<form id="dialog_confirm" title="${message}"><ul>`;
|
3
3
|
for (let name in inputs) {
|
4
|
-
var
|
4
|
+
var opts, wrapper;
|
5
5
|
let type = inputs[name];
|
6
6
|
if (/^(datepicker|checkbox|text|number)$/.test(type)) {
|
7
7
|
wrapper = 'input';
|
8
8
|
} else if (type === 'textarea') {
|
9
9
|
wrapper = 'textarea';
|
10
10
|
} else if ($.isArray(type)) {
|
11
|
-
[wrapper,
|
11
|
+
[wrapper, opts, type] = ['select', type, ''];
|
12
12
|
} else {
|
13
13
|
throw new Error(`Unsupported input type: {${name}: ${type}}`);
|
14
14
|
}
|
@@ -21,20 +21,20 @@ function ModalDialog(message, inputs, callback){
|
|
21
21
|
const result = [];
|
22
22
|
|
23
23
|
opts.forEach(v => {
|
24
|
-
const $elem = $(
|
24
|
+
const $elem = $('<option></option>');
|
25
25
|
if ($.isArray(v)) {
|
26
26
|
$elem.text(v[0]).val(v[1]);
|
27
27
|
} else {
|
28
28
|
$elem.text(v);
|
29
29
|
}
|
30
|
-
result.push($elem.wrap('<div>').parent().html());
|
30
|
+
result.push($elem.wrap('<div></div>').parent().html());
|
31
31
|
});
|
32
32
|
|
33
33
|
return result;
|
34
34
|
})()).join('') : '') +
|
35
35
|
`</${wrapper}>` +
|
36
36
|
"</li>";
|
37
|
-
[wrapper,
|
37
|
+
[wrapper, opts, type, klass] = []; // unset any temporary variables
|
38
38
|
}
|
39
39
|
|
40
40
|
html += "</ul></form>";
|
@@ -44,7 +44,7 @@ function ModalDialog(message, inputs, callback){
|
|
44
44
|
|
45
45
|
form.dialog({
|
46
46
|
modal: true,
|
47
|
-
open(
|
47
|
+
open(_event, _ui) {
|
48
48
|
$('body').trigger('modal_dialog:after_open', [form]);
|
49
49
|
},
|
50
50
|
dialogClass: 'active_admin_dialog',
|
@@ -58,6 +58,6 @@ function ModalDialog(message, inputs, callback){
|
|
58
58
|
}
|
59
59
|
}
|
60
60
|
});
|
61
|
-
}
|
61
|
+
}
|
62
62
|
|
63
63
|
export default ModalDialog;
|
@@ -6,10 +6,18 @@
|
|
6
6
|
<title><%= [@page_title, ActiveAdmin.application.site_title(self)].compact.join(" | ") %></title>
|
7
7
|
|
8
8
|
<% ActiveAdmin.application.stylesheets.each do |style, options| %>
|
9
|
-
|
9
|
+
<% if ActiveAdmin.application.use_webpacker %>
|
10
|
+
<%= stylesheet_pack_tag style, **options %>
|
11
|
+
<% else %>
|
12
|
+
<%= stylesheet_link_tag style, **options %>
|
13
|
+
<% end %>
|
10
14
|
<% end %>
|
11
15
|
<% ActiveAdmin.application.javascripts.each do |path| %>
|
12
|
-
|
16
|
+
<% if ActiveAdmin.application.use_webpacker %>
|
17
|
+
<%= javascript_pack_tag path %>
|
18
|
+
<% else %>
|
19
|
+
<%= javascript_include_tag path %>
|
20
|
+
<% end %>
|
13
21
|
<% end %>
|
14
22
|
|
15
23
|
<%= favicon_link_tag ActiveAdmin.application.favicon if ActiveAdmin.application.favicon %>
|
@@ -24,9 +32,11 @@
|
|
24
32
|
<div id="wrapper">
|
25
33
|
|
26
34
|
<div id="content_wrapper">
|
27
|
-
|
28
|
-
|
29
|
-
|
35
|
+
<div class="flashes">
|
36
|
+
<% flash_messages.each do |type, message| %>
|
37
|
+
<%= content_tag :div, message, class: "flash flash_#{type}" %>
|
38
|
+
<% end %>
|
39
|
+
</div>
|
30
40
|
<div id="active_admin_content">
|
31
41
|
<%= yield %>
|
32
42
|
</div>
|
data/config/locales/ar.yml
CHANGED
@@ -8,7 +8,7 @@ ar:
|
|
8
8
|
edit: "تعديل"
|
9
9
|
delete: "حذف"
|
10
10
|
delete_confirmation: "هل تريد تأكيد الحذف؟"
|
11
|
-
new_model: "
|
11
|
+
new_model: "%{model} جديد"
|
12
12
|
edit_model: "تعديل %{model}"
|
13
13
|
delete_model: "حذف %{model}"
|
14
14
|
details: "تفاصيل %{model}"
|
@@ -97,12 +97,12 @@ ar:
|
|
97
97
|
password:
|
98
98
|
title: "كلمة المرور"
|
99
99
|
sign_up:
|
100
|
-
title: "تسجيل
|
101
|
-
submit: "تسجيل
|
100
|
+
title: "تسجيل"
|
101
|
+
submit: "تسجيل"
|
102
102
|
login:
|
103
|
-
title: "
|
103
|
+
title: "تسجيل الدخول"
|
104
104
|
remember_me: "تذكرني"
|
105
|
-
submit: "
|
105
|
+
submit: "تسجيل الدخول"
|
106
106
|
reset_password:
|
107
107
|
title: "هل نسيت كلمة المرور؟"
|
108
108
|
submit: "استرجاع كلمة المرور"
|
@@ -117,7 +117,7 @@ ar:
|
|
117
117
|
submit: "إعادة ارسال تعليمات التأكيد"
|
118
118
|
links:
|
119
119
|
sign_up: "التسجيل"
|
120
|
-
sign_in: "
|
120
|
+
sign_in: "تسجيل الدخول"
|
121
121
|
forgot_your_password: "هل نسيت كلمة المرور؟"
|
122
122
|
sign_in_with_omniauth_provider: "تسجيل الدخول بـ %{provider}"
|
123
123
|
resend_unlock_instructions: "إعادة إرسال تعليمات تنشيط الحساب"
|
data/config/locales/en-CA.yml
CHANGED
@@ -68,8 +68,8 @@
|
|
68
68
|
default_confirmation: "Are you sure you want to do this?"
|
69
69
|
delete_confirmation: "Are you sure you want to delete these %{plural_model}?"
|
70
70
|
succesfully_destroyed:
|
71
|
-
one: "Successfully
|
72
|
-
other: "Successfully
|
71
|
+
one: "Successfully deleted 1 %{model}"
|
72
|
+
other: "Successfully deleted %{count} %{plural_model}"
|
73
73
|
selection_toggle_explanation: "(Toggle Selection)"
|
74
74
|
action_label: "%{title} Selected"
|
75
75
|
labels:
|
@@ -82,7 +82,7 @@
|
|
82
82
|
author: "Author"
|
83
83
|
add: "Add Comment"
|
84
84
|
delete: "Delete Comment"
|
85
|
-
delete_confirmation: "Are you sure you want to delete these
|
85
|
+
delete_confirmation: "Are you sure you want to delete these comments?"
|
86
86
|
resource: "Resource"
|
87
87
|
no_comments_yet: "No comments yet."
|
88
88
|
author_missing: "Anonymous"
|
data/config/locales/en-GB.yml
CHANGED
@@ -68,8 +68,8 @@
|
|
68
68
|
default_confirmation: "Are you sure you want to do this?"
|
69
69
|
delete_confirmation: "Are you sure you want to delete these %{plural_model}?"
|
70
70
|
succesfully_destroyed:
|
71
|
-
one: "Successfully
|
72
|
-
other: "Successfully
|
71
|
+
one: "Successfully deleted 1 %{model}"
|
72
|
+
other: "Successfully deleted %{count} %{plural_model}"
|
73
73
|
selection_toggle_explanation: "(Toggle Selection)"
|
74
74
|
action_label: "%{title} Selected"
|
75
75
|
labels:
|
@@ -82,7 +82,7 @@
|
|
82
82
|
author: "Author"
|
83
83
|
add: "Add Comment"
|
84
84
|
delete: "Delete Comment"
|
85
|
-
delete_confirmation: "Are you sure you want to delete these
|
85
|
+
delete_confirmation: "Are you sure you want to delete these comments?"
|
86
86
|
resource: "Resource"
|
87
87
|
no_comments_yet: "No comments yet."
|
88
88
|
author_missing: "Anonymous"
|
data/config/locales/en.yml
CHANGED
@@ -91,8 +91,8 @@ en:
|
|
91
91
|
default_confirmation: "Are you sure you want to do this?"
|
92
92
|
delete_confirmation: "Are you sure you want to delete these %{plural_model}?"
|
93
93
|
succesfully_destroyed:
|
94
|
-
one: "Successfully
|
95
|
-
other: "Successfully
|
94
|
+
one: "Successfully deleted 1 %{model}"
|
95
|
+
other: "Successfully deleted %{count} %{plural_model}"
|
96
96
|
selection_toggle_explanation: "(Toggle Selection)"
|
97
97
|
action_label: "%{title} Selected"
|
98
98
|
labels:
|
@@ -105,7 +105,7 @@ en:
|
|
105
105
|
author: "Author"
|
106
106
|
add: "Add Comment"
|
107
107
|
delete: "Delete Comment"
|
108
|
-
delete_confirmation: "Are you sure you want to delete these
|
108
|
+
delete_confirmation: "Are you sure you want to delete these comments?"
|
109
109
|
resource: "Resource"
|
110
110
|
no_comments_yet: "No comments yet."
|
111
111
|
author_missing: "Anonymous"
|
data/config/locales/es-MX.yml
CHANGED
@@ -86,7 +86,8 @@ es-MX:
|
|
86
86
|
title: "Cambie su contraseña"
|
87
87
|
submit: "Cambiar mi contraseña"
|
88
88
|
links:
|
89
|
-
sign_in: "
|
89
|
+
sign_in: "Iniciar Sesión"
|
90
|
+
sign_up: "Registrarse"
|
90
91
|
forgot_your_password: "¿Olvidó su contraseña?"
|
91
92
|
sign_in_with_omniauth_provider: "Conéctate con %{provider}"
|
92
93
|
index_list:
|
data/config/locales/es.yml
CHANGED
@@ -23,7 +23,7 @@ es:
|
|
23
23
|
view: "Ver"
|
24
24
|
edit: "Editar"
|
25
25
|
delete: "Eliminar"
|
26
|
-
delete_confirmation: "¿
|
26
|
+
delete_confirmation: "¿Confirma que desea borrar este elemento?"
|
27
27
|
create_another: "Crear otro %{model}"
|
28
28
|
new_model: "Añadir %{model}"
|
29
29
|
edit_model: "Editar %{model}"
|
@@ -89,7 +89,7 @@ es:
|
|
89
89
|
batch_actions:
|
90
90
|
button_label: "Acciones en masa"
|
91
91
|
default_confirmation: "¿Seguro que quieres hacer esto?"
|
92
|
-
delete_confirmation: "
|
92
|
+
delete_confirmation: "Se eliminarán %{plural_model}. ¿Desea continuar?"
|
93
93
|
succesfully_destroyed:
|
94
94
|
one: "Se ha destruido 1 %{model} con éxito"
|
95
95
|
other: "Se han destruido %{count} %{plural_model} con éxito"
|
@@ -105,7 +105,7 @@ es:
|
|
105
105
|
author: "Autor"
|
106
106
|
add: "Comentar"
|
107
107
|
delete: "Borrar Comentario"
|
108
|
-
delete_confirmation: "¿
|
108
|
+
delete_confirmation: "¿Confirma que desea borrar este comentario?"
|
109
109
|
resource: "Recurso"
|
110
110
|
no_comments_yet: "No hay comentarios aún."
|
111
111
|
author_missing: "Anónimo"
|
@@ -143,8 +143,8 @@ es:
|
|
143
143
|
title: "Reenviar instrucciones de confirmación"
|
144
144
|
submit: "Reenviar instrucciones de confirmación"
|
145
145
|
links:
|
146
|
-
sign_up: "
|
147
|
-
sign_in: "
|
146
|
+
sign_up: "Registrarse"
|
147
|
+
sign_in: "Iniciar Sesión"
|
148
148
|
forgot_your_password: "¿Olvidó su contraseña?"
|
149
149
|
sign_in_with_omniauth_provider: "Conéctate con %{provider}"
|
150
150
|
resend_unlock_instructions: "Reenviar instrucciones de desbloqueo"
|
data/config/locales/fr.yml
CHANGED
@@ -7,7 +7,7 @@ fr:
|
|
7
7
|
view: "Voir"
|
8
8
|
edit: "Modifier"
|
9
9
|
delete: "Supprimer"
|
10
|
-
delete_confirmation: "
|
10
|
+
delete_confirmation: "Voulez-vous vraiment supprimer ceci ?"
|
11
11
|
create_another: "Créer autre %{model}"
|
12
12
|
new_model: "Créer %{model}"
|
13
13
|
edit_model: "Modifier %{model}"
|
@@ -69,8 +69,8 @@ fr:
|
|
69
69
|
button_label: "Actions"
|
70
70
|
batch_actions:
|
71
71
|
button_label: "Actions groupées"
|
72
|
-
default_confirmation: "
|
73
|
-
delete_confirmation: "
|
72
|
+
default_confirmation: "Voulez-vous vraiment faire cela ?"
|
73
|
+
delete_confirmation: "Voulez-vous vraiment supprimer ces %{plural_model} ?"
|
74
74
|
succesfully_destroyed:
|
75
75
|
one: "1 %{model} supprimé"
|
76
76
|
other: "%{count} %{plural_model} supprimés"
|
@@ -86,7 +86,7 @@ fr:
|
|
86
86
|
author: "Auteur"
|
87
87
|
add: "Ajouter un commentaire"
|
88
88
|
delete: "Supprimer ce commentaire"
|
89
|
-
delete_confirmation: "
|
89
|
+
delete_confirmation: "Voulez-vous vraiment supprimer ce commentaire ?"
|
90
90
|
resource: "Ressource"
|
91
91
|
no_comments_yet: "Aucun commentaire actuellement"
|
92
92
|
author_missing: "Anonyme"
|
data/config/locales/it.yml
CHANGED
@@ -1,4 +1,20 @@
|
|
1
1
|
it:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
comment:
|
5
|
+
one: "Commento"
|
6
|
+
other: "Commenti"
|
7
|
+
active_admin/comment:
|
8
|
+
one: "Commento"
|
9
|
+
other: "Commenti"
|
10
|
+
attributes:
|
11
|
+
active_admin/comment:
|
12
|
+
author_type: "Tipo di Autore"
|
13
|
+
body: "Corpo"
|
14
|
+
created_at: "Creato il"
|
15
|
+
namespace: "Namespace"
|
16
|
+
resource_type: "Tipo di risorsa"
|
17
|
+
updated_at: "Aggiornato il"
|
2
18
|
active_admin:
|
3
19
|
dashboard: Dashboard
|
4
20
|
dashboard_welcome:
|
@@ -37,6 +53,8 @@ it:
|
|
37
53
|
lteq_datetime: "Minore o uguale a"
|
38
54
|
from: "Da"
|
39
55
|
to: "A"
|
56
|
+
scopes:
|
57
|
+
all: "Tutti"
|
40
58
|
search_status:
|
41
59
|
headline: "Situazione filtri:"
|
42
60
|
current_scope: "Contesto selezionato:"
|