codefabrik-styleguide 0.1.14 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/codefabrik/styleguide/version.rb +1 -1
- data/lib/codefabrik/styleguide/view_helpers.rb +10 -0
- data/vendor/assets/stylesheets/codefabrik/styleguide/02_layout.scss +1 -1
- data/vendor/assets/stylesheets/codefabrik/styleguide/08_components.scss +1 -0
- 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: 3fbf54ca1fd473a9a3532c5132beaeea66484001fe58db0a712d07767ea3c3ce
|
4
|
+
data.tar.gz: de1c269a339b50694f38461806259dda0427ee44a0d0e9dd52ed28bde960188c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b3dee5f4c2cbcebfc82a0ad5928838535a8e496b2178a234630863741fa8eb5a737f97d0d0e7d600a542eda1e39415663c169d5f1e9f9a8c835d5f7ef4f505
|
7
|
+
data.tar.gz: 695d7a0325f11413597fbb2e53f071f69ca9970c496992ea12bc75ea99880c6a73573a43cafb3aad1099996090c33ad134d8a2e635ebbcc8c5adce1937b290d2
|
data/Gemfile.lock
CHANGED
@@ -27,6 +27,16 @@ module Codefabrik
|
|
27
27
|
output << "</div></div>"
|
28
28
|
output.html_safe
|
29
29
|
end
|
30
|
+
|
31
|
+
def active_link_to(label, path, options = {})
|
32
|
+
if request.path == path
|
33
|
+
existing_klass = options[:klass] || ''
|
34
|
+
new_klass = "#{existing_klass} active"
|
35
|
+
link_to(label, path, options.merge({ class: new_klass }))
|
36
|
+
else
|
37
|
+
link_to(label, path, options)
|
38
|
+
end
|
39
|
+
end
|
30
40
|
end
|
31
41
|
end
|
32
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codefabrik-styleguide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas_Skywalker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dartsass-rails
|