menu.html 1.3 KB

1234567891011121314151617181920
  1. {% if data['show'] %}
  2. <section class="bbar">
  3. <ul>
  4. <li {% if data['device_cur'] == 'data' %}class="cur"{% end %}><a href="{{data['url']['data']}}"><i class="ico ico-b-1"></i><p>设备监控</p></a></li>
  5. <li {% if data['device_cur'] == 'stat' %}class="cur"{% end %}><a href="{{data['url']['stat']}}&method=maxmin"><i class="ico ico-b-2"></i><p>数据统计</p></a></li>
  6. {% if 'pic' in data and data['pic'] %}
  7. <li {% if data['device_cur'] == 'pic' %}class="cur"{% end %}><a href="{{data['url']['pic']}}"><i class="ico ico-b-3"></i><p>图像记录</p></a></li>
  8. {% end %}
  9. <li {% if data['device_cur'] == 'log' %}class="cur"{% end %}><a href="{{data['url']['log']}}"><i class="ico ico-b-4"></i><p>设备日志</p></a></li>
  10. </ul>
  11. </section>
  12. {% elif 'pic' in data and data['pic'] %}
  13. <section class="bbar">
  14. <ul>
  15. <li {% if data['device_cur'] == 'data' %}class="cur"{% end %}><a href="{{data['url']['data']}}"><i class="ico ico-b-1"></i><p>设备监控</p></a></li>
  16. <li {% if data['device_cur'] == 'pic' %}class="cur"{% end %}><a href="{{data['url']['pic']}}"><i class="ico ico-b-3"></i><p>图像记录</p></a></li>
  17. <li {% if data['device_cur'] == 'log' %}class="cur"{% end %}><a href="{{data['url']['log']}}"><i class="ico ico-b-4"></i><p>设备日志</p></a></li>
  18. </ul>
  19. </section>
  20. {% end %}