slimmer 11.1.0 → 11.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/slimmer/processors/inside_header_inserter.rb +2 -1
- data/lib/slimmer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 882c71d5e22c37f0dfe1f0598975f4c19e27ceb9
|
4
|
+
data.tar.gz: 6c115e9e40c73fa7216316ffe727663eb26f2b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25ec33d5397c26d2392389bf173619c617ad41c8c54f64d7028c575b217f58f9c4104659c4eee671630412c2d367303c442f502d22bd204eed68cb1bbb4d380e
|
7
|
+
data.tar.gz: aa90a515cae94a8d23d530cf4543be9dba85955ca0421bd59848805803dd7d40d20b9362e2bcb1b009e985ccd898d6bb74b6a6e2b0aa2e07ddcf1e7d98415094
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -84,7 +84,7 @@ end
|
|
84
84
|
|
85
85
|
## GOV.UK Components
|
86
86
|
|
87
|
-
To use [shared template components](https://govuk-
|
87
|
+
To use [shared template components](https://govuk-static.herokuapp.com/component-guide) you need to include the GOV.UK component module:
|
88
88
|
|
89
89
|
```rb
|
90
90
|
class ApplicationController < ActionController::Base
|
@@ -4,7 +4,8 @@ module Slimmer::Processors
|
|
4
4
|
insertion = src.at_css('.slimmer-inside-header')
|
5
5
|
|
6
6
|
if insertion
|
7
|
-
dest.at_css('.header-logo')
|
7
|
+
logo = dest.at_css('.header-logo')
|
8
|
+
logo.add_next_sibling(insertion.inner_html) unless logo.nil?
|
8
9
|
end
|
9
10
|
end
|
10
11
|
end
|
data/lib/slimmer/version.rb
CHANGED