thecore_ui_rails_admin 2.4.7 → 2.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ef4b54f86853afd25dc7c934a183c5db1c6c9e86eee1189057ae5304a0c7c7c
4
- data.tar.gz: 2382624cc4b86a900d4ea8818bd11b8f40106cda2b71fc6363697c0825c5747b
3
+ metadata.gz: 8c297f81a85b647ff5bc8369ac1522bcc9be787234b5cc2b6f391e73b62b653c
4
+ data.tar.gz: 0cde220b727ad5cb1e864d44ac5879fc16dfc0c28747c75d6421dcdb30eca823
5
5
  SHA512:
6
- metadata.gz: 026b7a5c4b279be06048812e3df24044fce75633b7a27b4c0f67afa593936b9351f5d7c0a533488503f1e5920ee52021b68291edca7f339d546d68c7ba426418
7
- data.tar.gz: 1f8a44bb36e3db87aefe095acb99b9379b292908fef5e831d5a4d0e649bb1ddcd1756f827a5e11ab8c7636b19830cfe67c873beb7a3a43f676e4843d8b5fedd8
6
+ metadata.gz: 00bd988974a0fd7d57fb48d3a5551cfbeac4cff7a9d610cc826fe1f22aa7a02180410e66181300b0f9b19047ae6cf19e83cd68dded005ce824055cebaf7ac6ca
7
+ data.tar.gz: c05c76654872aa77c1bc237c56d761d243ce5fb67746ea56c8d00d625eaf95b367889568ce848a6e124796fbd8205ee9a733c12786120457f85db02989475b05
@@ -6,3 +6,23 @@
6
6
  //= require rails_admin/custom/thecore-custom-3
7
7
  //= require rails_admin/custom/thecore-custom-4
8
8
  //= require rails_admin/custom/thecore-custom-5
9
+
10
+ function hideBreadCrumbAndToolbar() {
11
+ // If the page loaded has a tag like <span class="hide-breadcrumb hide-toolbar"></span>
12
+ // then hide the elements
13
+
14
+ // var actionName = "#{action_name}"
15
+ // var isRoot = "#{RailsAdmin::Config::Actions.find(action_name.to_sym).root?}"
16
+
17
+ // console.log(actionName, isRoot)
18
+
19
+ if($(".hide-breadcrumb").length) $(".breadcrumb").hide()
20
+ else $(".breadcrumb").show()
21
+
22
+ if($(".hide-toolbar").length) $(".breadcrumb + .nav.nav-tabs").hide()
23
+ else $(".breadcrumb + .nav.nav-tabs").show()
24
+ }
25
+
26
+ // Re evaluate at each iteraction
27
+ $(document).off('ready pjax:success', hideBreadCrumbAndToolbar);
28
+ $(document).on('ready pjax:success', hideBreadCrumbAndToolbar);
@@ -10,3 +10,17 @@
10
10
  .form-control.selectize-control {
11
11
  width: 62%;
12
12
  }
13
+
14
+ #secondary-navigation .navbar-nav li {
15
+ display: none;
16
+ &:nth-last-of-type(2), &:last-of-type {
17
+ display: block !important;
18
+ }
19
+ }
20
+
21
+ #list form .well {
22
+ background-color: transparent;
23
+ border: none;
24
+ -webkit-box-shadow: none;
25
+ box-shadow: none;
26
+ }
@@ -69,7 +69,9 @@ RailsAdmin.config do |config|
69
69
 
70
70
  config.actions do
71
71
  # show_in_app
72
- dashboard # mandatory
72
+ dashboard do
73
+ show_in_sidebar true
74
+ end# mandatory
73
75
  index # mandatory
74
76
  new
75
77
  export
@@ -15,6 +15,6 @@ it:
15
15
  add_filter: ⋔
16
16
  add_new: ⋔
17
17
  refresh: Apply Filters
18
- bulk_menu_title: ☰✔
18
+ bulk_menu_title:
19
19
  select:
20
- toggle:
20
+ toggle:
@@ -10,6 +10,8 @@ it:
10
10
  question: Domanda
11
11
  root_actions: "Operazioni"
12
12
  admin:
13
+ misc:
14
+ root_navigation: Azioni
13
15
  flash:
14
16
  error: "Impossibile eseguire l'azione %{action} (%{name})"
15
17
  model_not_found: Impossibile trovare il modello '%{model}'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.7
4
+ version: 2.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons