FIX: Edit controls should only show when you can edit

This commit is contained in:
Robin Ward 2015-07-27 11:11:46 -04:00
parent 0d417611a6
commit 46ba4ba426

View File

@ -1,7 +1,9 @@
<div class='topic-avatar'>{{fa-icon icon}}</div>
<div class='small-action-desc'>
{{#if post}}
{{#if post.can_edit}}
<button {{action "edit"}} title="{{i18n "post.controls.edit"}}">{{fa-icon "pencil"}}</button>
{{/if}}
<a href={{post.usernameUrl}} data-user-card={{post.username}}>
{{avatar post imageSize="small"}}
</a>