UX: do not show last post label in user card if user never posted

This commit is contained in:
Arpit Jalan 2015-05-17 14:28:51 +05:30
parent 7ab8827c7e
commit ac13238127

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}}