plutonium 0.19.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plutonium/routing/route_set_extensions.rb +2 -2
- data/lib/plutonium/ui/breadcrumbs.rb +22 -20
- data/lib/plutonium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90334ca76362d14c0666cc221dda19671f8ded4348f65e61e7a0044251dbf153
|
4
|
+
data.tar.gz: 9e941a439c725b2df639d0c48f3dbdaed1f73abcc515ef4cff938653ce8cadcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45c602ae6961272dde234ede40560e832f9d5ae81244d284c0691f17989ac4d64cf33a4f7fab3a7a7c57ec433fdd01d289ff1c4add954cab54673dfc1b420472
|
7
|
+
data.tar.gz: b837a486e11096bc39678e4dcf3ca0a854f3718bbc6fc5c09cf8ab56400555bee09d074ecab7fdd797289ac61bcd36fd8a26d546761a390f0f5118156ff895ab
|
@@ -82,13 +82,13 @@ module Plutonium
|
|
82
82
|
@engine ||= determine_engine
|
83
83
|
end
|
84
84
|
|
85
|
-
private
|
86
|
-
|
87
85
|
# @return [Hash] A lookup table for resource route configurations.
|
88
86
|
def resource_route_config_lookup
|
89
87
|
@resource_route_config_lookup ||= {}
|
90
88
|
end
|
91
89
|
|
90
|
+
private
|
91
|
+
|
92
92
|
# Determines the appropriate engine based on the current scope.
|
93
93
|
#
|
94
94
|
# @return [Class] The determined engine class.
|
@@ -88,27 +88,29 @@ module Plutonium
|
|
88
88
|
|
89
89
|
# Record
|
90
90
|
if resource_record?
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
s
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
91
|
+
unless current_engine.routes.resource_route_config_lookup[resource_class.model_name.plural][:route_type] == :resource
|
92
|
+
# Record Resource
|
93
|
+
li(class: "flex items-center") do
|
94
|
+
svg(
|
95
|
+
class: "rtl:rotate-180 block w-3 h-3 mx-1 text-gray-400",
|
96
|
+
aria_hidden: "true",
|
97
|
+
xmlns: "http://www.w3.org/2000/svg",
|
98
|
+
fill: "none",
|
99
|
+
viewbox: "0 0 6 10"
|
100
|
+
) do |s|
|
101
|
+
s.path(
|
102
|
+
stroke: "currentColor",
|
103
|
+
stroke_linecap: "round",
|
104
|
+
stroke_linejoin: "round",
|
105
|
+
stroke_width: "2",
|
106
|
+
d: "m1 9 4-4-4-4"
|
107
|
+
)
|
108
|
+
end
|
109
|
+
link_to resource_name_plural(resource_class),
|
110
|
+
resource_url_for(resource_class),
|
111
|
+
class:
|
112
|
+
"ms-1 text-sm font-medium text-gray-700 hover:text-primary-600 md:ms-2 dark:text-gray-200 dark:hover:text-white"
|
107
113
|
end
|
108
|
-
link_to resource_name_plural(resource_class),
|
109
|
-
resource_url_for(resource_class),
|
110
|
-
class:
|
111
|
-
"ms-1 text-sm font-medium text-gray-700 hover:text-primary-600 md:ms-2 dark:text-gray-200 dark:hover:text-white"
|
112
114
|
end
|
113
115
|
|
114
116
|
# Record Itself
|
data/lib/plutonium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|