Created
July 14, 2017 10:08
-
-
Save teenasharma/ebab55c2aa3999581402a2f91ccc3554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(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