FEATURE: replace 'deleted by' with the trashcan glyph
This commit is contained in:
parent
5c70d878a7
commit
f43293a7bc
|
@ -62,7 +62,7 @@ export default Em.Component.extend({
|
|||
var post = this.get('post');
|
||||
if (post.get('deleted')) {
|
||||
buffer.push("<div class='post-action'>" +
|
||||
I18n.t("post.deleted_by") + " " +
|
||||
"<i class='fa fa-trash-o'></i> " +
|
||||
Discourse.Utilities.tinyAvatar(post.get('postDeletedBy.avatar_template'), {title: post.get('postDeletedBy.username')}) +
|
||||
Discourse.Formatter.autoUpdatingRelativeAge(new Date(post.get('postDeletedAt'))) +
|
||||
"</div>");
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
{{descriptionHtml}}
|
||||
</span>
|
||||
{{#if deleted}}
|
||||
<span class="time">
|
||||
{{i18n post.deleted_by}} {{avatar deleted_by imageSize="tiny" extraClasses="actor" ignoreTitle="true"}} {{date path="deleted_at" leaveAgo="true"}}
|
||||
<span class="delete-info">
|
||||
<i class="fa fa-trash-o"></i> {{avatar deleted_by imageSize="tiny" extraClasses="actor" ignoreTitle="true"}} {{date path="deleted_at" leaveAgo="true"}}
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -321,13 +321,16 @@
|
|||
span.name {
|
||||
color: $primary;
|
||||
}
|
||||
.time {
|
||||
.time, .delete-info {
|
||||
display: block;
|
||||
float: right;
|
||||
color: $primary;
|
||||
margin-right: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.delete-info i {
|
||||
font-size: 14px;
|
||||
}
|
||||
.avatar-link {
|
||||
float: left;
|
||||
margin-right: 4px;
|
||||
|
|
|
@ -226,13 +226,16 @@
|
|||
span.name {
|
||||
color: scale-color($primary, $lightness: 50%);
|
||||
}
|
||||
.time {
|
||||
.time, .delete-info {
|
||||
display: block;
|
||||
float: right;
|
||||
color: $primary;
|
||||
margin-right: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.delete-info i {
|
||||
font-size: 14px;
|
||||
}
|
||||
.avatar-link {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
|
|
|
@ -980,7 +980,6 @@ en:
|
|||
deleted_by_author:
|
||||
one: "(post withdrawn by author, will be automatically deleted in %{count} hour unless flagged)"
|
||||
other: "(post withdrawn by author, will be automatically deleted in %{count} hours unless flagged)"
|
||||
deleted_by: "deleted by"
|
||||
expand_collapse: "expand/collapse"
|
||||
gap:
|
||||
one: "1 post hidden"
|
||||
|
|
Loading…
Reference in New Issue