menu.html 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. {% if 'show' in data and data['show'] %}
  2. <div class="crumbs">
  3. <h2><i class="icons ico-dt"></i>{{data['info']['name']}}</h2>
  4. <ul>
  5. <li {% if data['device_cur'] == 'data' %}class="cur"{% end %}><a href="{{data['url']['data']}}">墒情分析</a></li>
  6. {% if 'pic' in data and data['pic'] %}
  7. <li><span>/</span></li>
  8. <li {% if data['device_cur'] == 'pic' %}class="cur"{% end %}><a href="{{data['url']['pic']}}">农作物图像采集</a></li>
  9. {% end %}
  10. <li><span>/</span></li>
  11. <li {% if data['device_cur'] == 'stat' %}class="cur"{% end %}><a href="{{data['url']['stat']}}">数据统计</a></li>
  12. <li><span>/</span></li>
  13. <li {% if data['device_cur'] == 'log' %}class="cur"{% end %}><a href="{{data['url']['log']}}">设备记录</a></li>
  14. <li><span>/</span></li>
  15. {% if data['input']['type'] == 'gateways' %}
  16. <li {% if data['device_cur'] == 'out' %}class="cur"{% end %}><a href="{{data['url']['out']}}">数据导出</a></li>
  17. {% end %}
  18. </ul>
  19. </div>
  20. {% elif 'pic' in data and data['pic'] %}
  21. <div class="crumbs">
  22. <h2><i class="icons ico-dt"></i>{{data['info']['name']}}</h2>
  23. <ul>
  24. <li {% if data['device_cur'] == 'data' %}class="cur"{% end %}><a href="{{data['url']['data']}}">墒情分析</a></li>
  25. <li><span>/</span></li>
  26. <li {% if data['device_cur'] == 'pic' %}class="cur"{% end %}><a href="{{data['url']['pic']}}">农作物图像采集</a></li>
  27. <li><span>/</span></li>
  28. <li {% if data['device_cur'] == 'log' %}class="cur"{% end %}><a href="{{data['url']['log']}}">设备记录</a></li>
  29. </ul>
  30. </div>
  31. {% end %}