FEATURE: replace 'deleted by' with the trashcan glyph

This commit is contained in:
Régis Hanol 2014-07-16 22:38:39 +02:00
parent 5c70d878a7
commit f43293a7bc
5 changed files with 11 additions and 6 deletions

View File

@ -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>&nbsp;" +
Discourse.Utilities.tinyAvatar(post.get('postDeletedBy.avatar_template'), {title: post.get('postDeletedBy.username')}) +
Discourse.Formatter.autoUpdatingRelativeAge(new Date(post.get('postDeletedAt'))) +
"</div>");

View File

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

View File

@ -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;

View File

@ -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;

View File

@ -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"