govuk_template 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/LICENCE.txt +22 -0
  2. data/README.md +61 -0
  3. data/app/assets/images/apple-touch-icon-114x114.png +0 -0
  4. data/app/assets/images/apple-touch-icon-144x144.png +0 -0
  5. data/app/assets/images/apple-touch-icon-57x57.png +0 -0
  6. data/app/assets/images/apple-touch-icon-72x72.png +0 -0
  7. data/app/assets/images/favicon.ico +0 -0
  8. data/app/assets/images/gov.uk_logotype-2x.png +0 -0
  9. data/app/assets/images/gov.uk_logotype_crown.png +0 -0
  10. data/app/assets/images/gov.uk_logotype_crown_invert.png +0 -0
  11. data/app/assets/images/gov.uk_logotype_crown_invert_trans.png +0 -0
  12. data/app/assets/images/open-government-licence_2x.png +0 -0
  13. data/app/assets/images/opengraph-image.png +0 -0
  14. data/app/assets/javascripts/govuk-template.js +97 -0
  15. data/app/assets/javascripts/ie.js +512 -0
  16. data/app/assets/javascripts/vendor/goog/webfont-debug.js +2126 -0
  17. data/app/assets/stylesheets/external-link-24x24.png +0 -0
  18. data/app/assets/stylesheets/external-link-black-12x12.png +0 -0
  19. data/app/assets/stylesheets/external-link-black-24x24.png +0 -0
  20. data/app/assets/stylesheets/external-link.png +0 -0
  21. data/app/assets/stylesheets/fonts-ie8.css.erb +30 -0
  22. data/app/assets/stylesheets/fonts.css.erb +30 -0
  23. data/app/assets/stylesheets/fonts/NTA-Bold-20130221.eot +0 -0
  24. data/app/assets/stylesheets/fonts/NTA-Bold-20130221.woff +0 -0
  25. data/app/assets/stylesheets/fonts/NTA-Light-20130221.eot +0 -0
  26. data/app/assets/stylesheets/fonts/NTA-Light-20130221.woff +0 -0
  27. data/app/assets/stylesheets/fonts/NTATabularNumbers-Bold.eot +0 -0
  28. data/app/assets/stylesheets/fonts/NTATabularNumbers-Bold.woff +0 -0
  29. data/app/assets/stylesheets/fonts/NTATabularNumbers-Light.eot +0 -0
  30. data/app/assets/stylesheets/fonts/NTATabularNumbers-Light.woff +0 -0
  31. data/app/assets/stylesheets/govuk-template-ie6.css.erb +548 -0
  32. data/app/assets/stylesheets/govuk-template-ie7.css.erb +544 -0
  33. data/app/assets/stylesheets/govuk-template-ie8.css.erb +527 -0
  34. data/app/assets/stylesheets/govuk-template-print.css.erb +78 -0
  35. data/app/assets/stylesheets/govuk-template.css.erb +575 -0
  36. data/app/assets/stylesheets/images/close.png +0 -0
  37. data/app/assets/stylesheets/images/govuk-crest-2x.png +0 -0
  38. data/app/assets/stylesheets/images/govuk-crest-ie.png +0 -0
  39. data/app/assets/stylesheets/images/govuk-crest.png +0 -0
  40. data/app/assets/stylesheets/images/separator-2x.png +0 -0
  41. data/app/assets/stylesheets/images/separator.png +0 -0
  42. data/app/views/layouts/govuk_template.html.erb +127 -0
  43. data/lib/govuk_template.rb +5 -0
  44. data/lib/govuk_template/engine.rb +13 -0
  45. data/lib/govuk_template/version.rb +3 -0
  46. metadata +209 -0
@@ -0,0 +1,127 @@
1
+ <%= yield :top_of_page %>
2
+ <!DOCTYPE html>
3
+ <!--[if lt IE 9]><html class="lte-ie8" lang="en"><![endif]-->
4
+ <!--[if gt IE 8]><!--><html lang="en"><!--<![endif]-->
5
+ <head>
6
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
7
+
8
+ <title><%= content_for?(:page_title) ? yield(:page_title) : "GOV.UK - The best place to find government services and information" %></title>
9
+
10
+ <script type="text/javascript">
11
+ (function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var d=document,c="appendChild",a=d.createElement("style");a[c](d.createTextNode("@-ms-viewport{width:auto!important}"));d.getElementsByTagName("head")[0][c](a);}})();
12
+ </script>
13
+
14
+ <!--[if gt IE 8]><!--><link href="<%= asset_path "govuk-template.css" %>" media="screen" rel="stylesheet" type="text/css" /><!--<![endif]-->
15
+ <!--[if IE 6]><link href="<%= asset_path "govuk-template-ie6.css" %>" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
16
+ <!--[if IE 7]><link href="<%= asset_path "govuk-template-ie7.css" %>" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
17
+ <!--[if IE 8]><link href="<%= asset_path "govuk-template-ie8.css" %>" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
18
+
19
+ <link href="<%= asset_path "govuk-template-print.css" %>" media="print" rel="stylesheet" type="text/css" />
20
+
21
+ <!--[if IE 8]>
22
+ <script type="text/javascript">
23
+ (function(){if(window.opera){return;}
24
+ setTimeout(function(){var a=document,g,b={families:(g=
25
+ ["nta"]),urls:["<%= asset_path "fonts-ie8.css" %>"]},
26
+ c="<%= asset_path "vendor/goog/webfont-debug.js" %>",d="script",
27
+ e=a.createElement(d),f=a.getElementsByTagName(d)[0],h=g.length;WebFontConfig
28
+ ={custom:b},e.src=c,f.parentNode.insertBefore(e,f);for(;h=h-1;a.documentElement
29
+ .className+=' wf-'+g[h].replace(/\s/g,'').toLowerCase()+'-n4-loading');},0)
30
+ })()
31
+ </script>
32
+ <![endif]-->
33
+ <!--[if gte IE 9]><!-->
34
+ <link href="<%= asset_path "fonts.css" %>" media="all" rel="stylesheet" type="text/css" />
35
+ <!--<![endif]-->
36
+
37
+
38
+ <!--[if lt IE 9]>
39
+ <script src="<%= asset_path "ie.js" %>" type="text/javascript"></script>
40
+ <![endif]-->
41
+
42
+ <link rel="shortcut icon" href="<%= asset_path 'favicon.ico' %>" type="image/x-icon" />
43
+
44
+ <!-- For third-generation iPad with high-resolution Retina display: -->
45
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<%= asset_path "apple-touch-icon-144x144.png" %>">
46
+ <!-- For iPhone with high-resolution Retina display: -->
47
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<%= asset_path "apple-touch-icon-114x114.png" %>">
48
+ <!-- For first- and second-generation iPad: -->
49
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<%= asset_path "apple-touch-icon-72x72.png" %>">
50
+ <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
51
+ <link rel="apple-touch-icon-precomposed" href="<%= asset_path "apple-touch-icon-57x57.png" %>">
52
+
53
+ <meta name="viewport" content="width=device-width, initial-scale=1">
54
+ <meta property="og:image" content="<%= asset_path "opengraph-image.png" %>">
55
+
56
+ <%= yield :head %>
57
+ </head>
58
+
59
+ <body<%= content_for?(:body_classes) ? raw(" class=\"#{yield(:body_classes)}\"") : '' %>>
60
+ <script type="text/javascript">document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
61
+
62
+ <div id="skiplink-container">
63
+ <div>
64
+ <a href="#content" class="skiplink">Skip to main content</a>
65
+ </div>
66
+ </div>
67
+
68
+ <% unless @omit_header %>
69
+ <header role="banner" id="global-header">
70
+ <div class="header-wrapper">
71
+ <div class="header-global">
72
+ <div class="header-logo">
73
+ <a href="https://www.gov.uk/" title="Go to the GOV.UK homepage" id="logo" class="content">
74
+ <img src="<%= asset_path 'gov.uk_logotype_crown.png' %>" alt=""> <span>GOV&nbsp;<span>.</span>UK</span>
75
+ </a>
76
+ </div>
77
+
78
+ <%= yield :inside_header %>
79
+ </div>
80
+ </div>
81
+ </header>
82
+ <!--end header-->
83
+ <% end %>
84
+
85
+ <%= yield :after_header %>
86
+
87
+ <div id="global-cookie-message">
88
+ <% if content_for?(:cookie_message) %>
89
+ <%= yield :cookie_message %>
90
+ <% else %>
91
+ <p>GOV.UK uses cookies to make the site simpler. <a href="https://www.gov.uk/help/cookies">Find out more about cookies</a></p>
92
+ <% end %>
93
+ </div>
94
+
95
+ <%= content_for?(:content) ? yield(:content) : yield %>
96
+
97
+ <footer class="group js-footer" id="footer" role="contentinfo">
98
+
99
+ <div class="footer-wrapper">
100
+ <%= yield :footer_top %>
101
+
102
+ <div class="footer-meta">
103
+ <div class="footer-meta-inner">
104
+ <%= yield :footer_support_links %>
105
+
106
+ <div class="open-government-licence">
107
+ <h2><a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2"><img src="<%= asset_path 'open-government-licence_2x.png' %>" alt="OGL"></a></h2>
108
+ <p>All content is available under the <a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2">Open Government Licence v2.0</a>, except where otherwise stated</p>
109
+ </div>
110
+ </div>
111
+
112
+ <div class="copyright">
113
+ <a href="http://www.nationalarchives.gov.uk/information-management/our-services/crown-copyright.htm">&copy; Crown Copyright</a>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </footer>
118
+
119
+ <!--end footer-->
120
+
121
+ <div id="global-app-error" class="app-error hidden"></div>
122
+
123
+ <script src="<%= asset_path "govuk-template.js" %>" type="text/javascript"></script>
124
+
125
+ <%= yield :body_end %>
126
+ </body>
127
+ </html>
@@ -0,0 +1,5 @@
1
+ require "govuk_template/version"
2
+ require "govuk_template/engine"
3
+
4
+ module GovukTemplate
5
+ end
@@ -0,0 +1,13 @@
1
+ module GovukTemplate
2
+ class Engine < ::Rails::Engine
3
+ initializer "govuk_template.assets.precompile" do |app|
4
+ app.config.assets.precompile += %w(
5
+ govuk-template*.css
6
+ fonts*.css
7
+ govuk-template.js
8
+ ie.js
9
+ vendor/goog/webfont-debug.js
10
+ )
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module GovukTemplate
2
+ VERSION = "0.3.8"
3
+ end
metadata ADDED
@@ -0,0 +1,209 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: govuk_template
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.8
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alex Tomlins
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-01-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: sprockets
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - '='
52
+ - !ruby/object:Gem::Version
53
+ version: 2.10.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.10.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: sass
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 3.2.9
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 3.2.9
78
+ - !ruby/object:Gem::Dependency
79
+ name: govuk_frontend_toolkit
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - '='
84
+ - !ruby/object:Gem::Version
85
+ version: 0.32.2
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - '='
92
+ - !ruby/object:Gem::Version
93
+ version: 0.32.2
94
+ - !ruby/object:Gem::Dependency
95
+ name: gem_publisher
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - '='
100
+ - !ruby/object:Gem::Version
101
+ version: 1.3.0
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: 1.3.0
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - '='
116
+ - !ruby/object:Gem::Version
117
+ version: 2.14.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - '='
124
+ - !ruby/object:Gem::Version
125
+ version: 2.14.1
126
+ description: Rails engine supplying the GOV.UK header/footer template
127
+ email:
128
+ - alex.tomlins@digital.cabinet-office.gov.uk
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - app/views/layouts/govuk_template.html.erb
134
+ - app/assets/stylesheets/external-link-black-12x12.png
135
+ - app/assets/stylesheets/govuk-template.css.erb
136
+ - app/assets/stylesheets/external-link-24x24.png
137
+ - app/assets/stylesheets/govuk-template-ie7.css.erb
138
+ - app/assets/stylesheets/fonts-ie8.css.erb
139
+ - app/assets/stylesheets/images/separator.png
140
+ - app/assets/stylesheets/images/govuk-crest.png
141
+ - app/assets/stylesheets/images/separator-2x.png
142
+ - app/assets/stylesheets/images/close.png
143
+ - app/assets/stylesheets/images/govuk-crest-2x.png
144
+ - app/assets/stylesheets/images/govuk-crest-ie.png
145
+ - app/assets/stylesheets/external-link.png
146
+ - app/assets/stylesheets/fonts/NTATabularNumbers-Bold.woff
147
+ - app/assets/stylesheets/fonts/NTATabularNumbers-Light.woff
148
+ - app/assets/stylesheets/fonts/NTATabularNumbers-Bold.eot
149
+ - app/assets/stylesheets/fonts/NTA-Light-20130221.woff
150
+ - app/assets/stylesheets/fonts/NTATabularNumbers-Light.eot
151
+ - app/assets/stylesheets/fonts/NTA-Bold-20130221.eot
152
+ - app/assets/stylesheets/fonts/NTA-Bold-20130221.woff
153
+ - app/assets/stylesheets/fonts/NTA-Light-20130221.eot
154
+ - app/assets/stylesheets/govuk-template-ie8.css.erb
155
+ - app/assets/stylesheets/govuk-template-ie6.css.erb
156
+ - app/assets/stylesheets/fonts.css.erb
157
+ - app/assets/stylesheets/external-link-black-24x24.png
158
+ - app/assets/stylesheets/govuk-template-print.css.erb
159
+ - app/assets/images/open-government-licence_2x.png
160
+ - app/assets/images/apple-touch-icon-144x144.png
161
+ - app/assets/images/opengraph-image.png
162
+ - app/assets/images/gov.uk_logotype_crown.png
163
+ - app/assets/images/apple-touch-icon-57x57.png
164
+ - app/assets/images/apple-touch-icon-114x114.png
165
+ - app/assets/images/apple-touch-icon-72x72.png
166
+ - app/assets/images/gov.uk_logotype_crown_invert.png
167
+ - app/assets/images/favicon.ico
168
+ - app/assets/images/gov.uk_logotype_crown_invert_trans.png
169
+ - app/assets/images/gov.uk_logotype-2x.png
170
+ - app/assets/javascripts/vendor/goog/webfont-debug.js
171
+ - app/assets/javascripts/ie.js
172
+ - app/assets/javascripts/govuk-template.js
173
+ - lib/govuk_template/engine.rb
174
+ - lib/govuk_template/version.rb
175
+ - lib/govuk_template.rb
176
+ - LICENCE.txt
177
+ - README.md
178
+ homepage: https://github.com/alphagov/govuk_template
179
+ licenses:
180
+ - MIT
181
+ post_install_message:
182
+ rdoc_options: []
183
+ require_paths:
184
+ - lib
185
+ required_ruby_version: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ segments:
192
+ - 0
193
+ hash: -4011492137946760384
194
+ required_rubygems_version: !ruby/object:Gem::Requirement
195
+ none: false
196
+ requirements:
197
+ - - ! '>='
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
200
+ segments:
201
+ - 0
202
+ hash: -4011492137946760384
203
+ requirements: []
204
+ rubyforge_project:
205
+ rubygems_version: 1.8.23
206
+ signing_key:
207
+ specification_version: 3
208
+ summary: Rails engine supplying the GOV.UK header/footer template
209
+ test_files: []