作业发布者真名为空时,显示昵称

This commit is contained in:
txz 2016-04-12 15:51:18 +08:00
parent 70afbb3323
commit 38c182d76a
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
<div class="post-title mb5"><span class="c-grey3 f15 fb">{{homework.name}}</span></div>
<table class="post-detail-info"><tr>
<td class="text-nowrap v-top">发布者:</td>
<td>{{homework.author.realname}}</td>
<td>
<span ng-if="homework.author.realname != ' '">{{homework.author.realname}}</span>
<span ng-if="homework.author.realname == ' '">{{homework.author.nickname}}</span></td>
</tr>
<tr>
<td class="text-nowrap v-top">&nbsp;&nbsp;&nbsp;源:</td>