tranzito_utils 1.1.0 → 1.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d39fb6a31735f977a6186213e43944bf1f5963e58e7dad3837df698e9118f4
|
4
|
+
data.tar.gz: e1f5b26a038400329888a52291dc245841730bdc6d5a03449cad30784ed400de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d92f57f387fc39045366b06cae7f7f5a5ac8055d8e9db4b611c6a723cfabc35b4889b85ca8a7669b3e48ea5e0105d285ff188435753106a670de651fb79af26b
|
7
|
+
data.tar.gz: 61615f631161d043284ac656d4317164f4b2c784121a9eaa566421dfa89fdbaced56271ac880b8597eca65e642f7d256ed3706896538bf88825999a6816f3a39
|
data/README.md
CHANGED
@@ -76,6 +76,14 @@ For gems helpers, you need to add this into your `application_helper.rb` file.
|
|
76
76
|
```
|
77
77
|
include TranzitoUtils::Helpers
|
78
78
|
```
|
79
|
+
|
80
|
+
### Flash Message
|
81
|
+
|
82
|
+
You can include the flash messages into your application by add it's partial in your layouts file.
|
83
|
+
|
84
|
+
```
|
85
|
+
render partial: "/tranzito_utils/flash_messages"
|
86
|
+
```
|
79
87
|
### Assets
|
80
88
|
|
81
89
|
To include the styles from the gem you need to add this into your application.scss, this will include the compiled CSS into your application.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.flash-alert-container
|
2
|
+
- if flash.present?
|
3
|
+
- flash.each do |type, message|
|
4
|
+
- next unless message.present?
|
5
|
+
.alert.alert-dismissible.fade.show{class: "alert-#{type}"}
|
6
|
+
%button.btn-close{"data-bs-dismiss" => "alert", "aria-label" => "Close"}
|
7
|
+
= message
|
8
|
+
- if flash[:link]
|
9
|
+
%br
|
10
|
+
link: #{link_to flash[:link], flash[:link]}
|
data/lib/tranzito_utils.rb
CHANGED
@@ -15,6 +15,7 @@ end
|
|
15
15
|
|
16
16
|
require "tranzito_utils/concerns/set_period"
|
17
17
|
require "tranzito_utils/concerns/sortable_table"
|
18
|
+
require "tranzito_utils/helpers/admin_helper"
|
18
19
|
require "tranzito_utils/helpers/graphing_helper"
|
19
20
|
require "tranzito_utils/helpers/sortable_helper"
|
20
21
|
require "tranzito_utils/helpers/helpers"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tranzito_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- willbarrettdev
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-10-
|
13
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- app/assets/stylesheets/tranzito_utils/_table_extensions.scss
|
60
60
|
- app/assets/stylesheets/tranzito_utils/_utils.scss
|
61
61
|
- app/assets/stylesheets/tranzito_utils/_variables.scss
|
62
|
+
- app/views/tranzito_utils/_flash_messages.html.haml
|
62
63
|
- app/views/tranzito_utils/_period_select.html.haml
|
63
64
|
- config/locales/en.yml
|
64
65
|
- lib/generators/tranzito_utils/install_generator.rb
|
@@ -67,6 +68,7 @@ files:
|
|
67
68
|
- lib/tranzito_utils/concerns/set_period.rb
|
68
69
|
- lib/tranzito_utils/concerns/sortable_table.rb
|
69
70
|
- lib/tranzito_utils/gem.rb
|
71
|
+
- lib/tranzito_utils/helpers/admin_helper.rb
|
70
72
|
- lib/tranzito_utils/helpers/graphing_helper.rb
|
71
73
|
- lib/tranzito_utils/helpers/helpers.rb
|
72
74
|
- lib/tranzito_utils/helpers/sortable_helper.rb
|