unserver-unify
Version:
88 lines (87 loc) • 3.16 kB
HTML
<div class="tag-box tag-box-v1" ng-controller="GroupForumCtrl as ctrl">
<table class=" table-responsive table table-striped table-hover" st-pipe="ctrl.getTopics" st-table="displayedTopics">
<thead>
<tr>
<td colspan="2">
<i class="fa fa-tasks">
</i>
<strong>
{{ 'Topics' |translate}}
</strong>
<span class="badge badge-u">
{{ totalcounter }}
</span>
</td>
<td colspan="11">
<span class="pull-right" ng-if="loginService.isLogged">
<a class="btn-u" ui-sref=".new">
<i class="fa fa-plus">
</i>
{{'New'| translate}}
</a>
</span>
</td>
</tr>
</thead>
<tbody>
<tr>
<!-- <th class="sortable" st-sort="good"><i class="fa fa-thumbs-o-up"></i></th> -->
<th class="sortable" st-sort="title" translate="">
Topic
</th>
<th class="sortable" st-sort="reply_count" translate="">
Replies
</th>
<th class="sortable" st-sort="visit_count" translate="">
Views
</th>
<th class="sortable" st-sort="loginname" translate="">
Author
</th>
<th class="sortable" st-sort="create_at" translate="">
Created Time
</th>
<!--<th class="sortable" st-sort="reply_create_at" translate>Reply Time</th>-->
<th class="sortable" st-sort="reply_create_at" translate="">
Reply Time
</th>
</tr>
<tr ng-repeat="item in displayedTopics">
<!-- <td style="width:3%"><i ng-if="item.good" class="fa fa-thumbs-o-up" style="color:orange;"></i></td> -->
<td style="width:22%">
<a style="max-height:80px; overflow:hidden; float:left;" ui-sref=".detail({ id: item._id })">
{{ item.title }}
<p ng-bind-html="item.content">
</p>
</a>
</td>
<td class="v-middle text_indent15" style="width:5%;">
{{ item.reply_count }}
</td>
<td class="v-middle text_indent15" style="width:5%;">
{{ item.visit_count }}
</td>
<td class="v-middle text_indent5" style="width:5%;">
<a ui-sref="index.setting.profile({ id: item.loginname,cs:getCheckSum(item.loginname) })">
<img ng-src="{{ item.avatar_url }}" style="border-radius:50% !important;" width="30"/>
</a>
</td>
<td class="v-middle" style="width:11%;">
{{ item.create_at | date : 'short' }}
</td>
<!--<td>{{item.last_reply_at | date : shortDate}}</td>-->
<td class="v-middle" style="width:11%;">
{{ item.last_reply_at | date : 'short' }}
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="11">
<span class="pull-right" st-items-by-page="itemsByPage" st-pagination="" st-template="components/content/tablePagination.html">
</span>
</td>
</tr>
</tfoot>
</table>
</div>