menu.html 931 B

123456789101112131415161718
  1. <div class="header">
  2. <div class="wrapper">
  3. <a href="/" class="logo"><img src="{{static_url('images/68bcb4d4.logo.png')}}" width="154"></a>
  4. <ul class="nav">
  5. {% for v in data['setting']['menu'] %}
  6. <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>
  7. {% end %}
  8. {% if 'users' in data['setting'] and data['setting']['user'] %}
  9. <li>欢迎您,<a href="{{data['setting']['front']}}">{{data['setting']['userInfo']['username']}}</a></li>
  10. {% else %}
  11. <li><a href="{{data['setting']['front']}}">登录管理</a></li>
  12. {% end %}
  13. <li><a href="http://old.xinnongbaohe.com/" target="_blank">旧版入口</a></li>
  14. </ul>
  15. </div>
  16. </div>