Add wrapper div to aid in styling

This commit is contained in:
Robin Ward 2017-08-23 14:47:09 -04:00
parent f766ea4257
commit 950c9e50ac
1 changed files with 8 additions and 4 deletions

View File

@ -66,16 +66,20 @@ createWidget('topic-map-summary', {
contents.push(h('li', contents.push(h('li',
[ [
h('h4', I18n.t('created_lowercase')), h('h4', I18n.t('created_lowercase')),
h('div.topic-map-post.created-at', [
avatarFor('tiny', { username: attrs.createdByUsername, template: attrs.createdByAvatarTemplate }), avatarFor('tiny', { username: attrs.createdByUsername, template: attrs.createdByAvatarTemplate }),
dateNode(attrs.topicCreatedAt) dateNode(attrs.topicCreatedAt)
])
] ]
)); ));
contents.push(h('li', contents.push(h('li',
h('a', { attributes: { href: attrs.lastPostUrl } }, [ h('a', { attributes: { href: attrs.lastPostUrl } }, [
h('h4', I18n.t('last_reply_lowercase')), h('h4', I18n.t('last_reply_lowercase')),
h('div.topic-map-post.last-reply', [
avatarFor('tiny', { username: attrs.lastPostUsername, template: attrs.lastPostAvatarTemplate }), avatarFor('tiny', { username: attrs.lastPostUsername, template: attrs.lastPostAvatarTemplate }),
dateNode(attrs.lastPostAt) dateNode(attrs.lastPostAt)
]) ])
])
)); ));
contents.push(h('li', [ contents.push(h('li', [
numberNode(attrs.topicReplyCount), numberNode(attrs.topicReplyCount),