five-two-nw-olivander 0.2.0.5 → 0.2.0.6

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: c8143b2faef8f3a4a66f49a4de75815c3e4f31cb92cae9f66017cb5bb928e7f7
4
- data.tar.gz: 5d03f6db29f5435a04c83d1be27ae67b81922aa267b4203dc507b73cfafe1963
3
+ metadata.gz: ec1b83147e32bcad39702fd0a0a42a71a819e6f16ccc04ce2bf736a72cf8ba14
4
+ data.tar.gz: 0fa90392ac13ae2161024e59def15f555c7f38e8ebf036bf4787bd0f91a72602
5
5
  SHA512:
6
- metadata.gz: 11dcfc173f945d1100f793d7b749842e0e4b5be5ea1e010ae40ad1044366f8766a0368d7bd0c641561863c5437127686638cd107d0b86d9f281dc7be31c192ad
7
- data.tar.gz: b241c425f3bff5e26e9409584a242e7f3952eb0b0f9edbd833f8a855d0893f446d39688e69e0127c845eb46bf96c2f8cdc2466c412356574bad57316088b0e4a
6
+ metadata.gz: 93c448ec29561ffd681659106967a9149d17a877c123c737f05d98f408643e698fef4930f3cf0e310caa59acc675e0ae095c6dc9fc878d94c13ee0c46ebb3838
7
+ data.tar.gz: 63b5b466d541df95458ed0f7474aab9da06dba1803fa5a6118b1882e12391414824bdba931d9931ed065ccabbfdeedad945fb368063f758727f9cb0aeedd7716
@@ -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.5'.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.5
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