<!--
  ~ Copyright (c) 2014, WSO2 Inc. (http://wso2.com) All Rights Reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<!-- header -->
<header>
    <div class="row wr-global-header">
        <div class="col-xs-7 col-sm-7 col-lg-8 app-logo">
            <a href="{{tenantedUrl ""}}{{meta.landingPage}}">
                <img src="{{url ""}}
							/extensions/app/am-store-defaults/themes/store/imgs/logo.png" style='height:35px;'/>
            </a>
        </div>
        <div class="col-xs-5 col-sm-5 col-lg-4  top-menu-right-custom">
            <ul class="nav navbar-nav navbar-right">
                {{#if cuser.username}}
                <li>
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i
                            class="icon-user"></i> {{cuser.username}} <b class="caret"></b></a>
                    <ul class="dropdown-menu dropdown-account" role="menu" aria-labelledby="dLabel">
                        <li>
                            {{signout .}}
                        </li>
                    </ul>

                </li>
                {{else}}
                {{authentication .}}
                {{/if}}

            </ul>
        </div>
    </div>
</header>
<!-- /header -->


{{>login login}}

{{>register}}