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 +4 -4
- data/app/views/layouts/rails_base/application.html.erb +6 -0
- data/app/views/rails_base/shared/_admin_actions_modal.html.erb +1 -1
- data/lib/rails_base/configuration/appearance.rb +4 -1
- data/lib/rails_base/configuration/display/footer.rb +0 -1
- data/lib/rails_base/configuration/display/header.rb +20 -0
- data/lib/rails_base/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 417d36c66840f75a28fca2998dce4862a4d7997cf6e13d374872a25e397a8bae
|
4
|
+
data.tar.gz: 24c761421d3cfdb881ca30a658934ac4cf47fe1f6deb5ca41434b0a95222122d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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">×</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.
|
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
|
|
@@ -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
|
data/lib/rails_base/version.rb
CHANGED
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.
|
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-
|
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
|