unserver-unify
Version:
75 lines • 2.64 kB
HTML
<div ng-controller="ClassAssignmentRecordsCtrl as ctrl">
<div class="panel panel-body">
<div class="table-responsive" style="overflow:inherit">
<table class="table table-hover tbl_aln font_dec" st-pipe="ctrl.getRecords" st-table="userrecords">
<tr>
<tr>
<th>
{{{eng:'Photo',chn:'头像'}| trans}}
</th>
<th class="sortable " st-sort="user" translate>
Username
</th>
<th translate>
Full Name
</th>
<th class="sortable " st-sort="update" translate="">
Time
</th>
<th class="sortable " st-sort="scores" translate>
Scores
</th>
<th class="sortable " st-sort="comments" translate>
Comments
</th>
<!-- <th class="sortable " st-sort="review" translate>
Review
</th> -->
<th translate>
Action
</th>
</tr>
<tr ng-if="userrecords.length == 0 || !userrecords">
<td colspan="7">
<div class="no_record" translate="">
No Records
</div>
</td>
</tr>
<tr ng-repeat="item in userrecords" >
<td style="width: 10%">
<img ng-src="{{ item.author_url }}" style="width:35px; height:35px;" class="img-circle img-responsive"/>
</td>
<td style="width: 10%">
{{ item.user }}
</td>
<td style="width: 15%">
{{ item.author.fullname }}
</td>
<td style="width: 15%">
{{ item.update|date: 'yyyy-MM-dd' }}
</td>
<td style="width: 10%">
{{ item.scores }}
</td>
<td style="width: 20%">
{{ item.comments }}
</td>
<!-- <td style="width: 15%">
{{ item.review|date: 'yyyy-MM-dd' }}
</td> -->
<td style="width: 5%">
<button class="btn btn-info btn-xs" title = "{{ 'View' | translate }}" ng-click="ctrl.review(item._id)">
{{ 'View' | translate }}
</button>
</td>
</tr>
<tr>
<td class="text-right" colspan="7" st-items-by-page="10" st-pagination="" st-template="components/content/tablePagination.html">
</td>
</tr>
</tr>
</table>
</div>
</div>
</div>