Merge pull request #3484 from techAPJ/patch-2

UX: do not show last post label in user card if user never posted
This commit is contained in:
Régis Hanol 2015-05-17 11:10:54 +02:00
commit 94d8b965e9
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@
{{#if user}}
<div class="metadata">
<h3><span class='desc'>{{i18n 'last_post'}}</span> {{format-date user.last_posted_at leaveAgo="true"}}</h3>
{{#if user.last_posted_at}}
<h3><span class='desc'>{{i18n 'last_post'}}</span> {{format-date user.last_posted_at leaveAgo="true"}}</h3>
{{/if}}
<h3><span class='desc'>{{i18n 'joined'}}</span> {{format-date user.created_at leaveAgo="true"}}</h3>
</div>
{{/if}}