moj_internal_template 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/LICENCE.txt +24 -0
  3. data/README.md +39 -0
  4. data/app/assets/fonts/Bliss2Rg.eot +0 -0
  5. data/app/assets/fonts/Bliss2Rg.ttf +0 -0
  6. data/app/assets/fonts/Bliss2Rg.woff +0 -0
  7. data/app/assets/images/moj_logotype_crest.png +0 -0
  8. data/app/assets/javascripts/modules/moj.cookie-message.js +82 -0
  9. data/app/assets/javascripts/modules/moj.tabs.js +83 -0
  10. data/app/assets/javascripts/moj.js +54 -0
  11. data/app/assets/javascripts/vendor/jquery/jquery-1.11.0.min.js +4 -0
  12. data/app/assets/stylesheets/elements/_buttons.scss +56 -0
  13. data/app/assets/stylesheets/elements/_colours.scss +34 -0
  14. data/app/assets/stylesheets/elements/_forms.scss +171 -0
  15. data/app/assets/stylesheets/elements/_helpers.scss +51 -0
  16. data/app/assets/stylesheets/elements/_icons.scss +222 -0
  17. data/app/assets/stylesheets/elements/_layout.scss +151 -0
  18. data/app/assets/stylesheets/elements/_lists.scss +32 -0
  19. data/app/assets/stylesheets/elements/_panels.scss +30 -0
  20. data/app/assets/stylesheets/elements/_reset.scss +33 -0
  21. data/app/assets/stylesheets/elements/_shame.scss +79 -0
  22. data/app/assets/stylesheets/elements/_tables.scss +22 -0
  23. data/app/assets/stylesheets/elements/_typography.scss +150 -0
  24. data/app/assets/stylesheets/elements/forms/_form-chunky-labels.scss +62 -0
  25. data/app/assets/stylesheets/elements/forms/_form-date-of-birth.scss +45 -0
  26. data/app/assets/stylesheets/elements/forms/_form-validation.scss +64 -0
  27. data/app/assets/stylesheets/moj-internal-ie6.scss +5 -0
  28. data/app/assets/stylesheets/moj-internal-ie7.scss +4 -0
  29. data/app/assets/stylesheets/moj-internal-ie8.scss +4 -0
  30. data/app/assets/stylesheets/moj-internal.scss +56 -0
  31. data/app/assets/stylesheets/moj/_fonts.scss +12 -0
  32. data/app/assets/stylesheets/moj/_header.scss +126 -0
  33. data/app/assets/stylesheets/moj/_typography.scss +72 -0
  34. data/app/helpers/moj_helper.rb +5 -0
  35. data/app/views/layouts/moj_internal_template.html.erb +114 -0
  36. data/app/views/layouts/partials/_after_header.html.erb +14 -0
  37. data/app/views/layouts/partials/_body_classes.html.erb +1 -0
  38. data/app/views/layouts/partials/_body_end.html.erb +10 -0
  39. data/app/views/layouts/partials/_content.html.erb +11 -0
  40. data/app/views/layouts/partials/_cookie_message.html.erb +5 -0
  41. data/app/views/layouts/partials/_footer_support_links.html.erb +15 -0
  42. data/app/views/layouts/partials/_header_class.html.erb +1 -0
  43. data/app/views/layouts/partials/_page_title.html.erb +1 -0
  44. data/lib/moj_internal_template.rb +5 -0
  45. data/lib/moj_internal_template/engine.rb +11 -0
  46. data/lib/moj_internal_template/version.rb +3 -0
  47. metadata +173 -0
@@ -0,0 +1,5 @@
1
+ <% if content_for?(:cookie_message) %>
2
+ <%= yield :cookie_message %>
3
+ <% else %>
4
+ <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>
5
+ <% end %>
@@ -0,0 +1,15 @@
1
+ <h2 class="visuallyhidden">Support links</h2>
2
+ <ul>
3
+ <% if content_for?(:footer_app_links) %>
4
+ <%= yield(:footer_app_links) %>
5
+ <% else %>
6
+ <li><a href="http://www.gov.uk/help">Help</a></li>
7
+ <li><a href="http://www.gov.uk/help/cookies">Cookies</a></li>
8
+ <li><a href="http://www.gov.uk/contact">Contact</a></li>
9
+ <li><a href="http://www.gov.uk/cymraeg">Cymraeg</a></li>
10
+ <% end %>
11
+ <li>
12
+ Built by the
13
+ <a href="https://mojdigital.blog.gov.uk/"><abbr title="Ministry of Justice">MOJ</abbr> Digital Services</a>
14
+ </li>
15
+ </ul>
@@ -0,0 +1 @@
1
+ with-proposition <%= yield :header_class %>
@@ -0,0 +1 @@
1
+ <%= content_for?(:page_title) ? yield(:page_title) : "GOV.UK - The best place to find government services and information" %>
@@ -0,0 +1,5 @@
1
+ require "moj_internal_template/version"
2
+ require "moj_internal_template/engine"
3
+
4
+ module MojInternalTemplate
5
+ end
@@ -0,0 +1,11 @@
1
+ module MojInternalTemplate
2
+ class Engine < ::Rails::Engine
3
+ initializer "moj_internal_template.assets.precompile" do |app|
4
+ app.config.assets.paths << Engine.root.join("app", "assets", "fonts")
5
+ app.config.assets.precompile += %w(
6
+ moj-internal*.css
7
+ moj.js
8
+ )
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module MojInternalTemplate
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: moj_internal_template
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Paul Battley
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: govuk_template
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: govuk_frontend_toolkit
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.3.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 1.3.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: gem_publisher
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 1.3.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 1.3.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 2.14.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 2.14.1
97
+ description: Template for Ministry of Justice internal services
98
+ email:
99
+ - paul.battley@digital.justice.gov.uk
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - LICENCE.txt
105
+ - README.md
106
+ - app/assets/fonts/Bliss2Rg.eot
107
+ - app/assets/fonts/Bliss2Rg.ttf
108
+ - app/assets/fonts/Bliss2Rg.woff
109
+ - app/assets/images/moj_logotype_crest.png
110
+ - app/assets/javascripts/modules/moj.cookie-message.js
111
+ - app/assets/javascripts/modules/moj.tabs.js
112
+ - app/assets/javascripts/moj.js
113
+ - app/assets/javascripts/vendor/jquery/jquery-1.11.0.min.js
114
+ - app/assets/stylesheets/elements/_buttons.scss
115
+ - app/assets/stylesheets/elements/_colours.scss
116
+ - app/assets/stylesheets/elements/_forms.scss
117
+ - app/assets/stylesheets/elements/_helpers.scss
118
+ - app/assets/stylesheets/elements/_icons.scss
119
+ - app/assets/stylesheets/elements/_layout.scss
120
+ - app/assets/stylesheets/elements/_lists.scss
121
+ - app/assets/stylesheets/elements/_panels.scss
122
+ - app/assets/stylesheets/elements/_reset.scss
123
+ - app/assets/stylesheets/elements/_shame.scss
124
+ - app/assets/stylesheets/elements/_tables.scss
125
+ - app/assets/stylesheets/elements/_typography.scss
126
+ - app/assets/stylesheets/elements/forms/_form-chunky-labels.scss
127
+ - app/assets/stylesheets/elements/forms/_form-date-of-birth.scss
128
+ - app/assets/stylesheets/elements/forms/_form-validation.scss
129
+ - app/assets/stylesheets/moj-internal-ie6.scss
130
+ - app/assets/stylesheets/moj-internal-ie7.scss
131
+ - app/assets/stylesheets/moj-internal-ie8.scss
132
+ - app/assets/stylesheets/moj-internal.scss
133
+ - app/assets/stylesheets/moj/_fonts.scss
134
+ - app/assets/stylesheets/moj/_header.scss
135
+ - app/assets/stylesheets/moj/_typography.scss
136
+ - app/helpers/moj_helper.rb
137
+ - app/views/layouts/moj_internal_template.html.erb
138
+ - app/views/layouts/partials/_after_header.html.erb
139
+ - app/views/layouts/partials/_body_classes.html.erb
140
+ - app/views/layouts/partials/_body_end.html.erb
141
+ - app/views/layouts/partials/_content.html.erb
142
+ - app/views/layouts/partials/_cookie_message.html.erb
143
+ - app/views/layouts/partials/_footer_support_links.html.erb
144
+ - app/views/layouts/partials/_header_class.html.erb
145
+ - app/views/layouts/partials/_page_title.html.erb
146
+ - lib/moj_internal_template.rb
147
+ - lib/moj_internal_template/engine.rb
148
+ - lib/moj_internal_template/version.rb
149
+ homepage: https://github.com/ministryofjustice/moj_internal_emplate
150
+ licenses:
151
+ - MIT
152
+ metadata: {}
153
+ post_install_message:
154
+ rdoc_options: []
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ requirements: []
168
+ rubyforge_project:
169
+ rubygems_version: 2.2.2
170
+ signing_key:
171
+ specification_version: 4
172
+ summary: MoJ internal template
173
+ test_files: []