flag type summary
This commit is contained in:
parent
4714d31c01
commit
a15ab2a0a6
|
@ -8,6 +8,15 @@
|
|||
**/
|
||||
Discourse.FlaggedPost = Discourse.Post.extend({
|
||||
|
||||
summary: function(){
|
||||
return _(this.post_actions)
|
||||
.groupBy(function(a){ return a.post_action_type_id })
|
||||
.map(function(v,k){
|
||||
return Em.String.i18n("admin.flags.summary.action_type_" + k, {count: v.length});
|
||||
})
|
||||
.join(",")
|
||||
}.property(),
|
||||
|
||||
flaggers: function() {
|
||||
var r,
|
||||
_this = this;
|
||||
|
|
|
@ -27,7 +27,9 @@
|
|||
<td class='user'>{{#linkTo 'adminUser' flag.user}}{{avatar flag.user imageSize="small"}}{{/linkTo}}</td>
|
||||
<td class='excerpt'>{{#if flag.topicHidden}}<i title='{{i18n topic_statuses.invisible.help}}' class='icon icon-eye-close'></i> {{/if}}<h3><a href='{{unbound flag.url}}'>{{flag.title}}</a></h3><br>{{{flag.excerpt}}}
|
||||
</td>
|
||||
<td class='flaggers'>{{#each flag.flaggers}}{{#linkTo 'adminUser' this}}{{avatar this imageSize="small"}} {{/linkTo}}{{/each}}</td>
|
||||
<td class='flaggers'>{{#each flag.flaggers}}{{#linkTo 'adminUser' this}}{{avatar this imageSize="small"}} {{/linkTo}}{{/each}}
|
||||
<p class='flag-summary'>{{flag.summary}}</p>
|
||||
</td>
|
||||
<td class='last-flagged'>{{date flag.lastFlagged}}</td>
|
||||
<td class='action'>
|
||||
{{#if adminActiveFlagsView}}
|
||||
|
@ -54,4 +56,4 @@
|
|||
{{else}}
|
||||
<p>{{i18n admin.flags.no_results}}</p>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
|
|
@ -274,6 +274,7 @@ table {
|
|||
|
||||
|
||||
.admin-flags {
|
||||
|
||||
tr.hidden-post td.excerpt { opacity: 0.4; }
|
||||
td.message {
|
||||
padding: 4px 0;
|
||||
|
@ -289,6 +290,7 @@ table {
|
|||
}
|
||||
.flaggers { padding: 0 10px; }
|
||||
.last-flagged { padding: 0 10px; }
|
||||
.flag-summary { font-size: 11px; }
|
||||
}
|
||||
|
||||
/* Dashboard */
|
||||
|
|
|
@ -1041,6 +1041,25 @@ en:
|
|||
view_message: "view message"
|
||||
no_results: "There are no flags."
|
||||
|
||||
summary:
|
||||
action_type_3:
|
||||
one: "off-topic"
|
||||
other: "off-topic x{{count}}"
|
||||
action_type_4:
|
||||
one: "inappropriate"
|
||||
other: "inappropriate x{{count}}"
|
||||
action_type_6:
|
||||
one: "custom"
|
||||
other: "custom x{{count}}"
|
||||
one: "spam"
|
||||
other: "spam x{{count}}"
|
||||
action_type_7:
|
||||
one: "custom"
|
||||
other: "custom x{{count}}"
|
||||
action_type_8:
|
||||
one: "spam"
|
||||
other: "spam x{{count}}"
|
||||
|
||||
groups:
|
||||
title: "Groups"
|
||||
edit: "Edit Groups"
|
||||
|
|
Loading…
Reference in New Issue