govuk_publishing_components 21.30.0 → 21.31.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
  SHA256:
3
- metadata.gz: b3601e8a28c74c025211ae0e7345c46b95992a90f221f3727cc24f39b3b16d05
4
- data.tar.gz: eab6295e52bf59aa6909d40e5596b26aa32863e67a413cd883eb14a158d39c23
3
+ metadata.gz: 37a2fbff2e842370df622de39881e50806af9a8c6e00ed4f4b4d867759c4a601
4
+ data.tar.gz: f01dd64ef6ab17e0dd623c8ecd3cc2dda2ad48afcfacea381896704fd22fc9dd
5
5
  SHA512:
6
- metadata.gz: 2419f07714f32af0041ee5b9c5672f457eefe80e50faf0e6f77212e39824065f52b9accd27dd7524dc971c06c60bc6baa4ad2287afb296793a388e87bbfb28ea
7
- data.tar.gz: 402570770b331429bb54e99e73a4529f552f6cb776bd733bbb422766658ae0b6117c074b737fcf23df894fe00f48f621e306790b0e1797390e9b300f45425a79
6
+ metadata.gz: 61d6a04b5acbfdc25ba6c2c586c8ec0025debcd8638a7beaee596dd3af3ced4f8ef005e1cf90dabd3f18ee21a8c99fc2a99bd25ab6ed69e3f18a4e8fc0f977e6
7
+ data.tar.gz: ca465df1771af9b6b8dfd7005c467814ee88260b73994bf3fe44790f9013ab9a375f98f2919eb115a7766d9b43a58e8f2becb6cc47245ed240ac8fd377bd4a80
@@ -1,6 +1,7 @@
1
1
  <%
2
2
  full_width ||= false
3
3
  product_name ||= "Publishing"
4
+ public_environment = environment.eql?("public")
4
5
  navigation_items ||= []
5
6
  if full_width
6
7
  width_class = "govuk-header__container--full-width"
@@ -24,13 +25,15 @@
24
25
  </span>
25
26
  </span>
26
27
 
27
- <span class="govuk-header__product-name gem-c-header__product-name">
28
- <%= product_name %>
29
- </span>
28
+ <% unless public_environment %>
29
+ <span class="govuk-header__product-name gem-c-header__product-name">
30
+ <%= product_name %>
31
+ </span>
30
32
 
31
- <span class="gem-c-environment-tag govuk-tag gem-c-environment-tag--<%= environment %>">
32
- <%= environment %>
33
- </span>
33
+ <span class="gem-c-environment-tag govuk-tag gem-c-environment-tag--<%= environment %>">
34
+ <%= environment %>
35
+ </span>
36
+ <% end %>
34
37
  </a>
35
38
 
36
39
  </div><div class="govuk-header__content gem-c-header__content">
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.30.0".freeze
2
+ VERSION = "21.31.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.30.0
4
+ version: 21.31.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: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters