unserver-unify
Version:
115 lines (114 loc) • 4.5 kB
HTML
<div class="myspace my_space" ng-controller="BbsSubTopicsCtrl as ctrl">
<div class="tag-box">
<div class="relative">
<div class="myspace_hed">
<i class="fa fa-tasks">
</i>
<strong translate="">
{{ ctrl.key ||'Topics' }}
</strong>
<span title="Total Count" class="badge badge-u rounded-2x">
{{ totalcounter }}
</span>
</div>
</div>
<table st-table="displayedTopics" style="margin-top: 16px;" st-pipe="ctrl.getTopics" class="table table-striped table-hover">
<thead>
<tr>
<td colspan="2">
</td>
<td colspan="11">
<span class="pull-right" style="position:relative; z-index:10; margin: -29px -9px 0 0;" ng-if="loginService.isLogged&&ctrl.allownew">
<a class="btn-u" ui-sref='index.bbs.tab.new' title="Add New">
<i class="fa fa-plus">
</i>
<span>{{ { eng : "New", chn: "新建" } | trans }}</span>
</a>
</span>
<span style="position:relative; z-index:10; margin: -29px -9px 0 0;" class="pull-right" st-pagination="" st-items-by-page="itemsByPage" st-template="components/content/tablePagination.html">
</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-if="totalcounter == 0">
<td colspan="6">
<div class="no_record" translate="">
No Record
</div>
</td>
</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 ui-sref="index.bbs.tab.detail({ id: item._id })" style="max-height:80px; overflow:hidden; float:left;">
{{ item.title }}
<p>
{{ getText(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.author.loginname,cs:getCheckSum(item.author.loginname) })">
<img src="{{ item.avatar_url }}" width="30" style="border-radius:50% !important;"/>
</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" ng-if="loginService.isLogged&&ctrl.allownew">
<a class="btn-u" ui-sref='index.bbs.tab.new' title="Add New">
<i class="fa fa-plus">
</i>
<span>{{ { eng : "New", chn: "新建" } | trans }}</span>
</a>
</span>
<span class="pull-right" st-pagination="" st-items-by-page="itemsByPage" st-template="components/content/tablePagination.html">
</span>
</td>
</tr>
</tfoot>
</table>
</div>
</div>