Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created July 3, 2013 18:24
Show Gist options
  • Save raytiley/5921317 to your computer and use it in GitHub Desktop.
Save raytiley/5921317 to your computer and use it in GitHub Desktop.
<thead>
<tr>
<th style="width:50%">File</th>
<th style="width:10%">Actions</th>
<th style="width:10%">Size</th>
<th style="width:10%">Server</th>
<th style="width:10%">Details</th>
</tr>
</thead>
<tbody>
{{#if files.isLoaded}}
{{#each files itemController="file"}}
<tr {{bindAttr class="isInValid:error partial:warning"}}>
<td>
{{#if show}}
<strong>Show: </strong>
{{#linkTo show show}}{{show.id}}-{{reelNumber}}{{/linkTo}}
{{#linkTo show show}}{{show.title}}{{/linkTo}}
<br />
{{/if}}
<strong>Path: </strong>{{path}}
</td>
<td>
<button class="btn" {{action noop}}>Re-Index</button>
{{#unless show}}
<button class="btn" {{action noop}}>New Show</button>
{{/unless}}
</td>
<td>{{fileSizeToString fileSize}}</td>
<td>{{controlModuleHost.name}}</td>
<td><a {{action showDetails}}>Details</a></td>
</tr>
{{/each}}
{{else}}
<tr><td colspan=5>Loading...</td></tr>
{{/if}}
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment