Add: support show modified review time

This commit is contained in:
2021-12-13 23:32:29 +08:00
parent 28127f6138
commit 4bfcf460c9

View File

@@ -11,6 +11,8 @@ function ReviewEntry(props) {
@{props.review.user.username}
</Link>{" "}
wrote on {convertIntToDateTime(props.review.created_at)}{" "}
{props.review.updated_at !== 0 &&
"(modified on " + convertIntToDateTime(props.review.updated_at) + ")"}
</h4>
<p>{props.review.content}</p>
{(props.user.role === 1 || props.review.user.id === props.user.id) &&