Add RfCs with comments
This commit is contained in:
@ -106,6 +106,13 @@ module StatisticsHelper
|
|||||||
name: t('activerecord.models.comment.other'),
|
name: t('activerecord.models.comment.other'),
|
||||||
data: Comment.count
|
data: Comment.count
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'rfcs_with_comments',
|
||||||
|
name: t('statistics.entries.request_for_comments.with_comments'),
|
||||||
|
data: RequestForComment.joins('join "submissions" s on s.id = request_for_comments.submission_id
|
||||||
|
join "files" f on f.context_id = s.id and f.context_type = \'Submission\'
|
||||||
|
join "comments" c on c.file_id = f.id').group('request_for_comments.id').count.size
|
||||||
|
}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -748,5 +748,6 @@ de:
|
|||||||
percent_solved: "Beantwortete Anfragen"
|
percent_solved: "Beantwortete Anfragen"
|
||||||
percent_unsolved: "Unbeantwortete Anfragen"
|
percent_unsolved: "Unbeantwortete Anfragen"
|
||||||
percent_soft_solved: "Ungelöst mit voller Punktzahl"
|
percent_soft_solved: "Ungelöst mit voller Punktzahl"
|
||||||
|
with_comments: "Anfragen mit Kommentaren"
|
||||||
users:
|
users:
|
||||||
currently_active: "Aktiv (5 Minuten)"
|
currently_active: "Aktiv (5 Minuten)"
|
||||||
|
@ -748,5 +748,6 @@ en:
|
|||||||
percent_solved: "Solved Requests"
|
percent_solved: "Solved Requests"
|
||||||
percent_unsolved: "Unsolved Requests"
|
percent_unsolved: "Unsolved Requests"
|
||||||
percent_soft_solved: "Unsolved with full score"
|
percent_soft_solved: "Unsolved with full score"
|
||||||
|
with_comments: "RfCs with Comments"
|
||||||
users:
|
users:
|
||||||
currently_active: "Active (5 minutes)"
|
currently_active: "Active (5 minutes)"
|
||||||
|
Reference in New Issue
Block a user