-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlistview.html
More file actions
38 lines (35 loc) · 993 Bytes
/
listview.html
File metadata and controls
38 lines (35 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class="listview">
<table class="table">
<thead>
<tr>
<th ng-repeat="column in columns">
{{column | capitalize}}
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in items" class="item">
<td ng-repeat="column in columns" class="column column-{{column}}" ng-include="getTemplate(column)"></td>
</tr>
</tbody>
</table>
</div>
<!-- default -->
<script type="text/ng-template" id="column-default.html">
{{_format(column,item)}}
</script>
<!-- customize column -->
<script type="text/ng-template" id="column-title.html">
<div class="thumb">
<img ng-src="{{methods.thumb(item)}}" alt="">
</div>
<span>{{_format(column,item)}}</span>
</script>
<script type="text/ng-template" id="column-dimension.html">
<span>{{_format(column,item)}}</span>
</script>
<script type="text/ng-template" id="column-tags.html">
<div ng-repeat="tag in item[column]" class="tag">
<span>{{tag}}</span>
</div>
</script>