rails_base 0.73.1 → 0.74.0

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: cb5af463df9662e0a5c266c6b62dbf3c726167f2c4f0470dc191447091cc51fb
4
- data.tar.gz: 137972e047ef1382819930cd51f6ad49aa99a5b64bff07a2463ed6ed1c553817
3
+ metadata.gz: 417d36c66840f75a28fca2998dce4862a4d7997cf6e13d374872a25e397a8bae
4
+ data.tar.gz: 24c761421d3cfdb881ca30a658934ac4cf47fe1f6deb5ca41434b0a95222122d
5
5
  SHA512:
6
- metadata.gz: c628e0403ce2cf8a9001c0df794b7cbbcee15efc4f2df8495f84b8c7dca76c1e459073ebaa7b3fce131d600632dcbc1008cece5a7b1c83d6c7fdd8932bc6a9f4
7
- data.tar.gz: 7c31a13d4de80a55b5b6110d2080c999cafdf095ff016bb90bf68b9586ec16204a55f970371dd1f8d4f118e3c1c92368b6f059e8ec5e962a42c0f48c4c487368
6
+ metadata.gz: 6a913f6bbed29e62177ce3bf3a5ee19026803486378a8a07402b9d87c60fa90204af60fa1e2ba9a8a902c7f13ed74beac2ec6995ebd79aa5b4ee351174e412d5
7
+ data.tar.gz: 4545f9d272a1bcde9d4c349f7801e37f24a0994f5390b09356a7a6b78ef5c7992df0abb1ed0e0164f4b944a3229040d41f2f0edea8cbbfb941ee522d5e63fd8d
@@ -109,6 +109,12 @@
109
109
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
110
110
  <span aria-hidden="true">&times;</span>
111
111
  </button>
112
+ </div>
113
+ <% if partial = RailsBase.config.appearance.header.partial %>
114
+ <%= render partial: partial %>
115
+ <% end %>
116
+ <div >
117
+
112
118
  </div>
113
119
  <div class="p-1">
114
120
  <%= yield %>
@@ -9,7 +9,7 @@
9
9
  </button>
10
10
  </div>
11
11
  <div class="modal-body">
12
- <h5> Admins have made actions recently on your account. Aknowledge to clear alert. </h5>
12
+ <h5> Admins have made actions recently on your account. Acknowledge to clear alert. </h5>
13
13
  </br>
14
14
  <% @__admin_actions_array.reverse.each do |action, time| %>
15
15
  <div class="alert alert-danger alert-dismissible fade show" role="alert">
@@ -10,6 +10,7 @@ require 'rails_base/configuration/display/btn_secondary'
10
10
  require 'rails_base/configuration/display/btn_success'
11
11
  require 'rails_base/configuration/display/btn_warning'
12
12
  require 'rails_base/configuration/display/footer'
13
+ require 'rails_base/configuration/display/header'
13
14
  require 'rails_base/configuration/display/navbar'
14
15
  require 'rails_base/configuration/display/table_body'
15
16
  require 'rails_base/configuration/display/table_header'
@@ -42,10 +43,11 @@ module RailsBase
42
43
  :text,
43
44
  :card,
44
45
  :footer,
46
+ :header,
45
47
  :back_to_top,
46
48
  ] + BUTTONS
47
49
 
48
- SKIP_DOWNSTREAM_CLASSES = [:footer, :back_to_top]
50
+ SKIP_DOWNSTREAM_CLASSES = [:footer, :header, :back_to_top]
49
51
  DARK_MODE = :dark
50
52
  LIGHT_MODE = :light
51
53
  MATCH_OS = :match_os
@@ -92,6 +94,7 @@ module RailsBase
92
94
  @text = Configuration::Display::Text.new
93
95
  @card = Configuration::Display::Card.new
94
96
  @footer = Configuration::Display::Footer.new
97
+ @header = Configuration::Display::Header.new
95
98
  @back_to_top = Configuration::Display::BackTotop.new
96
99
  @bg_light = Configuration::Display::BgLight.new
97
100
 
@@ -44,7 +44,6 @@ module RailsBase
44
44
  dependents: [ -> (i) { i.enable? } ],
45
45
  description: 'When enabled, footer will stick to bottom or stick to bottom of content -- whichever is greater. Takes precendence over `sticky`',
46
46
  },
47
-
48
47
  }
49
48
 
50
49
  attr_accessor *DEFAULT_VALUES.keys
@@ -0,0 +1,20 @@
1
+ require 'rails_base/configuration/base'
2
+
3
+ module RailsBase
4
+ module Configuration
5
+ module Display
6
+ class Header < Base
7
+
8
+ DEFAULT_VALUES = {
9
+ partial: {
10
+ type: :string_nil,
11
+ default: nil,
12
+ description: "Rails partial to render at the header."
13
+ },
14
+ }
15
+
16
+ attr_accessor *DEFAULT_VALUES.keys
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,7 +1,7 @@
1
1
  module RailsBase
2
2
  MAJOR = '0'
3
- MINOR = '73'
4
- PATCH = '1'
3
+ MINOR = '74'
4
+ PATCH = '0'
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
 
7
7
  def self.print_version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.1
4
+ version: 0.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Taylor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -580,6 +580,7 @@ files:
580
580
  - lib/rails_base/configuration/display/btn_warning.rb
581
581
  - lib/rails_base/configuration/display/card.rb
582
582
  - lib/rails_base/configuration/display/footer.rb
583
+ - lib/rails_base/configuration/display/header.rb
583
584
  - lib/rails_base/configuration/display/navbar.rb
584
585
  - lib/rails_base/configuration/display/table_body.rb
585
586
  - lib/rails_base/configuration/display/table_header.rb