<div class="header">
    <div class="wrapper">
        <a href="/" class="logo"><img src="{{static_url('images/68bcb4d4.logo.png')}}" width="154"></a>
        <ul class="nav">
            {% for v in data['setting']['menu'] %}
            <li {% if '/' + data['setting']['cur'] == v['link'] %}class="cur"{% end %}><a href="{% if v['link'] == '/main' %}/{% else %}{{v['link']}}{% end %}" {%if 'http://' in v['link'] %}target="_blank"{% end %}>{{v['name']}}</a></li>
            {% end %}

            {% if 'users' in data['setting'] and data['setting']['user'] %}
            <li>欢迎您，<a href="{{data['setting']['front']}}">{{data['setting']['userInfo']['username']}}</a></li>
            {% else %}
            <li><a href="{{data['setting']['front']}}">登录管理</a></li>
            {% end %}

            <li><a href="http://old.xinnongbaohe.com/" target="_blank">旧版入口</a></li>
        </ul>
    </div>
</div>