tramway-admin 4.1.1 → 4.1.1.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5519518efce2c8871a720802476cf74c0c96e19de2c014327cf09507271d781c
|
|
4
|
+
data.tar.gz: 4f2b9be78c25d3617579ea9e4bd10c35bf996fb73b78204457c245d2e61124c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb01fb229fb95d959dd5b7e6c07f48e13a52884b54710097eef99b109064614b238f7621e6b201666fcfbd69e99fd473dce0c8b0a7492bd99de819ac124bdce6
|
|
7
|
+
data.tar.gz: 905a2397c7793dc3b806340fc2e7c1142f137fee6bb02d961ccf90b6ba33b1d9b8d7156035a145830a3ec685822104556bbcc85b9f59d5bbfdd43104e58c05b4
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
- else
|
|
5
5
|
.container-fluid
|
|
6
6
|
= link_to @application&.try(:title) || @application&.public_name || t('aplication.title'), ::Tramway::Admin::Engine.routes.url_helpers.root_path, class: 'navbar-brand'
|
|
7
|
-
%button.navbar-toggler.collapsed{ aria: { controls: :navbar, expanded: "false", label: 'Toggle Navigation' }, data: { target: "#navbar", toggle: :collapse }, type: :button }
|
|
7
|
+
%button.navbar-toggler.collapsed{ aria: { controls: :navbar, expanded: "false", label: 'Toggle Navigation' }, data: { bs: { target: "#navbar" , toggle: :collapse } }, type: :button }
|
|
8
8
|
%span.navbar-toggler-icon
|
|
9
9
|
.navbar-collapse.collapse#navbar
|
|
10
10
|
- if current_admin
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
- if sub_item.values.first == :record
|
|
31
31
|
= dropdown_model_item model: model, route: ::Tramway::Admin::Engine.routes.url_helpers.records_path(model: model, scope: decorator_class(model).collections.first), pluralize: plural(model.constantize.model_name).capitalize
|
|
32
32
|
|
|
33
|
-
%ul.nav.navbar-nav.ml-auto.justify-content-end
|
|
33
|
+
%ul.nav.navbar-nav.ml-auto.justify-content-end.navbar-collapse.collapse
|
|
34
34
|
- if current_admin
|
|
35
35
|
%li.nav-item
|
|
36
36
|
%span.nav-link
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
= link_to fa_icon('pencil-alt'), edit_path, class: 'btn btn-warning btn-xs'
|
|
11
11
|
- if public_path(object)
|
|
12
12
|
= link_to fa_icon(:share), public_path(object), class: 'btn btn-primary btn-xs'
|
|
13
|
-
- buttons = object.additional_buttons
|
|
13
|
+
- buttons = object.additional_buttons&.dig :show
|
|
14
14
|
- buttons&.each do |button|
|
|
15
15
|
- build_button button
|
|
16
16
|
%hr
|
data/lib/tramway/admin.rb
CHANGED
|
@@ -81,11 +81,12 @@ module Tramway
|
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
def admin_model
|
|
84
|
-
|
|
84
|
+
auth_config.first[:user_model]
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
def auth_config
|
|
88
88
|
@@auth_config ||= [{ user_model: ::Tramway::User::User, auth_attributes: :email }]
|
|
89
|
+
@@auth_config
|
|
89
90
|
end
|
|
90
91
|
|
|
91
92
|
def auth_config=(params)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tramway-admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.1
|
|
4
|
+
version: 4.1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pavel Kalashnikov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tramway-core
|