Skip to content

Commit 776f2e6

Browse files
committed
Merge pull request #7 from hmrc/API-1345
API-1345 Logout button removed from start page
2 parents c248a34 + 9e0a077 commit 776f2e6

9 files changed

+31
-14
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2016 HM Revenue & Customs
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package connectors
18+
19+
case class DownstreamMicroserviceException(url: String, t: Throwable) extends RuntimeException(s"Error obtained while calling: [$url]", t)

app/connectors/package.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,4 @@ package object connectors {
1919
private[connectors] def recovery(url: String): PartialFunction[Throwable, Nothing] = {
2020
case e: Throwable => throw DownstreamMicroserviceException(url, e)
2121
}
22-
23-
case class DownstreamMicroserviceException(url: String, t: Throwable) extends RuntimeException(s"Error obtained while calling: [$url]", t)
2422
}

app/views/govuk_wrapper.scala.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
contentHeader: Option[Html] = None,
99
mainContent: Html = HtmlFormat.empty,
1010
serviceInfoContent: Html = HtmlFormat.empty,
11-
scriptElem: Option[Html] = None)(implicit request: Request[_])
11+
scriptElem: Option[Html] = None,
12+
headerNavLinks: Option[Html] = None)(implicit request: Request[_])
1213

1314
@import layouts.{govuk_template => hmrcGovUkTemplate}
1415
@import uk.gov.hmrc.play.views.html.{layouts => uiLayouts}
@@ -22,17 +23,12 @@
2223
<meta name="format-detection" content="telephone=no" />
2324
}
2425

25-
@headerNavLinks = {
26-
<li><a id="logOutNavHref" href="@appConfig.signOutUrl"
27-
data-journey-click="primary-navigation:Click:Sign out">@Messages("message.signout")</a></li>
28-
}
29-
3026
@insideHeader = {
3127
@uiLayouts.header_nav(
3228
navTitle = Some("Applications permissions withdrawal"),
3329
navTitleLink = None,
3430
showBetaLink = false,
35-
navLinks = Some(headerNavLinks))
31+
navLinks = headerNavLinks)
3632
}
3733

3834
@afterHeader = {}

app/views/logout_link.scala.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import config.FrontendAppConfig
2+
<li><a id="logOutNavHref" href="@FrontendAppConfig.signOutUrl" data-journey-click="primary-navigation:Click:Sign out">@Messages("message.signout")</a></li>

app/views/main_template.scala.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import config.FrontendAppConfig
22
@(title: String,
3+
headerNavLinks: Option[Html] = Some(logout_link()),
34
sidebarLinks: Option[Html] = None,
45
contentHeader: Option[Html] = None,
56
bodyClasses: Option[String] = None,
@@ -26,6 +27,7 @@
2627
contentHeader = contentHeader,
2728
mainContent = mainContent,
2829
serviceInfoContent = serviceInfoContent,
29-
scriptElem = scriptElem
30+
scriptElem = scriptElem,
31+
headerNavLinks = headerNavLinks
3032
)
3133

app/views/revocation/authorizedApplications.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ <h1>Authorised software applications</h1>
5050
</div>
5151
}
5252

53-
@main_template(title = "Authorised software applications", bodyClasses = None) {
53+
@main_template(title = "Authorised software applications") {
5454
@body
5555
}

app/views/revocation/permissionWithdrawn.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ <h1>Permission withdrawn</h1>
1717
</div>
1818
}
1919

20-
@main_template(title = "Permission withdrawn", bodyClasses = None) {
20+
@main_template(title = "Permission withdrawn") {
2121
@body
2222
}

app/views/revocation/start.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ <h1>Withdraw permission to software accessing HMRC data</h1>
1818
</div>
1919
}
2020

21-
@main_template(title = "Withdraw permission to software accessing HMRC data", bodyClasses = None) {
21+
@main_template(title = "Withdraw permission to software accessing HMRC data", headerNavLinks = None) {
2222
@body
2323
}

app/views/revocation/withdrawPermission.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ <h1>Withdraw permission</h1>
2020
}
2121
}
2222

23-
@main_template(title = "Withdraw permission", bodyClasses = None) {
23+
@main_template(title = "Withdraw permission") {
2424
@body
2525
}

0 commit comments

Comments
 (0)