five-two-nw-olivander 0.2.0.4 → 0.2.0.6

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: 29e1dc791197e7c14caf9ba443b60e265cec7a30d2bc7143c7c63c733b80a986
4
- data.tar.gz: 82564065ca22d325b65e15c2402d0e726381d94bc91a4eee912ce059fe8a0623
3
+ metadata.gz: ec1b83147e32bcad39702fd0a0a42a71a819e6f16ccc04ce2bf736a72cf8ba14
4
+ data.tar.gz: 0fa90392ac13ae2161024e59def15f555c7f38e8ebf036bf4787bd0f91a72602
5
5
  SHA512:
6
- metadata.gz: b48674ce17de4b04e1ac277a27cbaf9517e284988a39c7c35064bcac02f781a7c82b405d7e123be81f3d529fd47c942c5c7d4b96594d770e6e3f178f743cb923
7
- data.tar.gz: 7b289f9ccbe4523ee3a7c9b831091c6d3b302c3f49369daccd3796be6dff7140dff4c73ab8d3474ed2365ae6190e4547ba680956f41b4e372dc8db61e0b5cf44
6
+ metadata.gz: 93c448ec29561ffd681659106967a9149d17a877c123c737f05d98f408643e698fef4930f3cf0e310caa59acc675e0ae095c6dc9fc878d94c13ee0c46ebb3838
7
+ data.tar.gz: 63b5b466d541df95458ed0f7474aab9da06dba1803fa5a6118b1882e12391414824bdba931d9931ed065ccabbfdeedad945fb368063f758727f9cb0aeedd7716
@@ -24,7 +24,7 @@ module Olivander
24
24
  column_attributes &&= only if only.size.positive?
25
25
  column_attributes -= except if except.size.positive?
26
26
  resources_sym = klazz.table_name.to_sym
27
- bulk_action_list = Olivander::CurrentContext.application_context.route_builder.resources[resources_sym]&.datatable_bulk_actions || []
27
+ bulk_action_list = Olivander::CurrentContext.build.application_context.route_builder.resources[resources_sym]&.datatable_bulk_actions || []
28
28
  default_hidden = %w[
29
29
  id created updated created_at updated_at
30
30
  deleted_at current_user current_action
@@ -3,8 +3,8 @@
3
3
  = render partial: 'layouts/olivander/adminlte/head'
4
4
  %body.hold-transition.login-page
5
5
  .login-box
6
- -# .login-logo
7
- -# %img.brand-image.img-circle.elevation-3{:alt => Olivander::CurrentContext.application_context.logo.alt, :src => Olivander::CurrentContext.application_context.logo.url, :style => "opacity: .8"}
6
+ - unless Olivander::CurrentContext.application_context.login_logo.url.blank?
7
+ %img{ alt: Olivander::CurrentContext.application_context.login_logo.alt, src: Olivander::CurrentContext.application_context.login_logo.url, style: "max-width: 100%; opacity: 1.0" }
8
8
  .card
9
9
  .card-header.text-center{ class: sidebar_background_class }
10
10
  %a.h1{ href: '/' }
@@ -1,10 +1,11 @@
1
1
  module Olivander
2
2
  class ApplicationContext
3
- attr_accessor :name, :logo, :company, :menu_items, :route_builder, :sign_out_path, :sidebar_background_class
3
+ attr_accessor :name, :logo, :login_logo, :company, :menu_items, :route_builder, :sign_out_path, :sidebar_background_class
4
4
 
5
5
  def initialize(**kwargs)
6
6
  self.name = kwargs[:name] || ENV['OLIVANDER_APP_NAME'] || 'Application Name'
7
7
  self.logo = kwargs[:logo] || Logo.new(url: kwargs[:logo_url], alt: kwargs[:logo_alt])
8
+ self.login_logo = kwargs[:login_logo] || LoginLogo.new(url: kwargs[:login_logo_url], alt: kwargs[:login_logo_alt])
8
9
  self.company = kwargs[:company] || Company.new(name: kwargs[:company_name], url: kwargs[:company_url])
9
10
  self.sign_out_path = kwargs[:sign_out_path] || '/sign_out'
10
11
  self.menu_items = kwargs[:menu_items] || []
@@ -41,6 +42,15 @@ module Olivander
41
42
  end
42
43
  end
43
44
 
45
+ class LoginLogo
46
+ attr_accessor :url, :alt
47
+
48
+ def initialize(**kwargs)
49
+ self.url = kwargs[:url] || ENV['OLIVANDER_LOGIN_LOGO_URL'] || '/images/olivander_login_logo.png'
50
+ self.alt = kwargs[:alt] || ENV['OLIVANDER_LOGIN_LOGO_ALT'] || 'Login Logo Image'
51
+ end
52
+ end
53
+
44
54
  class Company
45
55
  attr_accessor :name, :url
46
56
 
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = '0.2.0.4'.freeze
2
+ VERSION = '0.2.0.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.4
4
+ version: 0.2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-20 00:00:00.000000000 Z
11
+ date: 2024-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick