idsk_template 0.24.0.idsk.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/LICENCE.txt +22 -0
  3. data/README.md +35 -0
  4. data/app/assets/images/apple-touch-icon-152x152.png +0 -0
  5. data/app/assets/images/apple-touch-icon-167x167.png +0 -0
  6. data/app/assets/images/apple-touch-icon-180x180.png +0 -0
  7. data/app/assets/images/apple-touch-icon.png +0 -0
  8. data/app/assets/images/favicon.ico +0 -0
  9. data/app/assets/images/gov.uk_logotype_crown.svg +7 -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/opengraph-image.png +0 -0
  13. data/app/assets/javascripts/idsk-template.js +114 -0
  14. data/app/assets/javascripts/ie.js +494 -0
  15. data/app/assets/stylesheets/fonts.css.erb +48 -0
  16. data/app/assets/stylesheets/fonts/v1-2c037cf7e1-light.eot +0 -0
  17. data/app/assets/stylesheets/fonts/v1-357fdfbcc3-tabular-bold.eot +0 -0
  18. data/app/assets/stylesheets/fonts/v1-458f8ea81c-light.woff +0 -0
  19. data/app/assets/stylesheets/fonts/v1-498ea8ffe2-tabular-light.eot +0 -0
  20. data/app/assets/stylesheets/fonts/v1-62cc6f0a28-tabular-light.woff +0 -0
  21. data/app/assets/stylesheets/fonts/v1-784c21afb8-tabular-bold.woff +0 -0
  22. data/app/assets/stylesheets/fonts/v1-851b10ccdd-tabular-light.woff2 +0 -0
  23. data/app/assets/stylesheets/fonts/v1-a2452cb66f-bold.woff2 +0 -0
  24. data/app/assets/stylesheets/fonts/v1-b89238d840-tabular-bold.woff2 +0 -0
  25. data/app/assets/stylesheets/fonts/v1-f38ad40456-light.woff2 +0 -0
  26. data/app/assets/stylesheets/fonts/v1-f38c792ac2-bold.woff +0 -0
  27. data/app/assets/stylesheets/fonts/v1-fb2676462a-bold.eot +0 -0
  28. data/app/assets/stylesheets/idsk-template-ie6.css.erb +588 -0
  29. data/app/assets/stylesheets/idsk-template-ie7.css.erb +586 -0
  30. data/app/assets/stylesheets/idsk-template-ie8.css.erb +564 -0
  31. data/app/assets/stylesheets/idsk-template-print.css.erb +75 -0
  32. data/app/assets/stylesheets/idsk-template.css.erb +622 -0
  33. data/app/assets/stylesheets/images/close.png +0 -0
  34. data/app/assets/stylesheets/images/gov.uk_logotype_crown-1x.png +0 -0
  35. data/app/assets/stylesheets/images/gov.uk_logotype_crown.png +0 -0
  36. data/app/assets/stylesheets/images/govuk-crest-2x.png +0 -0
  37. data/app/assets/stylesheets/images/govuk-crest-ie.png +0 -0
  38. data/app/assets/stylesheets/images/govuk-crest.png +0 -0
  39. data/app/assets/stylesheets/images/open-government-licence.png +0 -0
  40. data/app/assets/stylesheets/images/open-government-licence_2x.png +0 -0
  41. data/app/views/layouts/idsk_template.html.erb +115 -0
  42. data/lib/idsk_template.rb +5 -0
  43. data/lib/idsk_template/engine.rb +21 -0
  44. data/lib/idsk_template/version.rb +3 -0
  45. metadata +243 -0
@@ -0,0 +1,115 @@
1
+ <%= yield :top_of_page %>
2
+ <!DOCTYPE html>
3
+ <!--[if lt IE 9]><html class="lte-ie8" lang="<%= content_for?(:html_lang) ? yield(:html_lang) : "en" %>"><![endif]-->
4
+ <!--[if gt IE 8]><!--><html lang="<%= content_for?(:html_lang) ? yield(:html_lang) : "en" %>"><!--<![endif]-->
5
+ <head>
6
+ <meta charset="utf-8" />
7
+ <title><%= content_for?(:page_title) ? yield(:page_title) : "GOV.UK - The best place to find government services and information" %></title>
8
+
9
+ <!--[if gt IE 8]><!--><%= stylesheet_link_tag "idsk-template.css", integrity: true, crossorigin: "anonymous" %><!--<![endif]-->
10
+ <!--[if IE 6]><%= stylesheet_link_tag "idsk-template-ie6.css" %><![endif]-->
11
+ <!--[if IE 7]><%= stylesheet_link_tag "idsk-template-ie7.css" %><![endif]-->
12
+ <!--[if IE 8]><%= stylesheet_link_tag "idsk-template-ie8.css" %><![endif]-->
13
+ <%= stylesheet_link_tag "idsk-template-print.css", media: "print", integrity: true, crossorigin: "anonymous" %>
14
+
15
+ <%= stylesheet_link_tag "fonts.css", media: "all", integrity: true, crossorigin: "anonymous" %>
16
+ <!--[if lt IE 9]><%= javascript_include_tag "ie.js", integrity: true, crossorigin: "anonymous" %><![endif]-->
17
+
18
+ <link rel="shortcut icon" href="<%= asset_path 'favicon.ico' %>" type="image/x-icon" />
19
+ <%# the colour used for mask-icon is the standard palette $black from
20
+ https://github.com/alphagov/govuk_frontend_toolkit/blob/master/stylesheets/colours/_palette.scss %>
21
+ <link rel="mask-icon" href="<%= asset_path 'gov.uk_logotype_crown.svg' %>" color="#0b0c0c">
22
+ <link rel="apple-touch-icon" sizes="180x180" href="<%= asset_path "apple-touch-icon-180x180.png" %>">
23
+ <link rel="apple-touch-icon" sizes="167x167" href="<%= asset_path "apple-touch-icon-167x167.png" %>">
24
+ <link rel="apple-touch-icon" sizes="152x152" href="<%= asset_path "apple-touch-icon-152x152.png" %>">
25
+ <link rel="apple-touch-icon" href="<%= asset_path "apple-touch-icon.png" %>">
26
+
27
+ <%# the colour used for theme-color is the standard palette $black from
28
+ https://github.com/alphagov/govuk_frontend_toolkit/blob/master/stylesheets/colours/_palette.scss %>
29
+ <meta name="theme-color" content="#0b0c0c" />
30
+
31
+ <meta name="viewport" content="width=device-width, initial-scale=1">
32
+
33
+ <%= yield :head %>
34
+
35
+ <%# The default og:image is added below :head so that scrapers see any custom metatags first, and this is just a fallback %>
36
+ <meta property="og:image" content="<%= asset_path "opengraph-image.png" %>">
37
+ </head>
38
+
39
+ <body<%= content_for?(:body_classes) ? raw(" class=\"#{yield(:body_classes)}\"") : '' %>>
40
+ <script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
41
+
42
+ <%= yield :body_start %>
43
+
44
+ <div id="skiplink-container">
45
+ <div>
46
+ <a href="#content" class="skiplink"><%= content_for?(:skip_link_message) ? yield(:skip_link_message) : "Skip to main content" %></a>
47
+ </div>
48
+ </div>
49
+
50
+ <div id="global-cookie-message">
51
+ <% if content_for?(:cookie_message) %>
52
+ <%= yield :cookie_message %>
53
+ <% else %>
54
+ <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>
55
+ <% end %>
56
+ </div>
57
+
58
+ <% unless @omit_header %>
59
+ <header role="banner" id="global-header" class="<%= yield(:header_class) %>">
60
+ <div class="header-wrapper">
61
+ <div class="header-global">
62
+ <div class="header-logo">
63
+ <a href="<%= content_for?(:homepage_url) ? yield(:homepage_url) : "https://www.gov.uk/" %>" title="<%= content_for?(:logo_link_title) ? yield(:logo_link_title) : "Go to the GOV.UK homepage" %>" id="logo" class="content">
64
+ <img src="<%= asset_path 'gov.uk_logotype_crown_invert_trans.png' %>" width="36" height="32" alt=""> <%= content_for?(:global_header_text) ? yield(:global_header_text) : "GOV.UK" %>
65
+ </a>
66
+ </div>
67
+ <%= yield :inside_header %>
68
+ </div>
69
+ <%= yield :proposition_header %>
70
+ </div>
71
+ </header>
72
+ <% end %>
73
+
74
+ <%= yield :after_header %>
75
+
76
+ <div id="global-header-bar"></div>
77
+
78
+ <%= content_for?(:content) ? yield(:content) : yield %>
79
+
80
+ <footer class="group js-footer" id="footer" role="contentinfo">
81
+
82
+ <div class="footer-wrapper">
83
+ <%= yield :footer_top %>
84
+
85
+ <div class="footer-meta">
86
+ <div class="footer-meta-inner">
87
+ <%= yield :footer_support_links %>
88
+
89
+ <div class="open-government-licence">
90
+ <p class="logo"><a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence</a></p>
91
+ <% if content_for?(:licence_message) %>
92
+ <%= yield :licence_message %>
93
+ <% else %>
94
+ <p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>
95
+ <% end %>
96
+ </div>
97
+ </div>
98
+
99
+ <div class="copyright">
100
+ <a href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"><%= content_for?(:crown_copyright_message) ? yield(:crown_copyright_message) : "© Crown copyright" %></a>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </footer>
105
+
106
+ <div id="global-app-error" class="app-error hidden"></div>
107
+
108
+ <%= javascript_include_tag "idsk-template.js", integrity: true, crossorigin: "anonymous" %>
109
+
110
+ <%= yield :body_end %>
111
+
112
+ <%# if no GOVUK-namespaced module has loaded we can assume JS has failed and remove the class %>
113
+ <script>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
114
+ </body>
115
+ </html>
@@ -0,0 +1,5 @@
1
+ require "idsk_template/version"
2
+ require "idsk_template/engine"
3
+
4
+ module IdskTemplate
5
+ end
@@ -0,0 +1,21 @@
1
+ module IdskTemplate
2
+ class Engine < ::Rails::Engine
3
+ initializer "idsk_template.assets.precompile" do |app|
4
+ app.config.assets.precompile += %w(
5
+ favicon.ico
6
+ idsk-template*.css
7
+ fonts*.css
8
+ idsk-template.js
9
+ ie.js
10
+ apple-touch-icon-180x180.png
11
+ apple-touch-icon-167x167.png
12
+ apple-touch-icon-152x152.png
13
+ apple-touch-icon.png
14
+ gov.uk_logotype_crown_invert.png
15
+ gov.uk_logotype_crown_invert_trans.png
16
+ gov.uk_logotype_crown.svg
17
+ opengraph-image.png
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module IdskTemplate
2
+ VERSION = "0.24.0.idsk.alpha.1"
3
+ end
metadata ADDED
@@ -0,0 +1,243 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: idsk_template
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.24.0.idsk.alpha.1
5
+ platform: ruby
6
+ authors:
7
+ - Ernest Walzel
8
+ - Alex Tomlins
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2018-04-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '3.1'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '3.1'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: sprockets
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 2.10.2
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 2.10.2
56
+ - !ruby/object:Gem::Dependency
57
+ name: sass
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 3.2.9
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 3.2.9
70
+ - !ruby/object:Gem::Dependency
71
+ name: idsk_frontend_toolkit
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 7.4.0
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 7.4.0
84
+ - !ruby/object:Gem::Dependency
85
+ name: rspec
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 3.5.0
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 3.5.0
98
+ - !ruby/object:Gem::Dependency
99
+ name: rspec-html-matchers
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 0.8.1
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 0.8.1
112
+ - !ruby/object:Gem::Dependency
113
+ name: mustache
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: 0.99.7
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: 0.99.7
126
+ - !ruby/object:Gem::Dependency
127
+ name: nokogiri
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: 1.6.6.2
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 1.6.6.2
140
+ - !ruby/object:Gem::Dependency
141
+ name: octokit
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: 3.4.2
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: 3.4.2
154
+ - !ruby/object:Gem::Dependency
155
+ name: pry
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ description: Rails engine supplying the ID-SK header/footer template
169
+ email:
170
+ - ernest.walzel@slovensko.digital
171
+ - alex.tomlins@digital.cabinet-office.gov.uk
172
+ executables: []
173
+ extensions: []
174
+ extra_rdoc_files: []
175
+ files:
176
+ - LICENCE.txt
177
+ - README.md
178
+ - app/assets/images/apple-touch-icon-152x152.png
179
+ - app/assets/images/apple-touch-icon-167x167.png
180
+ - app/assets/images/apple-touch-icon-180x180.png
181
+ - app/assets/images/apple-touch-icon.png
182
+ - app/assets/images/favicon.ico
183
+ - app/assets/images/gov.uk_logotype_crown.svg
184
+ - app/assets/images/gov.uk_logotype_crown_invert.png
185
+ - app/assets/images/gov.uk_logotype_crown_invert_trans.png
186
+ - app/assets/images/opengraph-image.png
187
+ - app/assets/javascripts/idsk-template.js
188
+ - app/assets/javascripts/ie.js
189
+ - app/assets/stylesheets/fonts.css.erb
190
+ - app/assets/stylesheets/fonts/v1-2c037cf7e1-light.eot
191
+ - app/assets/stylesheets/fonts/v1-357fdfbcc3-tabular-bold.eot
192
+ - app/assets/stylesheets/fonts/v1-458f8ea81c-light.woff
193
+ - app/assets/stylesheets/fonts/v1-498ea8ffe2-tabular-light.eot
194
+ - app/assets/stylesheets/fonts/v1-62cc6f0a28-tabular-light.woff
195
+ - app/assets/stylesheets/fonts/v1-784c21afb8-tabular-bold.woff
196
+ - app/assets/stylesheets/fonts/v1-851b10ccdd-tabular-light.woff2
197
+ - app/assets/stylesheets/fonts/v1-a2452cb66f-bold.woff2
198
+ - app/assets/stylesheets/fonts/v1-b89238d840-tabular-bold.woff2
199
+ - app/assets/stylesheets/fonts/v1-f38ad40456-light.woff2
200
+ - app/assets/stylesheets/fonts/v1-f38c792ac2-bold.woff
201
+ - app/assets/stylesheets/fonts/v1-fb2676462a-bold.eot
202
+ - app/assets/stylesheets/idsk-template-ie6.css.erb
203
+ - app/assets/stylesheets/idsk-template-ie7.css.erb
204
+ - app/assets/stylesheets/idsk-template-ie8.css.erb
205
+ - app/assets/stylesheets/idsk-template-print.css.erb
206
+ - app/assets/stylesheets/idsk-template.css.erb
207
+ - app/assets/stylesheets/images/close.png
208
+ - app/assets/stylesheets/images/gov.uk_logotype_crown-1x.png
209
+ - app/assets/stylesheets/images/gov.uk_logotype_crown.png
210
+ - app/assets/stylesheets/images/govuk-crest-2x.png
211
+ - app/assets/stylesheets/images/govuk-crest-ie.png
212
+ - app/assets/stylesheets/images/govuk-crest.png
213
+ - app/assets/stylesheets/images/open-government-licence.png
214
+ - app/assets/stylesheets/images/open-government-licence_2x.png
215
+ - app/views/layouts/idsk_template.html.erb
216
+ - lib/idsk_template.rb
217
+ - lib/idsk_template/engine.rb
218
+ - lib/idsk_template/version.rb
219
+ homepage: https://github.com/id-sk/template
220
+ licenses:
221
+ - MIT
222
+ metadata: {}
223
+ post_install_message:
224
+ rdoc_options: []
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ version: '0'
232
+ required_rubygems_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">"
235
+ - !ruby/object:Gem::Version
236
+ version: 1.3.1
237
+ requirements: []
238
+ rubyforge_project:
239
+ rubygems_version: 2.5.1
240
+ signing_key:
241
+ specification_version: 4
242
+ summary: Rails engine supplying the ID-SK header/footer template
243
+ test_files: []