@import play.api.i18n.Messages
@import play.api.mvc.RequestHeader
@import controllers.AssetsFinder

@(user: Option[app.models.UserIdentify])(implicit request: RequestHeader, messages: Messages, assets: AssetsFinder)

@if(request.uri == "/" || request.uri == "/signIn") {
  <!-- do nothing  -->
} else {
  @user match {
    case None => {
      <div class="header-bottom-nav">
        <a href="@app.controllers.routes.ApplicationController.index" class="button mdl-button mdl-js-button mdl-button--primary">
          <i class="mdl-color-text material-icons" role="presentation">home</i>&nbsp;@messages("common.home")
        </a>
      <hr>
      </div>
    }
    case Some(user) => {
      <div class="header-bottom-nav">
        <a href="@app.controllers.routes.ApplicationController.index" class="button mdl-button mdl-js-button mdl-button--primary">
          <i class="mdl-color-text material-icons" role="presentation">home</i>&nbsp;@messages("common.home")
        </a>
        @request.uri match {
          case uri if uri contains "/organization/" => {
            <a href="@app.controllers.routes.LDAPController.organizations" class="button mdl-button mdl-js-button mdl-button--primary">
              <i class="mdl-color-text material-icons" role="presentation">layers</i>&nbsp;@messages("common.organizations")
            </a>
          }
          case _  => {
            <!--do nothing -->
          }
        }
      <hr>
      </div>
    }
  }
}
@import play.api.i18n.Messages
@import play.api.mvc.RequestHeader
@import controllers.AssetsFinder

@(user: Option[app.models.UserIdentify])(implicit request: RequestHeader, messages: Messages, assets: AssetsFinder)

@if(request.uri == "/" || request.uri == "/signIn") {
  <!-- do nothing  -->
} else {
  @user match {
    case None => {
      <div class="header-bottom-nav">
        <a href="@app.controllers.routes.ApplicationController.index" class="button mdl-button mdl-js-button mdl-button--primary">
          @messages("common.home")
        </a>
      <hr>
      </div>
    }
    case Some(user) => {
      <div class="header-bottom-nav">
        <a href="@app.controllers.routes.ApplicationController.index" class="button mdl-button mdl-js-button mdl-button--primary">
          @messages("common.home")
        </a>
        @request.uri match {
          case uri if uri contains "/organization/" => {
            <a href="@app.controllers.routes.LDAPController.organizations" class="button mdl-button mdl-js-button mdl-button--primary">
              @messages("common.organizations")
            </a>
          }
          case _  => {
            <!--do nothing -->
          }
        }
      <hr>
      </div>
    }
  }
}
Change header bottom button ui
Change header bottom button ui
