mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 15:23:38 +08:00
FIX: Edit controls should only show when you can edit
This commit is contained in:
parent
0d417611a6
commit
46ba4ba426
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user