govuk_template 0.18.1 → 0.18.2

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: f6e484ae9e00e90fab21d3c7c3c54fa82f636e01
4
- data.tar.gz: e059bd4b907013b55e89631fd8111c83a9e6bbc8
3
+ metadata.gz: 29b0a821339912c3264d9000a6d5822d0bad5950
4
+ data.tar.gz: 1e5e8809914432ea28a49ff82d2bcff6829c6094
5
5
  SHA512:
6
- metadata.gz: 9dfbb45f3585cfa414d6d5035dc991dec14abb8d84a09823fb0905a9bf8f11ca9a531cbe038ea9483d6c7bbfb0444fda4b8dfe0f7fa4f542bd7d90c4b03cd1d4
7
- data.tar.gz: a7126a6afc092ab3d18bf0b77cb5021ffea439ef27c42644f750939fa0929816b5cf07adf98461d04cea98754abe95110a90203beac76e9bf5a95c7345ecf414
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>
@@ -1,3 +1,3 @@
1
1
  module GovukTemplate
2
- VERSION = "0.18.1"
2
+ VERSION = "0.18.2"
3
3
  end
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.1
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-08-22 00:00:00.000000000 Z
11
+ date: 2016-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails