govuk_publishing_components 0.4.2 → 0.5.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82791bc5677fa763b86403bba364aca06041d381
|
4
|
+
data.tar.gz: 365d38fbf1bf2e86f653fc1fac4ddce6301aa7c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4471c1805124fc072d7e6d115b2bd3618c17d0ae2ac151ea8ab7bbef8032b312cd4822d82a004db43e2ffcae2e5c3cc4c2a15ad88ac49b5e479af296b8dd67e
|
7
|
+
data.tar.gz: 5750331c65f4e146b6d392c550d386139f8ad9620ce2bc40f192c3a31249d2ea4aca1754b572b6e32e5cd8f321b7e42f01a81bbfe3f0003e6caa4d2e34a34276
|
data/README.md
CHANGED
@@ -64,8 +64,9 @@ if defined?(GovukPublishingComponents)
|
|
64
64
|
GovukPublishingComponents.configure do |c|
|
65
65
|
c.component_guide_title = "My component guide"
|
66
66
|
|
67
|
-
c.application_stylesheet = "custom_stylesheet" #
|
68
|
-
c.
|
67
|
+
c.application_stylesheet = "custom_stylesheet" # Defaults to "application"
|
68
|
+
c.application_print_stylesheet = "print" # Not included by default
|
69
|
+
c.application_javascript = "custom_javascript" # Defaults to "application"
|
69
70
|
end
|
70
71
|
end
|
71
72
|
```
|
@@ -6,6 +6,9 @@
|
|
6
6
|
</title>
|
7
7
|
<%= stylesheet_link_tag "govuk_publishing_components/application", media: "all" %>
|
8
8
|
<%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_stylesheet}" %>
|
9
|
+
<% if GovukPublishingComponents::Config.application_print_stylesheet %>
|
10
|
+
<%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_print_stylesheet}", media: "print" %>
|
11
|
+
<% end %>
|
9
12
|
|
10
13
|
<%= javascript_include_tag "govuk_publishing_components/application" %>
|
11
14
|
<%= javascript_include_tag "#{GovukPublishingComponents::Config.application_javascript}" %>
|
@@ -10,6 +10,9 @@ module GovukPublishingComponents
|
|
10
10
|
mattr_accessor :application_stylesheet
|
11
11
|
self.application_stylesheet = "application"
|
12
12
|
|
13
|
+
mattr_accessor :application_print_stylesheet
|
14
|
+
self.application_print_stylesheet = nil
|
15
|
+
|
13
16
|
mattr_accessor :application_javascript
|
14
17
|
self.application_javascript = "application"
|
15
18
|
end
|