tramway-admin 4.1.1 → 4.1.1.3

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: 52f598a393f67ead5da2a67ef98a7b721edea4cda7c5968dcc5fe2224c75ba11
4
- data.tar.gz: 4ea29fb442be1e667e843c813dd4dba340672add79d93437abd3226852e6f8a8
3
+ metadata.gz: 5519518efce2c8871a720802476cf74c0c96e19de2c014327cf09507271d781c
4
+ data.tar.gz: 4f2b9be78c25d3617579ea9e4bd10c35bf996fb73b78204457c245d2e61124c5
5
5
  SHA512:
6
- metadata.gz: 00645c93a5d1e36ad76fe059a9fd775146614cb8be7046c119f186bf9f81b00aefe636af0e56cebdebbe8abee5b4b288d3e3f0156bff8e35d336a574c13b555c
7
- data.tar.gz: cdc9339fac651475ea6853d70096cf2ad3c7826d80668d61feb96012749e16e3f37d09310fbe4dfdedaf58a2457cae8b794ad82be98ea9b1895032d60f12fae6
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[:show]
13
+ - buttons = object.additional_buttons&.dig :show
14
14
  - buttons&.each do |button|
15
15
  - build_button button
16
16
  %hr
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '4.1.1'
5
+ VERSION = '4.1.1.3'
6
6
  end
7
7
  end
data/lib/tramway/admin.rb CHANGED
@@ -81,11 +81,12 @@ module Tramway
81
81
  end
82
82
 
83
83
  def admin_model
84
- @@auth_config.first[:user_model]
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-02-18 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tramway-core