show the author and publication date

This commit is contained in:
Riley Davis
2017-02-15 15:36:46 -07:00
parent b3b36a245a
commit f91607cff9
4 changed files with 15 additions and 2 deletions
@@ -27,3 +27,8 @@
.widgetTable tbody td {
padding: 10px;
}
.lede {
font-size: 0.9em;
color: grey;
}
@@ -25,8 +25,11 @@ const FlagWidget = ({assets}) => {
const flagCount = asset.action_summaries.find(s => s.__typename === 'FlagAssetActionSummary').actionCount;
return (
<tr key={asset.id}>
<td>{index + 1}</td>
<td><Link to={`/admin/moderate/flagged/${asset.id}`}>{lang.t('configure.moderate')} » {asset.title}</Link></td>
<td>{index + 1}.</td>
<td>
<Link to={`/admin/moderate/flagged/${asset.id}`}>{asset.title}</Link>
<p className={styles.lede}>{asset.author} - Published: {new Date(asset.created_at).toLocaleDateString()}</p>
</td>
<td>{flagCount}</td>
<td>{asset.commentCount}</td>
</tr>
@@ -4,6 +4,8 @@ query Metrics ($from: Date!, $to: Date!) {
title
url
commentCount
author
created_at
action_summaries {
actionCount
actionableItemCount
+3
View File
@@ -339,6 +339,9 @@ type Asset {
# The date that the asset was created.
created_at: Date
# The author(s) of the asset.
author: String
}
################################################################################