govuk_admin_template 3.5.0 → 4.0.0

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: 3f20c5c335ad177c7e7d9a590c4776562d3a0599
4
- data.tar.gz: 55511919e7f9a0f86aa37edc0a0d20ba548dfe83
3
+ metadata.gz: 66f113888dcb4019162fda904d9bfb43169c96fa
4
+ data.tar.gz: 63fa02aab31236c7a4405b5c97308e165e6a4643
5
5
  SHA512:
6
- metadata.gz: 33faa3809010f59386d3a4e472915328bb3c3076cda2faf33f22bbc01f6b98065c49436c24a4d7ca30f16e73117f1df196008635e15d916ff91e8b6266964b82
7
- data.tar.gz: 0d492f87d6fef048f933df1a6216143d2adb9e550f3f24985848d05db13b2d471c3f0fe8a76a41021afb225d7b8a68fef984f63d3e8529e8179b52b65d99854a
6
+ metadata.gz: 16c0156d7f516c08fd309975e49924f46817b9a1204fe925d0c66e037aa1358e8a98398f31be41ec632f76b9a2edcea5d9ef6f86e9f98a82cab7678e813cb8be
7
+ data.tar.gz: 0cd3873bf0a76672d6b7e5a9ae925dc3645077419c54f322d33da4122864785055b0cdb5ab25dfa67f5e514463872695e7f47e835b3275d1c98af76eba3c940b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.0.0
2
+
3
+ * Allow environment style and labels to be set to integration. When using integration as the environment style the custom favicon in the application must also be present. eg `favicon-preview.png` must be duplicated as `favicon-integration.png`. #102
4
+
1
5
  # 3.5.0
2
6
 
3
7
  * Add a govspeak help template
data/README.md CHANGED
@@ -143,16 +143,16 @@ time.to_s(:govuk_time)
143
143
 
144
144
  ### Environment indicators
145
145
 
146
- The gem includes default styles for development, preview and production. This includes a coloured environment label, a coloured strip beneath the main navigation and a coloured favicon. They are based on two variables that are set at deploy time (if they aren’t set no indicator will be shown).
146
+ The gem includes default styles for development, integration and production. This includes a coloured environment label, a coloured strip beneath the main navigation and a coloured favicon. They are based on two variables that are set at deploy time (if they aren’t set no indicator will be shown).
147
147
 
148
148
  The following should be set within an initializer:
149
149
 
150
150
  ```ruby
151
151
  # used for the classname and favicon
152
- GovukAdminTemplate.environment_style = [preview|production|development]
152
+ GovukAdminTemplate.environment_style = [integration|production|development]
153
153
 
154
154
  # used for the human readable label
155
- GovukAdminTemplate.environment_label = [Preview|Staging|Production|Development]
155
+ GovukAdminTemplate.environment_label = [Integration|Staging|Production|Development]
156
156
  ```
157
157
 
158
158
  ## Flash messages
@@ -84,8 +84,9 @@ header .navbar-header {
84
84
  border-bottom-color: $production-color;
85
85
  }
86
86
 
87
- .environment-preview .environment-indicator {
88
- border-bottom-color: $preview-color;
87
+ .environment-preview .environment-indicator,
88
+ .environment-integration .environment-indicator {
89
+ border-bottom-color: $integration-color;
89
90
  }
90
91
 
91
92
  .environment-development .environment-indicator {
@@ -119,8 +120,9 @@ header .navbar-header {
119
120
  color: #fff;
120
121
  }
121
122
 
122
- .environment-preview .environment-label {
123
- background-color: $preview-color;
123
+ .environment-preview .environment-indicator,
124
+ .environment-integration .environment-indicator {
125
+ background-color: $integration-color;
124
126
  color: #000;
125
127
  }
126
128
 
@@ -44,5 +44,5 @@ $default-button-color : #333; /* Dark grey */
44
44
  ========================================================================== */
45
45
 
46
46
  $production-color: #df3034; /* Red */
47
- $preview-color: #ffbf47; /* Orange */
47
+ $integration-color:#ffbf47; /* Orange */
48
48
  $dev-color: #bfc1c3; /* Grey */
@@ -1,3 +1,3 @@
1
1
  module GovukAdminTemplate
2
- VERSION = "3.5.0"
2
+ VERSION = "4.0.0"
3
3
  end
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: 3.5.0
4
+ version: 4.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: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2015-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -135,6 +135,7 @@ files:
135
135
  - LICENCE.txt
136
136
  - README.md
137
137
  - app/assets/images/govuk_admin_template/favicon-development.png
138
+ - app/assets/images/govuk_admin_template/favicon-integration.png
138
139
  - app/assets/images/govuk_admin_template/favicon-preview.png
139
140
  - app/assets/images/govuk_admin_template/favicon-production.png
140
141
  - app/assets/images/govuk_admin_template/favicon.png