<div class="cptop">
  <div class="cplog">
    <a>
      {{#if user.Logo}}
      <img {{bind-attr src="user.Logo"}} />
      {{else}}
      <img src="assets/images/ad/tx.jpg" />
      {{/if}}
    </a>
    <p class="xm">{{user.ChineseName}} <span {{action 'logout'}} class="logout">退出</span>
    </p>
    <p class="xm">{{user.GardenName}}</p>
  </div>
  <p class="cpset" style="display:none;">
    <img src="assets/images/set_icon.png" />
  </p>
  <ul class="cpnav">
    {{#if session.ISO}}
    {{^}}
    <li style="width:150px; line-height:50px;">
      <div class="mode_switch">
        <span {{action 'switchOnline' 1}} {{bind-attr class='online:active:'}}>在线</span> / 
        <span {{action 'switchOnline' 0}} {{bind-attr class='online::active'}}>本地</span>
      </div>
    </li>
    {{/if}}
    {{#each menu in filteredMenus}}
    {{~#if menu.display~}}
    <li {{action 'redirect' menu.key}} {{bind-attr class='menu.classHB'}}>
      <p {{bind-attr class='menu.classH'}}></p>
    </li>
    {{~/if~}}
    {{/each}}
  </ul>
  <ul class="cpspop" style="display:none;">
    <li>
      <a href="">设置保存位置</a>
    </li>
    <li>
      <a href="">其他</a>
    </li>
  </ul>
  <p class="line1"></p>
  <p class="line2"></p>
  <p class="line3"></p>
</div>
<div class="cpcot">
  {{outlet}}
</div>