unserver-unify
Version:
53 lines (52 loc) • 2.42 kB
HTML
<div ng-controller="BbsSubTopicsCtrl as ctrl">
<div class="gnrl_frm">
<div >
<div class="table-responsive" style="background-color:white;">
<table st-table="displayedTopics" st-pipe="ctrl.getTopics" class="table th-style table-hover margin-bottom-0 forum mblform_tbl">
<thead>
<tr>
<td class="tag-box tag-box-v1">
<div style="position:relative;" class="col-xs-7 padding-left-0">
<strong>{{ ctrl.key ||'Topics' }}: </strong>
<span title="Total Count" class="badge badge-info rounded-2x"> {{totalcounter}}</span>
</div>
<span class="pull-right" ng-if="loginService.isLogged">
<a class="btn-u" ui-sref='index.bbs.tab.new' title="Add New"><i class="fa fa-plus"></i></a>
</span>
</td>
</tr>
</thead>
<tbody>
<tr class="gray-bg">
<td>
<div >
<table class="table table-hover forum td_aln" style="margin:0;" cellpadding="0" cellspacing="0">
<tr ng-repeat="item in displayedTopics">
<td style="width:10%">
<img src="{{item.avatar_url}}" width="30">
</td>
<td style="width:90%">
<div class="col-xs-6 padding-left-0 author_name">{{item.authorname }}</div>
<div class="rpls">{{item.create_at | date : 'shortDate'}} <i class="fa fa-comment"> </i>{{item.reply_count }} <i class="fa fa-eye"> </i>{{item.visit_count }}</div>
<div class="clearfix"></div>
<a ui-sref="index.bbs.tab.detail({ id: item._id })">{{item.title}}</a>
<div class="clearfix"></div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<span class="pull-right" st-pagination="" st-items-by-page="itemsByPage" st-template="components/content/tablePagination.html"> </span>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>