|
@@ -63,6 +63,15 @@ class RecentChanges extends React.Component {
|
|
|
locked = <span><i className="icon-lock" /></span>;
|
|
locked = <span><i className="icon-lock" /></span>;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ const tags = page.tags;
|
|
|
|
|
+ const tagElements = tags.map((tag) => {
|
|
|
|
|
+ return (
|
|
|
|
|
+ <a key={tag} href={`/_search?q=tag:${tag.name}`} className="grw-tag-label badge badge-secondary mr-2">
|
|
|
|
|
+ {tag.name}
|
|
|
|
|
+ </a>
|
|
|
|
|
+ );
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<li className="list-group-item p-2">
|
|
<li className="list-group-item p-2">
|
|
@@ -79,6 +88,7 @@ class RecentChanges extends React.Component {
|
|
|
<span className="seen-user-count">{page.seenUsers.length}</span>
|
|
<span className="seen-user-count">{page.seenUsers.length}</span>
|
|
|
<i className="icon-bubble"></i>
|
|
<i className="icon-bubble"></i>
|
|
|
<span>{page.commentCount}</span>
|
|
<span>{page.commentCount}</span>
|
|
|
|
|
+ { tagElements }
|
|
|
<br />
|
|
<br />
|
|
|
<FormattedDistanceDate id={page.id} date={page.updatedAt} />
|
|
<FormattedDistanceDate id={page.id} date={page.updatedAt} />
|
|
|
</div>
|
|
</div>
|