Skip to content

Instantly share code, notes, and snippets.

@teenasharma
Created July 14, 2017 10:08
Show Gist options
  • Save teenasharma/ebab55c2aa3999581402a2f91ccc3554 to your computer and use it in GitHub Desktop.
Save teenasharma/ebab55c2aa3999581402a2f91ccc3554 to your computer and use it in GitHub Desktop.
@(message: String, style: String = "scala")(implicit messages: MessagesProvider)
@defining(play.core.PlayVersion.current) { version =>
<section>
<div class="wrapper">
@if(messages.messages.lang.language.equals("en")) {
<a class = "button" href="@routes.MySupportController.homePageInFrench()">fr</a>
} else {
<a class = "button" href="@routes.MySupportController.homePageWithDefaultLang()">en</a>
}
</div>
</section>
<div id="content" class="wrapper doc">
<article>
<h1>@message</h1>
<h2>@messages.messages("home.title")</h2>
</article>
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment