activeadmin 2.0.0 → 2.4.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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +97 -6
  3. data/CONTRIBUTING.md +3 -5
  4. data/README.md +8 -1
  5. data/app/assets/javascripts/active_admin/lib/batch_actions.es6 +5 -1
  6. data/app/views/kaminari/active_admin_countless/_first_page.html.erb +11 -0
  7. data/app/views/kaminari/active_admin_countless/_gap.html.erb +8 -0
  8. data/app/views/kaminari/active_admin_countless/_next_page.html.erb +11 -0
  9. data/app/views/kaminari/active_admin_countless/_page.html.erb +12 -0
  10. data/app/views/kaminari/active_admin_countless/_paginator.html.erb +24 -0
  11. data/app/views/kaminari/active_admin_countless/_prev_page.html.erb +11 -0
  12. data/config/locales/ar.yml +3 -2
  13. data/config/locales/bg.yml +1 -0
  14. data/config/locales/bs.yml +1 -0
  15. data/config/locales/ca.yml +1 -1
  16. data/config/locales/cs.yml +1 -0
  17. data/config/locales/da.yml +1 -0
  18. data/config/locales/de-CH.yml +1 -0
  19. data/config/locales/de.yml +19 -0
  20. data/config/locales/el.yml +1 -0
  21. data/config/locales/en-CA.yml +1 -0
  22. data/config/locales/en-GB.yml +1 -0
  23. data/config/locales/en.yml +1 -0
  24. data/config/locales/eo.yml +1 -0
  25. data/config/locales/es-MX.yml +1 -0
  26. data/config/locales/es.yml +1 -0
  27. data/config/locales/fa.yml +1 -0
  28. data/config/locales/fi.yml +1 -0
  29. data/config/locales/fr.yml +2 -1
  30. data/config/locales/he.yml +1 -0
  31. data/config/locales/hr.yml +1 -0
  32. data/config/locales/hu.yml +1 -0
  33. data/config/locales/id.yml +1 -0
  34. data/config/locales/it.yml +1 -0
  35. data/config/locales/ja.yml +1 -0
  36. data/config/locales/ko.yml +1 -0
  37. data/config/locales/lt.yml +1 -0
  38. data/config/locales/lv.yml +1 -0
  39. data/config/locales/mk.yml +134 -0
  40. data/config/locales/nb.yml +1 -0
  41. data/config/locales/nl.yml +1 -0
  42. data/config/locales/pl.yml +1 -0
  43. data/config/locales/pt-BR.yml +1 -0
  44. data/config/locales/pt-PT.yml +1 -0
  45. data/config/locales/ro.yml +1 -0
  46. data/config/locales/ru.yml +1 -0
  47. data/config/locales/sk.yml +60 -0
  48. data/config/locales/sv-SE.yml +1 -0
  49. data/config/locales/tr.yml +1 -0
  50. data/config/locales/uk.yml +1 -0
  51. data/config/locales/vi.yml +1 -0
  52. data/config/locales/zh-CN.yml +1 -0
  53. data/config/locales/zh-TW.yml +1 -0
  54. data/docs/12-arbre-components.md +13 -0
  55. data/docs/13-authorization-adapter.md +2 -2
  56. data/docs/2-resource-customization.md +1 -1
  57. data/docs/3-index-pages/index-as-table.md +7 -0
  58. data/docs/Gemfile +0 -1
  59. data/docs/Gemfile.lock +4 -5
  60. data/docs/_config.yml +2 -0
  61. data/docs/_includes/top-menu.html +2 -2
  62. data/docs/index.html +108 -7
  63. data/docs/stylesheets/main.css +29 -0
  64. data/lib/active_admin.rb +1 -0
  65. data/lib/active_admin/application.rb +3 -4
  66. data/lib/active_admin/base_controller/authorization.rb +1 -0
  67. data/lib/active_admin/batch_actions/resource_extension.rb +5 -1
  68. data/lib/active_admin/controller_action.rb +2 -1
  69. data/lib/active_admin/csv_builder.rb +3 -2
  70. data/lib/active_admin/dependency.rb +0 -4
  71. data/lib/active_admin/error.rb +3 -1
  72. data/lib/active_admin/filters/active_filter.rb +2 -3
  73. data/lib/active_admin/filters/resource_extension.rb +24 -0
  74. data/lib/active_admin/generators/boilerplate.rb +12 -4
  75. data/lib/active_admin/namespace_settings.rb +13 -0
  76. data/lib/active_admin/order_clause.rb +1 -1
  77. data/lib/active_admin/page_presenter.rb +2 -1
  78. data/lib/active_admin/pundit_adapter.rb +7 -3
  79. data/lib/active_admin/resource.rb +15 -1
  80. data/lib/active_admin/resource/belongs_to.rb +6 -1
  81. data/lib/active_admin/resource/model.rb +15 -0
  82. data/lib/active_admin/resource/routes.rb +11 -3
  83. data/lib/active_admin/resource_controller.rb +2 -0
  84. data/lib/active_admin/resource_controller/decorators.rb +2 -2
  85. data/lib/active_admin/resource_controller/polymorphic_routes.rb +36 -0
  86. data/lib/active_admin/resource_dsl.rb +1 -1
  87. data/lib/active_admin/router.rb +2 -1
  88. data/lib/active_admin/scope.rb +7 -3
  89. data/lib/active_admin/sidebar_section.rb +3 -1
  90. data/lib/active_admin/version.rb +1 -1
  91. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +2 -2
  92. data/lib/active_admin/view_helpers/display_helper.rb +3 -2
  93. data/lib/active_admin/views/components/paginated_collection.rb +2 -2
  94. data/lib/active_admin/views/components/status_tag.rb +5 -1
  95. data/lib/active_admin/views/index_as_table.rb +7 -0
  96. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +18 -2
  97. data/lib/generators/active_admin/resource/templates/admin.rb.erb +40 -37
  98. data/lib/ransack_ext.rb +2 -2
  99. metadata +17 -9
  100. data/lib/active_admin/reloader.rb +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '034169cf2f9474ee4754639ae5734d3338159a7897ee28b552592eadc71d428c'
