UNPKG

unserver-unify

Version:

100 lines (99 loc) 3.25 kB
<div class="panel panel-body" ng-controller="MyCourseTopicsCtrl as ctrl"> <table class="table table-striped table-hover" st-pipe="ctrl.getTopics" st-table="displayedTopics"> <thead> <tr class="info_hed"> <td colspan="3">{{'Total'|translate}}:<span class="badge badge-primary">{{totalcounter || 0}}</span></td> <td class="text-right" colspan="3" style="line-height:30px"> <label for="repeatSelect"> {{ 'Select the course' | translate }}: </label> </td> <td colspan="4"> <select class="form-control" ng-model="dummyDepartModal" ng-options="course.name for course in ctrl.courses track by course.id" st-search="cid"> <option value=""> {{ 'All'|translate }} </option> </select> </td> </tr> <tr class="info"> <th> <i class="fa fa-star" style="color:blue;"> </i> </th> <th class="sortable" st-sort="good"> <i class="fa fa-thumbs-o-up" style="color:orange;"> </i> </th> <th class="sortable" st-sort="title" translate> Topic Title </th> <th class="sortable" st-sort="loginname" translate> Author </th> <th class="sortable" st-sort="cid" translate> Course </th> <th class="sortable" st-sort="reply_count" translate> Reply </th> <th class="sortable" st-sort="visit_count" translate> Views </th> <th class="sortable" st-sort="update_at" translate> Update </th> </tr> </thead> <tbody> <tr ng-if="displayedTopics.length == 0"> <td colspan="8"> <div translate="" class="no_record"> No Records </div> </td> </tr> <tr ng-repeat="item in displayedTopics"> <td> <i class="fa fa-star" ng-if="item.top" style="color:blue;"> </i> </td> <td> <i class="fa fa-thumbs-o-up" ng-if="item.good" style="color:orange;"> </i> </td> <td> <a ui-sref="index.forums.detail({ id: item._id })"> <span ng-bind-html="item.title"></span> </a> </td> <td> <a ng-if="loginService.user.is_admin" ui-sref="index.setting.profile({ id: item.user.loginname ,cs:getCheckSum(item.user.loginname)})"> {{ item.user.fullname }} </a> <span ng-if="loginService.menu == 'teacher'"> {{ item.user.fullname }} </span> </td> <td> {{ ctrl.coursenames[item.cid] }} </td> <td> {{ item.reply_count }} </td> <td> {{ item.visit_count }} </td> <td> {{ item.update_at | date : shortDate }} </td> </tr> </tbody> <tfoot> <tr> <td class="text-right" colspan="8" st-items-by-page="ctrl.pageSize" st-pagination="" st-template="components/content/tablePagination.html"> </td> </tr> </tfoot> </table> </div>