govuk_admin_template 4.4.2 → 5.0.0
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/app/views/layouts/govuk_admin_template.html.erb +2 -1
- data/lib/govuk_admin_template/config.rb +4 -0
- data/lib/govuk_admin_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: 5c3e9e95ec03df5a4a7a15e6b66158f7f1b48c62
|
4
|
+
data.tar.gz: d254e3c347ba93f673340a1eb431cd20a44b3e9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94ce51c82e1c44a01de7805046b6f4eb2a777546bd45ce0a355fb40006c137e1a9fe881aa94c770302044ce30b7c345d3510dc5f2091db4bf8de47a6c1777c74
|
7
|
+
data.tar.gz: 6955d3a991173e3a52005d38eab888cf487f5bae2cd6016b49a44be11198ef6ea9c511626b94965f2c5de120dd79e3f622cb3649d10c34551bf2ce9dae886c80
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -98,6 +98,7 @@ GovukAdminTemplate.configure do |c|
|
|
98
98
|
c.app_title = "My Publisher"
|
99
99
|
c.show_flash = true
|
100
100
|
c.show_signout = true
|
101
|
+
c.disable_google_analytics = false
|
101
102
|
end
|
102
103
|
```
|
103
104
|
|
@@ -142,7 +143,6 @@ The gem [uses nested layouts](http://guides.rubyonrails.org/layouts_and_renderin
|
|
142
143
|
`:body_start` (optional) | Just after the `<body>` tag
|
143
144
|
`:body_end` (optional) | Just before the `</body>` tag
|
144
145
|
`:full_width` (optional, boolean) | Expand content to edges of screen.
|
145
|
-
`:exclude_analytics` (optional, boolean) | Don’t use the default Google Analytics snippet and profile.
|
146
146
|
`:navbar` (optional) | Custom navbar content, overrides default navbar
|
147
147
|
|
148
148
|
Example navbar_items:
|
@@ -4,6 +4,7 @@
|
|
4
4
|
app_home_path = content_for?(:app_home_path) ? yield(:app_home_path) : root_path
|
5
5
|
app_title = content_for?(:app_title) ? yield(:app_title) : GovukAdminTemplate::Config.app_title
|
6
6
|
has_navbar_content = GovukAdminTemplate::Config.show_signout || content_for?(:navbar_right) || content_for?(:navbar_items)
|
7
|
+
disable_google_analytics = GovukAdminTemplate::Config.disable_google_analytics
|
7
8
|
%>
|
8
9
|
<!DOCTYPE html>
|
9
10
|
<!--[if lte IE 7]><html class="no-js lte-ie7" lang="en"><![endif]-->
|
@@ -110,7 +111,7 @@
|
|
110
111
|
</footer>
|
111
112
|
</section>
|
112
113
|
<%= yield :body_end %>
|
113
|
-
<% unless
|
114
|
+
<% unless disable_google_analytics %>
|
114
115
|
<% if Rails.env.production? %>
|
115
116
|
<script class="analytics">
|
116
117
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_admin_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|