thecore_ui_rails_admin 2.4.7 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ef4b54f86853afd25dc7c934a183c5db1c6c9e86eee1189057ae5304a0c7c7c
4
- data.tar.gz: 2382624cc4b86a900d4ea8818bd11b8f40106cda2b71fc6363697c0825c5747b
3
+ metadata.gz: 0676ecc042c10f0365db179c488a2736bd5267e495f25a064626a38ee96b5e6c
4
+ data.tar.gz: 0c16ce23e1d3f98fbea6bcc2a9c5b9805899a5f7b80ff9865034966a67722780
5
5
  SHA512:
6
- metadata.gz: 026b7a5c4b279be06048812e3df24044fce75633b7a27b4c0f67afa593936b9351f5d7c0a533488503f1e5920ee52021b68291edca7f339d546d68c7ba426418
7
- data.tar.gz: 1f8a44bb36e3db87aefe095acb99b9379b292908fef5e831d5a4d0e649bb1ddcd1756f827a5e11ab8c7636b19830cfe67c873beb7a3a43f676e4843d8b5fedd8
6
+ metadata.gz: db6359c0a1a23bbf15946d72e073ab77c08eb763bbafb48deebec15070165a81c3c08fa83e9492b3e88849402d3bb02217229d07296f05dc88cb01a8b724dd90
7
+ data.tar.gz: 78c723f73a368a3c448361556db6dc7f0377c4578d1a3b57ae36968c50bd49f27e8d4e7e1846811cbbd1ccfb08082ff2e8ccf9cbc68d36c712f8eb2e011260ae
@@ -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);
@@ -7,6 +7,147 @@
7
7
  @import 'rails_admin/custom/theming-custom-4';
8
8
  @import 'rails_admin/custom/theming-custom-5';
9
9
 
10
+ body.rails_admin .sidebar-nav {
11
+ background-color: $shadows !important;
12
+
13
+ a {
14
+
15
+ color: white !important;
16
+
17
+ i,
18
+ span {
19
+ padding-right: .5em !important;
20
+ color: white !important;
21
+ }
22
+ }
23
+ }
24
+
25
+ body.rails_admin .sidebar-nav>.nav-stacked>li>a {
26
+ padding: 6px 15px 6px 25px !important;
27
+
28
+ &:hover,
29
+ &:focus {
30
+ background-color: $text !important;
31
+ }
32
+ }
33
+
34
+ body {
35
+ background-color: $background !important;
36
+ }
37
+
38
+ .navbar-default {
39
+ background-color: $background !important;
40
+ border-color: $background !important;
41
+
42
+ .navbar-brand {
43
+ color: $primary !important;
44
+ font-weight: bold;
45
+ text-transform: uppercase;
46
+ font-size: 2em;
47
+ }
48
+
49
+ }
50
+
51
+ .content {
52
+ padding-right: 1em;
53
+ padding-left: 1em;
54
+ }
55
+
10
56
  .form-control.selectize-control {
11
57
  width: 62%;
12
58
  }
59
+
60
+ #secondary-navigation .navbar-nav li {
61
+ display: none;
62
+
63
+ &:nth-last-of-type(2),
64
+ &:last-of-type {
65
+ display: block !important;
66
+ }
67
+ }
68
+
69
+ #list form .well {
70
+ background-color: transparent;
71
+ border: none;
72
+ -webkit-box-shadow: none;
73
+ box-shadow: none;
74
+ }
75
+
76
+ .row {
77
+ margin-left: 0 !important;
78
+ margin-right: 0.5em !important;
79
+ }
80
+
81
+ .pagination>li>a,
82
+ .pagination>li>span,
83
+ a {
84
+ color: $primary;
85
+ }
86
+
87
+ .pagination>.active>a,
88
+ .pagination>.active>a:hover,
89
+ .pagination>.active>a:focus,
90
+ .pagination>.active>span,
91
+ .pagination>.active>span:hover,
92
+ .pagination>.active>span:focus,
93
+ .btn-primary {
94
+ color: $background;
95
+ background-color: $primary;
96
+ border-color: $primary;
97
+ }
98
+
99
+ .btn-primary:hover {
100
+ background-color: $text;
101
+ border-color: $text;
102
+ }
103
+
104
+ .btn-info {
105
+ color: $background;
106
+ background-color: $shadows;
107
+ border-color: $shadows;
108
+ &:hover {
109
+ background-color: $primary;
110
+ }
111
+ }
112
+
113
+ .open > .btn-info.dropdown-toggle {
114
+ color: $background;
115
+ background-color: darken($shadows, 10%);
116
+ border-color: darken($shadows, 10%);
117
+ }
118
+
119
+ .btn-info.disabled, .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled:active, .btn-info.disabled.active, .btn-info[disabled], .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled]:active, .btn-info.active[disabled], fieldset[disabled] .btn-info, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info.active {
120
+ background-color: lighten($shadows, 30%);
121
+ border-color: lighten($shadows, 30%);
122
+ }
123
+
124
+ li a .label-danger {
125
+ background-color: $primary;
126
+ margin-right: 1em;
127
+ }
128
+
129
+ .breadcrumb {
130
+ // margin-top: 1em;
131
+ // margin-bottom: 2.5em;
132
+ background-color: $primary;
133
+ text-transform: uppercase;
134
+ color: $background !important;
135
+ border-radius: 2em;
136
+ }
137
+
138
+ .breadcrumb .active, .breadcrumb .active:before {
139
+ color: $background !important;
140
+ }
141
+
142
+ .breadcrumb .false a, .breadcrumb .false:before {
143
+ color: white !important;
144
+ }
145
+
146
+ #fields_to_export .form-group {
147
+ margin-left: 0;
148
+ margin-right: 0;
149
+ }
150
+
151
+ .input-group {
152
+ display: block;
153
+ }
@@ -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.5.1
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-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons