File tree Expand file tree Collapse file tree 6 files changed +15
-8
lines changed
app/uk/gov/hmrc/apidocumentation
test/uk/gov/hmrc/apidocumentation/models Expand file tree Collapse file tree 6 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ case object StaticNavLinks {
4646 Seq (
4747 NavLink (" Documentation" , " /api-documentation/docs/using-the-hub" ),
4848 NavLink (" Applications" , " /developer/applications" ),
49- NavLink (" Support" , " /developer/support" ),
50- NavLink (" Service Availability" , " https://api-platform-status.production.tax.service.gov.uk/" , openInNewWindow = true )
49+ NavLink (" Support" , " /developer/support" )
5150 )
5251 }
5352}
Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ class FooterConfig @Inject() (config: Configuration) {
2828
2929 private lazy val urlFooterConfig = config.underlying.getConfig(" urls.footer" )
3030
31- lazy val cookies : String = urlFooterConfig.getString(" cookies" )
32- lazy val privacy : String = urlFooterConfig.getString(" privacy" )
33- lazy val termsConditions : String = urlFooterConfig.getString(" termsConditions" )
34- lazy val govukHelp : String = urlFooterConfig.getString(" govukHelp" )
31+ lazy val cookies : String = urlFooterConfig.getString(" cookies" )
32+ lazy val privacy : String = urlFooterConfig.getString(" privacy" )
33+ lazy val termsConditions : String = urlFooterConfig.getString(" termsConditions" )
34+ lazy val govukHelp : String = urlFooterConfig.getString(" govukHelp" )
35+ lazy val serviceAvailability : String = urlFooterConfig.getString(" serviceAvailability" )
3536
3637 def accessibility (implicit requestHeader : RequestHeader ): String =
3738 s " ${urlFooterConfig.getString(" accessibility" )}/hmrc-developer-hub?referrerUrl= ${helper.urlEncode(requestHeader.uri)}"
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ import uk.gov.hmrc.govukfrontend.views.viewmodels.footer.FooterItem
2424
2525class FooterLinks @ Inject () (appConfig : FooterConfig ) {
2626
27+ def serviceAvailabilityLink (implicit messages : Messages ): FooterItem = FooterItem (
28+ Some (Messages (" footer.links.service_availability.text" )),
29+ Some (appConfig.serviceAvailability)
30+ )
31+
2732 def cookieLink (implicit messages : Messages ): FooterItem = FooterItem (
2833 Some (Messages (" footer.links.cookies.text" )),
2934 Some (appConfig.cookies)
@@ -50,6 +55,7 @@ class FooterLinks @Inject() (appConfig: FooterConfig) {
5055 )
5156
5257 def items (implicit messages : Messages , requestHeader : RequestHeader ): Seq [FooterItem ] = Seq (
58+ serviceAvailabilityLink,
5359 cookieLink,
5460 accessibilityLink,
5561 privacyLink,
Original file line number Diff line number Diff line change 8484 privacy = ${apidocumentation.base.url}"/api-documentation/docs/help/privacy"
8585 cookies = ${apidocumentation.base.url}"/api-documentation/docs/help/cookies"
8686 accessibility = ${apidocumentation.base.url}"/accessibility-statement"
87+ serviceAvailability = "https://api-platform-status.production.tax.service.gov.uk/"
8788 }
8889}
8990
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ help.cookies.optimizely.table.2.expires=5 seconds
9191
9292help.cookies.optimalWorkshop=Our satisfaction survey (Optimal Workshop)
9393
94+ footer.links.service_availability.text = Service Availability
9495footer.links.cookies.text = Cookies
9596footer.links.privacy_policy.text = Privacy Policy
9697footer.links.terms_and_conditions.text = Terms and conditions
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ class NavLinkSpec extends HmrcSpec {
2727 Seq (
2828 NavLink (" Documentation" , " /api-documentation/docs/using-the-hub" ),
2929 NavLink (" Applications" , " /developer/applications" ),
30- NavLink (" Support" , " /developer/support" ),
31- NavLink (" Service Availability" , " https://api-platform-status.production.tax.service.gov.uk/" , openInNewWindow = true )
30+ NavLink (" Support" , " /developer/support" )
3231 )
3332 }
3433 }
You can’t perform that action at this time.
0 commit comments