<div class="cphot">
  {{view "select" content=histories selection=schoolyear class="select srkjb" optionValuePath="content.id" optionLabelPath="content.text"}}
</div>
<div class="cphonr">
  <ul class="cphocn">
    {{#if videos.length}}
    {{#each video in videos}}
    <li>
      {{image-local src=video.entity.ThumbPath video=video.entity.FilePath online=controller.session.online type='video'}}
      <p class="zi" {{bind-attr title='video.entity.FileName'}}>{{video.entity.FileName}}</p>
		  <p class="zi">创建于：{{formatDate video.entity.Intime pattern="YYYY-MM-DD hh:mm"}}</p>
		  <p class="bof" {{action 'play' video.entity}}><img src="assets/images/icon_bof.png" /></p>
      {{#if video.state.isLoaded}}
      {{#if session.ISO}}
      {{^}}
      {{#if video.state.text}}
      <p class="down">{{fetch-state model=video file=video.entity.FilePath }}</p>
      {{/if}}
      {{/if}}
      {{^}}
      {{#if controller.session.online}}
      {{#if controller.schoolyear.subscribe}}
      <p class="downan" {{action 'download' video}}>
        <img src="assets/images/load_icon.png" />
      </p>
      {{/if}}
      {{/if}}
      {{/if}}
    </li>
    {{/each}}
    {{^}}
	{{#if controller.session.online}}
	没有符合要求的数据
	{{^}}
	没有本地数据，请切换到在线状态下载数据后查看
	{{/if}}
	{{/if}}
  </ul>
</div>