govuk_template 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/views/layouts/govuk_template.html.erb +3 -0
- data/lib/govuk_template/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29b0a821339912c3264d9000a6d5822d0bad5950
|
|
4
|
+
data.tar.gz: 1e5e8809914432ea28a49ff82d2bcff6829c6094
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44dc4910bee156aab3a913181e87135e085299acb4610fc8fa791c528e101e9ab0f6bf5a103854797a195e7f7dbaa99a2ac19b5f2e6516aa8bebd8bae500a088
|
|
7
|
+
data.tar.gz: 550fe9be4e306768485062e3236d33a8b5cc19834a9ffc0d2404b63201be364fdea91555fcdb57ae3966a669bc0d3ab282dbe4d51fbab0537087b20e98b237f8
|
data/README.md
CHANGED
|
@@ -23,6 +23,8 @@ The Ruby language (1.9.3+), the build tool [Rake](http://rake.rubyforge.org/) &
|
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
|
+
* [Using with Rails](docs/using-with-rails.md)
|
|
27
|
+
* [GOV.UK template blocks and their default values (how to customise the template)](docs/template-blocks.md)
|
|
26
28
|
* [Setting a Skip link](docs/usage.md#skip-link)
|
|
27
29
|
* [Propositional title and navigation](docs/usage.md#propositional-title-and-navigation)
|
|
28
30
|
|
|
@@ -101,5 +101,8 @@
|
|
|
101
101
|
<script src="<%= asset_path "govuk-template.js" %>"></script>
|
|
102
102
|
|
|
103
103
|
<%= yield :body_end %>
|
|
104
|
+
|
|
105
|
+
<%# if no GOVUK-namespaced module has loaded we can assume JS has failed and remove the class %>
|
|
106
|
+
<script>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
|
|
104
107
|
</body>
|
|
105
108
|
</html>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_template
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.18.
|
|
4
|
+
version: 0.18.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Tomlins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|