unserver-unify
Version:
52 lines • 3.17 kB
HTML
<div class="row" ng-controller="CourseCourseTopicsCtrl as ctrl">
<div class="col-md-3" ng-include src="'app/topic/topicsidebar.html'"></div>
<div class="col-md-9 padding-top-20 forum">
<div class="container-fluid tbl_linhgt gnrl_frm">
<div class="tag-box tag-box-v1 margin-bottom-0">
<!--<em class="pull-right">
<span title="Total Count"><i class="fa fa-list"></i> {{totalcounter}}</span>
</em>-->
<strong>{{subjectname}}</strong> <span title="Total Count" class="badge badge-primary"> {{totalcounter}}</span>
<a class="pull-right btn btn-u" ui-sref="index.courses.course.section.discuss({ cid:ctrl.id,id: ctrl.discussionId,cs:getCheckSum(ctrl.id) })">{{'Add Topics' | translate}}</a>
</div>
<div class="table-responsive margin-bottom-20">
<table st-table="displayedTopics" st-pipe="ctrl.getTopics" class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th style="text-align: center;"><i class="fa fa-star" style="color:blue;"></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="subtab" translate>Category</th>
<th class="sortable" st-sort="visit_count" translate>Views</th>
<th class="sortable" st-sort="reply_count" translate>Replies</th>
<th class="sortable" st-sort="good" translate>Likes</th>
<th class="sortable" st-sort="create_at" translate>Created Date</th>
<th class="sortable" st-sort="reply_create_at" translate>Last Reply</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in displayedTopics">
<td width="5%">
<div ng-if="item.top" class="badge badge-info badge-sm" translate>TOP</div>
</td>
<td width="15%"><a ui-sref="index.forums.detail({ id: item._id })">{{item.title}}</a></td>
<td width="8%"><a ui-sref="index.setting.profile({ id: item.loginname,cs:getCheckSum(item.loginname) })">{{item.authorname }}</a></td>
<td width="8%">{{item.subtab }}</td>
<td width="4%" class="text_indent15">{{item.visit_count }}</td>
<td width="4%" class="text_indent15">{{item.reply_count }}</td>
<td width="4%" class="text_indent15">{{ item.goodcount || 0 }}</td>
<td width="12%">{{item.create_at | date : 'dd-MM-yyyy'}}</td>
<td width="10%">{{item.last_reply_at | date : 'dd-MM-yyyy'}}</td>
</tr>
</tbody>
<!--<tfoot>
<tr>
<td class="text-center" st-pagination="" st-items-by-page="itemsByPage" st-template="components/content/tablePagination.html" colspan="9">
</td>
</tr>
</tfoot>-->
</table>
</div>
</div>
</div>
</div>