4
- data.tar.gz: a321cbba45ec6ed69e1730f6b2a0c6c2f40dd05ad1e62aab03f99f1699f762cd
3
+ metadata.gz: ddd5ccf937ae176b3ba0e13d2af256758dbde0c4aafe9b966c752bb1bb411ea8
4
+ data.tar.gz: fa4bbd86cf444fb150d6cd624ed8a3125144481878001de32461f5256e30b835
5
5
  SHA512:
6
- metadata.gz: bf8442376b7c017615702ad0cd1a03c553d8b78e9ee1e6c131f5975d8555fc14b17861f75df300c5907b6bd73fa7e583d6791c621a46fe05ed163aba3ad20aef
7
- data.tar.gz: 14222c5fb8fbad8af29f901aaaf3c4d97fa441454928256f1e84a84f5068ef608f1343c58cd3635eb8927989ef442c690e4f6b50f5ea4bb1809d328c71cc757b
6
+ metadata.gz: 84c708ca4b0aa8580a3181de153dd698f39c427e9c28adca8c7b3d1f75ff09ba41fa9955d84c6eeb3beccd174db2147a54980123302093cb0d51dd22a021ff40
7
+ data.tar.gz: 95fc6f7f92134b18270a2ccfdb05c1c55e9151bde9390bbd752f3735633f494c4145674534c1f2bc964687dc513aeb925a5427c8678ea3380340b89859431ebe
@@ -2,6 +2,63 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.4.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.3.1..v2.4.0)
6
+
7
+ ### Enhancements
8
+
9
+ * Make optimization to not use expensive COUNT queries also work for decorated actions. [#5811] by [@irmela]
10
+ * Render a text filter instead of a select for large associations (opt-in) [#5548] by [@DanielHeath]
11
+ * Improve German translations [#5874] by [@juril33t]
12
+
13
+ ## 2.3.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.3.0..v2.3.1)
14
+
15
+ ### Bug Fixes
16
+
17
+ * Revert ransack version pinning because 2.3 has an outstanding bug that affects quite a lot of users. See [this ransack issue](https://github.com/activerecord-hackery/ransack/issues/1039) for more information. [#5854] by [@deivid-rodriguez]
18
+
19
+ ## 2.3.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.2.0..v2.3.0)
20
+
21
+ ### Enhancements
22
+
23
+ #### Minor
24
+
25
+ * Bump minimum ransack requirement to make sure everyone gets a version that works ok with all supported versions of Rails. [#5831] by [@deivid-rodriguez]
26
+
27
+ ### Bug Fixes
28
+
29
+ * Fix CSVBuilder not respecting `ActiveAdmin.application.csv_options = { humanize_name: false }` setting. [#5800] by [@HappyKadaver]
30
+ * Fix crash when displaying current filters after filtering by a nested resource. [#5816] by [@deivid-rodriguez]
31
+ * Fix pagination when `pagination_total` is false to not show a "Last" link, since it's incorrect because we don't have the total pages information. [#5822] by [@deivid-rodriguez]
32
+ * Fix optional nested resources causing incorrect routes to be generated, when renamed resources (through `:as` option) are involved. [#5826] by [@ndbroadbent], [@Kris-LIBIS] and [@deivid-rodriguez]
33
+ * Fix double modal issue in applications using turbolinks 5. [#5842] by [@sgara]
34
+
35
+ ## 2.2.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.1.0..v2.2.0)
36
+
37
+ ### Enhancements
38
+
39
+ #### Minor
40
+
41
+ * The `status_tag` component now supports different labels for `false` and `nil` boolean cases through the locale. Both default to display "No" for backwards compatibility. [#5794] by [@javierjulio]
42
+ * Add Macedonian locale. [#5710] by [@violeta-p]
43
+
44
+ ### Bug Fixes
45
+
46
+ * Fix pundit policy retrieving for static pages when the pundit namespace is :active_admin. [#5777] by [@kwent]
47
+ * Fix show page title not being properly escaped if title's content included HTML. [#5802] by [@deivid-rodriguez]
48
+ * Revert [21b6138f] from [#5740] since it actually caused the performance in development to regress. [#5801] by [@deivid-rodriguez]
49
+
50
+ ## 2.1.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.0.0..v2.1.0)
51
+
52
+ ### Bug Fixes
53
+
54
+ * Ensure application gets reloaded only once. [#5740] by [@jscheid]
55
+ * Crash when rendering comments from a custom controller block. [#5758] by [@deivid-rodriguez]
56
+ * Switch `sass` dependency to `sassc-rails`, since `sass` is no longer supported and since it restores support for directly importing `css` files. [#5504] by [@deivid-rodriguez]
57
+
58
+ ### Removals
59
+
60
+ * Support for ruby 2.3 has been removed. [#5751] by [@deivid-rodriguez]
61
+
5
62
  ## 2.0.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.0.0.rc2..v2.0.0)
6
63
 
7
64
  _No changes_.
@@ -12,13 +69,13 @@ _No changes_.
12
69
 
13
70
  #### Minor
14
71
 
15
- * Require arbre `~> 1.2, >= 1.2.1` [#5726] by [@ionut998], and [#5738] by [@deivid-rodriguez]
72
+ * Require arbre `~> 1.2, >= 1.2.1`. [#5726] by [@ionut998], and [#5738] by [@deivid-rodriguez]
16
73
 
17
74
  ## 2.0.0.rc1 [☰](https://github.com/activeadmin/activeadmin/compare/v1.4.3..v2.0.0.rc1)
18
75
 
19
76
  ### Enhancements
20
77
 
21
- * Add your own content to the site `<head>`, like analytics [#5590] by [@buren]
78
+ * Add your own content to the site `<head>`, like analytics. [#5590] by [@buren]
22
79
 
23
80
  ```ruby
24
81
  ActiveAdmin.setup do |config|
@@ -26,6 +83,8 @@ _No changes_.
26
83
  end
27
84
  ```
28
85
 
86
+ * Consider authorization when displaying comments in show page. [#5555] by [@amiuhle]
87
+
29
88
  #### Minor
30
89
 
31
90
  * Add better support for rendering lists. [#5370] by [@dkniffin]
@@ -341,6 +400,8 @@ Please check [0-6-stable] for previous changes.
341
400
  [#5043]: https://github.com/activeadmin/activeadmin/issues/5043
342
401
  [#5198]: https://github.com/activeadmin/activeadmin/issues/5198
343
402
 
403
+ [21b6138f]: https://github.com/activeadmin/activeadmin/pull/5740/commits/21b6138fdcf58cd54c3f1d3f60cb1127b174b40f
404
+
344
405
  [#3091]: https://github.com/activeadmin/activeadmin/pull/3091
345
406
  [#3435]: https://github.com/activeadmin/activeadmin/pull/3435
346
407
  [#4477]: https://github.com/activeadmin/activeadmin/pull/4477
@@ -422,8 +483,10 @@ Please check [0-6-stable] for previous changes.
422
483
  [#5464]: https://github.com/activeadmin/activeadmin/pull/5464
423
484
  [#5486]: https://github.com/activeadmin/activeadmin/pull/5486
424
485
  [#5501]: https://github.com/activeadmin/activeadmin/pull/5501
486
+ [#5504]: https://github.com/activeadmin/activeadmin/pull/5504
425
487
  [#5517]: https://github.com/activeadmin/activeadmin/pull/5517
426
488
  [#5537]: https://github.com/activeadmin/activeadmin/pull/5537
489
+ [#5555]: https://github.com/activeadmin/activeadmin/pull/5555
427
490
  [#5583]: https://github.com/activeadmin/activeadmin/pull/5583
428
491
  [#5608]: https://github.com/activeadmin/activeadmin/pull/5608
429
492
  [#5611]: https://github.com/activeadmin/activeadmin/pull/5611
@@ -433,19 +496,40 @@ Please check [0-6-stable] for previous changes.
433
496
  [#5650]: https://github.com/activeadmin/activeadmin/pull/5650
434
497
  [#5590]: https://github.com/activeadmin/activeadmin/pull/5590
435
498
  [#5662]: https://github.com/activeadmin/activeadmin/pull/5662
499
+ [#5710]: https://github.com/activeadmin/activeadmin/pull/5710
436
500
  [#5726]: https://github.com/activeadmin/activeadmin/pull/5726
437
501
  [#5738]: https://github.com/activeadmin/activeadmin/pull/5738
502
+ [#5740]: https://github.com/activeadmin/activeadmin/pull/5740
503
+ [#5751]: https://github.com/activeadmin/activeadmin/pull/5751
504
+ [#5758]: https://github.com/activeadmin/activeadmin/pull/5758
505
+ [#5777]: https://github.com/activeadmin/activeadmin/pull/5777
506
+ [#5794]: https://github.com/activeadmin/activeadmin/pull/5794
507
+ [#5800]: https://github.com/activeadmin/activeadmin/pull/5800
508
+ [#5801]: https://github.com/activeadmin/activeadmin/pull/5801
509
+ [#5802]: https://github.com/activeadmin/activeadmin/pull/5802
510
+ [#5811]: https://github.com/activeadmin/activeadmin/pull/5811
511
+ [#5816]: https://github.com/activeadmin/activeadmin/pull/5816
512
+ [#5822]: https://github.com/activeadmin/activeadmin/pull/5822
513
+ [#5826]: https://github.com/activeadmin/activeadmin/pull/5826
514
+ [#5831]: https://github.com/activeadmin/activeadmin/pull/5831
515
+ [#5548]: https://github.com/activeadmin/activeadmin/pull/5548
516
+ [#5842]: https://github.com/activeadmin/activeadmin/pull/5842
517
+ [#5854]: https://github.com/activeadmin/activeadmin/pull/5854
518
+ [#5874]: https://github.com/activeadmin/activeadmin/pull/5874
438
519
 
439
520
  [@5t111111]: https://github.com/5t111111
440
521
  [@aarek]: https://github.com/aarek
441
522
  [@ajw725]: https://github.com/ajw725
442
523
  [@alex-bogomolov]: https://github.com/alex-bogomolov
443
524
  [@amiel]: https://github.com/amiel
525
+ [@amiuhle]: https://github.com/amiuhle
444
526
  [@andreslemik]: https://github.com/andreslemik
527
+ [@bartoszkopinski]: https://github.com/bartoszkopinski
445
528
  [@blocknotes]: https://github.com/blocknotes
446
529
  [@bolshakov]: https://github.com/bolshakov
447
530
  [@buren]: https://github.com/buren
448
531
  [@chancancode]: https://github.com/chancancode
532
+ [@chrp]: https://github.com/chrp
449
533
  [@chumakoff]: https://github.com/chumakoff
450
534
  [@craigmcnamara]: https://github.com/craigmcnamara
451
535
  [@DanielHeath]: https://github.com/DanielHeath
@@ -461,20 +545,28 @@ Please check [0-6-stable] for previous changes.
461
545
  [@Fivell]: https://github.com/Fivell
462
546
  [@glebtv]: https://github.com/glebtv
463
547
  [@gonzedge]: https://github.com/gonzedge
548
+ [@HappyKadaver]: https://github.com/HappyKadaver
464
549
  [@innparusu95]: https://github.com/innparusu95
465
550
  [@ionut998]: https://github.com/ionut998
551
+ [@irmela]: https://github.com/irmela
466
552
  [@jasl]: https://github.com/jasl
467
553
  [@javierjulio]: https://github.com/javierjulio
468
554
  [@jawa]: https://github.com/jawa
469
555
  [@JiiHu]: https://github.com/JiiHu
470
556
  [@johnnyshields]: https://github.com/johnnyshields
557
+ [@jscheid]: https://github.com/jscheid
558
+ [@juril33t]: https://github.com/juril33t
471
559
  [@kjeldahl]: https://github.com/kjeldahl
472
560
  [@kobeumut]: https://github.com/kobeumut
561
+ [@Kris-LIBIS]: https://github.com/Kris-LIBIS
562
+ [@kwent]: https://github.com/kwent
473
563
  [@leio10]: https://github.com/leio10
474
564
  [@markstory]: https://github.com/markstory
475
565
  [@mauriciopasquier]: https://github.com/mauriciopasquier
476
566
  [@mconiglio]: https://github.com/mconiglio
567
+ [@ndbroadbent]: https://github.com/ndbroadbent
477
568
  [@Nguyenanh]: https://github.com/Nguyenanh
569
+ [@panasyuk]: https://github.com/panasyuk
478
570
  [@PChambino]: https://github.com/PChambino
479
571
  [@potatosalad]: https://github.com/potatosalad
480
572
  [@pranas]: https://github.com/pranas
@@ -482,6 +574,7 @@ Please check [0-6-stable] for previous changes.
482
574
  [@RobinvanderVliet]: https://github.com/RobinvanderVliet
483
575
  [@rogerkk]: https://github.com/rogerkk
484
576
  [@seanlinsley]: https://github.com/seanlinsley
577
+ [@sgara]: https://github.com/sgara
485
578
  [@ShallmentMo]: https://github.com/ShallmentMo
486
579
  [@shekibobo]: https://github.com/shekibobo
487
580
  [@shouya]: https://github.com/shouya
@@ -491,11 +584,9 @@ Please check [0-6-stable] for previous changes.
491
584
  [@timoschilling]: https://github.com/timoschilling
492
585
  [@TimPetricola]: https://github.com/TimPetricola
493
586
  [@varyonic]: https://github.com/varyonic
494
- [@wasifhossain]: https://github.com/wasifhossain
587
+ [@violeta-p]: https://github.com/violeta-p
495
588
  [@WaKeMaTTa]: https://github.com/WaKeMaTTa
589
+ [@wasifhossain]: https://github.com/wasifhossain
496
590
  [@Wowu]: https://github.com/Wowu
497
591
  [@wspurgin]: https://github.com/wspurgin
498
592
  [@zorab47]: https://github.com/zorab47
499
- [@chrp]: https://github.com/chrp
500
- [@bartoszkopinski]: https://github.com/bartoszkopinski
501
- [@panasyuk]: https://github.com/panasyuk
@@ -26,8 +26,7 @@ git checkout -b 325-add-japanese-translations
26
26
  Make sure you're using a recent ruby and have the `bundler` gem installed, at
27
27
  least version `1.14.3`.
28
28
 
29
- You'll also need chrome and [chromedriver] installed in order to run cucumber
30
- scenarios.
29
+ You'll also need chrome installed in order to run cucumber scenarios.
31
30
 
32
31
  Now install the development dependencies:
33
32
 
@@ -41,7 +40,7 @@ Now you should be able to run the entire suite using:
41
40
  bin/rake
42
41
  ```
43
42
 
44
- The test run will generate a sample Rails application in `tmp/rails` to run the
43
+ The test run will generate a sample Rails application in `tmp/test_apps` to run the
45
44
  tests against.
46
45
 
47
46
  If your tests are passing locally but they're failing on CircleCI, it's probably
@@ -95,7 +94,7 @@ bin/rake local server
95
94
  ```
96
95
 
97
96
  This will automatically create a Rails app if none already exists, and store it
98
- in the `.test-rails-apps` folder.
97
+ in the `tmp/development_apps` folder.
99
98
 
100
99
  You should now be able to open <http://localhost:3000/admin> in your browser.
101
100
  You can log in using:
@@ -204,7 +203,6 @@ Maintainers need to do the following to push out a release:
204
203
  * `bin/rake release`
205
204
 
206
205
  [chandler]: https://github.com/mattbrictson/chandler#2-configure-credentials
207
- [chromedriver]: https://sites.google.com/a/chromium.org/chromedriver/getting-started
208
206
  [mailing list]: http://groups.google.com/group/activeadmin
209
207
  [Stack Overflow]: http://stackoverflow.com/questions/tagged/activeadmin
210
208
  [search the issue tracker]: https://github.com/activeadmin/activeadmin/issues?q=something
data/README.md CHANGED
@@ -21,6 +21,11 @@ creating elegant backends for website administration.
21
21
  * Try the [live demo][demo].
22
22
  * The [wiki] includes links to tutorials, articles and sample projects.
23
23
 
24
+ ## For enterprise
25
+
26
+ Active Admin for enterprise is available via the Tidelift subscription. [Learn
27
+ More][tidelift_enterprise].
28
+
24
29
  ## Need help?
25
30
 
26
31
  Please use [StackOverflow][stackoverflow] for help requests and how-to questions.
@@ -39,7 +44,7 @@ to ask.
39
44
  ## Want to support us?
40
45
 
41
46
  If you want to support us financially, you can [help fund the project
42
- through a Tidelift subscription][tidelift]. By buying a Tidelift subscription
47
+ through a Tidelift subscription][tidelift_support]. By buying a Tidelift subscription
43
48
  you make sure your whole dependency stack is properly maintained, while also
44
49
  getting a comprehensive view of outdated dependencies, new releases, security
45
50
  alerts, and licensing compatibility issues.
@@ -96,6 +101,8 @@ Thanks to [Open Collective][opencollective contributors] and all our Open Collec
96
101
  [inch]: http://inch-ci.org/github/activeadmin/activeadmin
97
102
  [tidelift_badge]: https://tidelift.com/badges/github/activeadmin/activeadmin
98
103
  [tidelift]: https://tidelift.com/subscription/pkg/rubygems-activeadmin?utm_source=rubygems-activeadmin&utm_medium=readme
104
+ [tidelift_enterprise]: https://tidelift.com/subscription/pkg/rubygems-activeadmin?utm_source=rubygems-activeadmin&utm_medium=referral&utm_campaign=github&utm_content=enterprise
105
+ [tidelift_support]: https://tidelift.com/subscription/pkg/rubygems-activeadmin?utm_source=rubygems-activeadmin&utm_medium=referral&utm_campaign=github&utm_content=support
99
106
 
100
107
  [docs]: http://activeadmin.info/0-installation.html
101
108
  [demo]: http://demo.activeadmin.info/admin
@@ -1,9 +1,13 @@
1
1
  const onDOMReady = function() {
2
+ // Detach any previously attached handlers before re-attaching them.
3
+ // This avoids double-registered handlers when Turbolinks is enabled
4
+ $('.batch_actions_selector li a').off('click confirm:complete');
5
+
2
6
  //
3
7
  // Use ActiveAdmin.modal_dialog to prompt user if
4
8
  // confirmation is required for current Batch Action
5
9
  //
6
- $('.batch_actions_selector li a').click(function(event){
10
+ $('.batch_actions_selector li a').on('click', function(event){
7
11
  let message;
8
12
  event.stopPropagation(); // prevent Rails UJS click event
9
13
  event.preventDefault();
@@ -0,0 +1,11 @@
1
+ <%# Link to the "First" page
2
+ - available local variables
3
+ url: url to the first page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="first">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote %>
11
+ </span>
@@ -0,0 +1,8 @@
1
+ <%# Non-link tag that stands for skipped pages...
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ -%>
8
+ <span class="page gap"><%= t('views.pagination.truncate').html_safe %></span>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Next" page
2
+ - available local variables
3
+ url: url to the next page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="next">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote %>
11
+ </span>
@@ -0,0 +1,12 @@
1
+ <%# Link showing page number
2
+ - available local variables
3
+ page: a page object for "this" page
4
+ url: url to this page
5
+ current_page: a page object for the currently displayed page
6
+ total_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ -%>
10
+ <span class="page<%= ' current' if page.current? %>">
11
+ <%= link_to_unless page.current?, page, url, {remote: remote, rel: page.rel} %>
12
+ </span>
@@ -0,0 +1,24 @@
1
+ <%# The container tag
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ paginator: the paginator that renders the pagination tags inside
8
+ -%>
9
+ <%= paginator.render do -%>
10
+ <nav class="pagination">
11
+ <%= first_page_tag unless current_page.first? %>
12
+ <%= prev_page_tag unless current_page.first? %>
13
+ <% each_page do |page| -%>
14
+ <% if page.display_tag? -%>
15
+ <%= page_tag page %>
16
+ <% elsif !page.was_truncated? -%>
17
+ <%= gap_tag %>
18
+ <% end -%>
19
+ <% end -%>
20
+ <% unless current_page.out_of_range? %>
21
+ <%= next_page_tag unless current_page.last? %>
22
+ <% end %>
23
+ </nav>
24
+ <% end -%>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Previous" page
2
+ - available local variables
3
+ url: url to the previous page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="prev">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote %>
11
+ </span>
@@ -37,8 +37,9 @@ ar:
37
37
  current_filters: "المُرشحات الحاليّة:"
38
38
  no_current_filters: "بدون"
39
39
  status_tag:
40
- 'yes': "نعم"
41
- 'no': "لا"
40
+ "yes": "نعم"
41
+ "no": "لا"
42
+ "unset": "لا"
42
43
  main_content: "الرجاء تنفيذ %{model}#main_content لعرض المحتوى."
43
44
  logout: "تسجيل الخروج"
44
45
  powered_by: "تنفيذ %{active_admin} %{version}"
@@ -34,6 +34,7 @@ bg:
34
34
  status_tag:
35
35
  "yes": "Да"
36
36
  "no": "не"
37
+ "unset": "не"
37
38
  main_content: "Добавете %{model}#main_content за да видите съдържание."
38
39
  logout: "Изход"
39
40
  powered_by: "Задвижва се от %{active_admin} %{version}"
@@ -34,6 +34,7 @@ bs:
34
34
  status_tag:
35
35
  "yes": "Da"
36
36
  "no": "Nema"
37
+ "unset": "Nema"
37
38
  main_content: "Molim Vas, implementirajte %{model}#main_content da biste prikazali sadržaj."
38
39
  logout: "Odjavi se"
39
40
  powered_by: "Powered by %{active_admin} %{version}"
@@ -1,4 +1,3 @@
1
- #encoding: utf-8
2
1
  ca:
3
2
  active_admin:
4
3
  dashboard: Tauler
@@ -35,6 +34,7 @@ ca:
35
34
  status_tag:
36
35
  "yes": "Sí"
37
36
  "no": "No"
37
+ "unset": "No"
38
38
  main_content: "Implementa %{model}#main_content per mostrar contingut."
39
39
  logout: "Desconnecta't"
40
40
  powered_by: "Powered by %{active_admin} %{version}"
@@ -34,6 +34,7 @@ cs:
34
34
  status_tag:
35
35
  "yes": "Ano"
36
36
  "no": "Ne"
37
+ "unset": "Ne"
37
38
  main_content: "Implementujte prosím %{model}#main_content pro zobrazení obsahu."
38
39
  logout: "Odhlásit"
39
40
  powered_by: "%{active_admin} %{version}"
@@ -40,6 +40,7 @@ da:
40
40
  status_tag:
41
41
  "yes": "Ja"
42
42
  "no": "Nej"
43
+ "unset": "Nej"
43
44
  main_content: "Implementer venligst %{model}#main_content for at vise noget indhold."
44
45
  logout: "Log ud"
45
46
  powered_by: "Powered by %{active_admin} %{version}"
@@ -34,6 +34,7 @@
34
34
  status_tag:
35
35
  "yes": "Ja"
36
36
  "no": "Nicht"
37
+ "unset": "Nicht"
37
38
  main_content: "Bitte implementieren Sie %{model}#main_content, um Inhalte anzuzeigen."
38
39
  logout: "Abmelden"
39
40
  powered_by: "Powered by %{active_admin} %{version}"