From bf408eea290522961f278bdc74893d7d368a5383 Mon Sep 17 00:00:00 2001 From: James Gordon Date: Wed, 1 Jul 2015 10:38:25 +0100 Subject: [PATCH] DDCNFF-895 Made AttorneyBanner Responsive --- src/main/resources/messages | 6 +++--- .../views/layouts/attorney_banner.scala.html | 19 ++++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/main/resources/messages b/src/main/resources/messages index b40e35e1..5c0f5f95 100644 --- a/src/main/resources/messages +++ b/src/main/resources/messages @@ -34,8 +34,8 @@ common.signOut=Sign out report.a.problem.link = Get help with this page. - # Attorney Banner -attorney.banner.user = This is {0}''s HMRC account -attorney.banner.link = Return to your own account +attorney.banner.link = Return to your own account +attorney.banner.user = You''re in {0} tax account. +attorney.banner.nan = name not defined diff --git a/src/main/twirl/uk/gov/hmrc/play/views/layouts/attorney_banner.scala.html b/src/main/twirl/uk/gov/hmrc/play/views/layouts/attorney_banner.scala.html index 66920cd3..23b8a0da 100644 --- a/src/main/twirl/uk/gov/hmrc/play/views/layouts/attorney_banner.scala.html +++ b/src/main/twirl/uk/gov/hmrc/play/views/layouts/attorney_banner.scala.html @@ -15,12 +15,17 @@ *@ @(name: Option[String], returnLinkUrl : String, returnLinkText: String) -
-
-

- @Html(Messages("attorney.banner.user", name.getOrElse("Name Not Defined").toLowerCase.split(" ").map(_.toLowerCase.capitalize).mkString(" "))) -

+
+
+
+
+ @Html(Messages("attorney.banner.user", name.getOrElse(Messages("attorney.banner.nan")))) +
+
+
+ +
- -